Instructions to use tensorblock/salamandra-2b-instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/salamandra-2b-instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/salamandra-2b-instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/salamandra-2b-instruct-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/salamandra-2b-instruct-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/salamandra-2b-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/salamandra-2b-instruct-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/salamandra-2b-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/salamandra-2b-instruct-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/salamandra-2b-instruct-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/salamandra-2b-instruct-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/salamandra-2b-instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/salamandra-2b-instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/salamandra-2b-instruct-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/salamandra-2b-instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/salamandra-2b-instruct-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/salamandra-2b-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/salamandra-2b-instruct-GGUF:Q2_K
- SGLang
How to use tensorblock/salamandra-2b-instruct-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/salamandra-2b-instruct-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/salamandra-2b-instruct-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/salamandra-2b-instruct-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/salamandra-2b-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/salamandra-2b-instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/salamandra-2b-instruct-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/salamandra-2b-instruct-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/salamandra-2b-instruct-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/salamandra-2b-instruct-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/salamandra-2b-instruct-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/salamandra-2b-instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/salamandra-2b-instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/salamandra-2b-instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/salamandra-2b-instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.salamandra-2b-instruct-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Keep Q2_K/Q3_K_M gguf only
Browse files- salamandra-2b-instruct-Q3_K_L.gguf +0 -3
- salamandra-2b-instruct-Q3_K_S.gguf +0 -3
- salamandra-2b-instruct-Q4_0.gguf +0 -3
- salamandra-2b-instruct-Q4_K_M.gguf +0 -3
- salamandra-2b-instruct-Q4_K_S.gguf +0 -3
- salamandra-2b-instruct-Q5_0.gguf +0 -3
- salamandra-2b-instruct-Q5_K_M.gguf +0 -3
- salamandra-2b-instruct-Q5_K_S.gguf +0 -3
- salamandra-2b-instruct-Q6_K.gguf +0 -3
- salamandra-2b-instruct-Q8_0.gguf +0 -3
salamandra-2b-instruct-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bbfe8b9c48352f7319ce0a2e838c3ec575147b8b9fb0cc55ceb2a992a64feedd
|
| 3 |
-
size 1317460352
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1850f08a2c64538bba8e81cb86ed8c888d00885797a70a54ec46d61a2288fc73
|
| 3 |
-
size 1215420800
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dad75f8a3f11071d25e911946cff284f8e33255e29dc4bafd56792a0cc87f64d
|
| 3 |
-
size 1409554816
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e2eee218e35d09b22cbaa4d981cd3a9a4d3f5eb947287089d938d9db2a7bbff2
|
| 3 |
-
size 1506089344
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3b5eb1411f08eadf51c8dcab217e40febce51d5979e7c83f60afa456a6dcb1cf
|
| 3 |
-
size 1447164288
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4337003c37080cda0183418d8f1307d5513a1a2c13c89512ea910f0610b87420
|
| 3 |
-
size 1625692544
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3ec7b6714f47e76109f490cdbc90a4613332743f2856deb473c92495c2c01b14
|
| 3 |
-
size 1690868096
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:01ec839068c8201e9b969ceb83c0f791cd9c55f14c37bb13bca84bbc492a1bb9
|
| 3 |
-
size 1642404224
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1584df9c3ab42874e03cb95cec87db6675eeec29bd86645a8974270a1857ef87
|
| 3 |
-
size 1920096640
|
|
|
|
|
|
|
|
|
|
|
|
salamandra-2b-instruct-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d0bed3db353051960c8396d3b72c643e45394be1399b4d867810cfb73bdc0305
|
| 3 |
-
size 2401081728
|
|
|
|
|
|
|
|
|
|
|
|