GGUF quants
Collection
100 items • Updated • 1
How to use Xylolabs/Spark-X2.6-4B-Base-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
docker model run hf.co/Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
How to use Xylolabs/Spark-X2.6-4B-Base-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Xylolabs/Spark-X2.6-4B-Base-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": "Xylolabs/Spark-X2.6-4B-Base-GGUF",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
How to use Xylolabs/Spark-X2.6-4B-Base-GGUF with Ollama:
ollama run hf.co/Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
How to use Xylolabs/Spark-X2.6-4B-Base-GGUF with Pi:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
"providers": {
"llama-cpp": {
"baseUrl": "http://localhost:9931/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M"
}
]
}
}
}# Start Pi in your project directory: pi
How to use Xylolabs/Spark-X2.6-4B-Base-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
How to use Xylolabs/Spark-X2.6-4B-Base-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
lemonade run user.Spark-X2.6-4B-Base-GGUF-Q4_K_M
lemonade list
How to use Xylolabs/Spark-X2.6-4B-Base-GGUF with Hermes Agent:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
hermes
How to use Xylolabs/Spark-X2.6-4B-Base-GGUF with OpenClaw:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
openclaw agent --local --agent main --message "Hello from Hugging Face"
Imatrix-calibrated GGUF quantizations of XHToken/Spark-X2.6-4B-Base (ec7af5e1) for llama.cpp, from Q2_K through Q8_0.
| Quant | File | Size |
|---|---|---|
| Q2_K | Spark-X2.6-4B-Base-Q2_K.gguf |
1.79 GB |
| Q3_K_M | Spark-X2.6-4B-Base-Q3_K_M.gguf |
2.17 GB |
| IQ4_XS | Spark-X2.6-4B-Base-IQ4_XS.gguf |
2.38 GB |
| Q4_K_S | Spark-X2.6-4B-Base-Q4_K_S.gguf |
2.43 GB |
| Q4_K_M | Spark-X2.6-4B-Base-Q4_K_M.gguf |
2.60 GB |
| Q5_K_M | Spark-X2.6-4B-Base-Q5_K_M.gguf |
2.98 GB |
| Q6_K | Spark-X2.6-4B-Base-Q6_K.gguf |
3.38 GB |
| Q8_0 | Spark-X2.6-4B-Base-Q8_0.gguf |
4.38 GB |
llama-cli -hf Xylolabs/Spark-X2.6-4B-Base-GGUF:Q4_K_M
Mean KL divergence and top-1 token agreement against the BF16 GGUF reference on WikiText-2 and held-out prose.
| Quant | Size | WikiText-2 KL | WikiText-2 top-1 | Held-out KL | Held-out top-1 |
|---|---|---|---|---|---|
| Q2_K | 1.79 GB | 0.342462 | 73.60% | 0.327963 | 72.89% |
| Q3_K_M | 2.17 GB | 0.086883 | 86.20% | 0.073539 | 86.87% |
| IQ4_XS | 2.38 GB | 0.039405 | 90.56% | 0.031179 | 91.35% |
| Q4_K_S | 2.43 GB | 0.037025 | 90.67% | 0.031269 | 91.32% |
| Q4_K_M | 2.60 GB | 0.032443 | 91.21% | 0.026768 | 92.02% |
| Q5_K_M | 2.98 GB | 0.010625 | 94.84% | 0.007802 | 95.36% |
| Q6_K | 3.38 GB | 0.005166 | 96.63% | 0.002594 | 97.25% |
| Q8_0 | 4.38 GB | 0.001883 | 98.44% | 0.000674 | 98.93% |
| Hardware | Memory | File | Context |
|---|---|---|---|
| RTX 4090 / 3090 | 24 GB | Spark-X2.6-4B-Base-Q8_0.gguf |
32K |
| RTX 5090 | 32 GB | Spark-X2.6-4B-Base-Q8_0.gguf |
32K |
| RTX 6000 Ada | 48 GB | Spark-X2.6-4B-Base-Q8_0.gguf |
32K |
| H100 | 80 GB | Spark-X2.6-4B-Base-Q8_0.gguf |
32K |
| RTX PRO 6000 | 96 GB | Spark-X2.6-4B-Base-Q8_0.gguf |
32K |
| Mac Studio M5 Max | 128 GB | Spark-X2.6-4B-Base-Q8_0.gguf |
32K |
Q2_K through Q8_0) with imatrix calibration and BF16 KL evaluation.2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Base model
XHToken/Spark-X2.6-4B-Base