Instructions to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/ALLaM-7B-Instruct-preview-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/ALLaM-7B-Instruct-preview-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/ALLaM-7B-Instruct-preview-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/ALLaM-7B-Instruct-preview-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
- SGLang
How to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/ALLaM-7B-Instruct-preview-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/ALLaM-7B-Instruct-preview-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/ALLaM-7B-Instruct-preview-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/ALLaM-7B-Instruct-preview-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with Ollama:
ollama run hf.co/tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tensorblock/ALLaM-7B-Instruct-preview-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tensorblock/ALLaM-7B-Instruct-preview-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/ALLaM-7B-Instruct-preview-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
- Lemonade
How to use tensorblock/ALLaM-7B-Instruct-preview-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/ALLaM-7B-Instruct-preview-GGUF:Q2_K
Run and chat with the model
lemonade run user.ALLaM-7B-Instruct-preview-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Keep Q2_K/Q3_K_M gguf only
Browse files- ALLaM-7B-Instruct-preview-Q3_K_L.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q3_K_S.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q4_0.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q4_K_M.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q4_K_S.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q5_0.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q5_K_M.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q5_K_S.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q6_K.gguf +0 -3
- ALLaM-7B-Instruct-preview-Q8_0.gguf +0 -3
ALLaM-7B-Instruct-preview-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:46a27a91930d7c5abd3413242d0608dfa4c08acba46588b304567bfbf1920818
|
| 3 |
-
size 3761892864
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3d30097dcd4fd7e898eabbf976e810dbc432ce40492c73c2a5817f924a458694
|
| 3 |
-
size 3113086464
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:287153c645e96c59930719bbd0e3fc84adde060c45ff5e1d053d769c0907dbce
|
| 3 |
-
size 4007996928
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:572bf7eaf81adab0676cca479eacc4446866450176ea944229fc293b0f918fe0
|
| 3 |
-
size 4263194112
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d703f9576aefc262a8636c5b6e49776e2e209f80a76ceaddc55b592bd8a27d78
|
| 3 |
-
size 4038929920
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:887383560c53d027db94cb5f4d1d88c860c6f970e61bfeedb8c786ff49ca866c
|
| 3 |
-
size 4850265600
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:10736dd1eb7ab81f5c3791c504f8b060bf0855b18778237ac6be87107a608df8
|
| 3 |
-
size 4981730816
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f6d3b297bf12d1e459e34dada4172a1b356a011a6dcc242c92365c1ed4947ae8
|
| 3 |
-
size 4850265600
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d72fce7c0236d518a07cd1040cf76b4c7c840c32f04ee35f8b51d74ac90d500e
|
| 3 |
-
size 5745176064
|
|
|
|
|
|
|
|
|
|
|
|
ALLaM-7B-Instruct-preview-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:952b26b3fd4edb6511ef79a655384dc31ef7a093c9ded4899ef383deea09f2b4
|
| 3 |
-
size 7440559616
|
|
|
|
|
|
|
|
|
|
|
|