GGUF quants
Collection
105 items • Updated • 1
How to use Xylolabs/Spark-X2.6-4B-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-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Spark-X2.6-4B-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-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Spark-X2.6-4B-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-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/Spark-X2.6-4B-GGUF:Q4_K_M
docker model run hf.co/Xylolabs/Spark-X2.6-4B-GGUF:Q4_K_M
How to use Xylolabs/Spark-X2.6-4B-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Xylolabs/Spark-X2.6-4B-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-GGUF",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/Xylolabs/Spark-X2.6-4B-GGUF:Q4_K_M
How to use Xylolabs/Spark-X2.6-4B-GGUF with Ollama:
ollama run hf.co/Xylolabs/Spark-X2.6-4B-GGUF:Q4_K_M
How to use Xylolabs/Spark-X2.6-4B-GGUF with Pi:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Spark-X2.6-4B-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-GGUF:Q4_K_M"
}
]
}
}
}# Start Pi in your project directory: pi
How to use Xylolabs/Spark-X2.6-4B-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/Spark-X2.6-4B-GGUF:Q4_K_M
How to use Xylolabs/Spark-X2.6-4B-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/Spark-X2.6-4B-GGUF:Q4_K_M
lemonade run user.Spark-X2.6-4B-GGUF-Q4_K_M
lemonade list
How to use Xylolabs/Spark-X2.6-4B-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-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-GGUF:Q4_K_M
hermes
How to use Xylolabs/Spark-X2.6-4B-GGUF with OpenClaw:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Spark-X2.6-4B-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-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 (3460bfa8) for llama.cpp, from Q2_K through Q8_0.
| Quant | File | Size |
|---|---|---|
| Q2_K | Spark-X2.6-4B-Q2_K.gguf |
1.79 GB |
| Q3_K_M | Spark-X2.6-4B-Q3_K_M.gguf |
2.17 GB |
| IQ4_XS | Spark-X2.6-4B-IQ4_XS.gguf |
2.38 GB |
| Q4_K_S | Spark-X2.6-4B-Q4_K_S.gguf |
2.43 GB |
| Q4_K_M | Spark-X2.6-4B-Q4_K_M.gguf |
2.60 GB |
| Q5_K_M | Spark-X2.6-4B-Q5_K_M.gguf |
2.98 GB |
| Q6_K | Spark-X2.6-4B-Q6_K.gguf |
3.38 GB |
| Q8_0 | Spark-X2.6-4B-Q8_0.gguf |
4.38 GB |
llama-cli -hf Xylolabs/Spark-X2.6-4B-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 |
|---|---|---|---|---|---|
| Xylolabs Q2_K | 1.79 GB | 1.292075 | 54.30% | 0.666725 | 61.87% |
| Xylolabs Q3_K_M | 2.17 GB | 0.362804 | 73.64% | 0.167681 | 80.58% |
| Xylolabs IQ4_XS | 2.38 GB | 0.157157 | 82.26% | 0.081486 | 86.17% |
| Xylolabs Q4_K_S | 2.43 GB | 0.166996 | 81.89% | 0.075683 | 86.85% |
| Xylolabs Q4_K_M | 2.60 GB | 0.178509 | 81.69% | 0.067742 | 87.36% |
| Xylolabs Q5_K_M | 2.98 GB | 0.063557 | 89.09% | 0.024266 | 92.50% |
| Xylolabs Q6_K | 3.38 GB | 0.021499 | 93.73% | 0.008334 | 95.35% |
| Xylolabs Q8_0 | 4.38 GB | 0.005506 | 97.08% | 0.002338 | 97.86% |
| Hardware | Memory | File | Context |
|---|---|---|---|
| RTX 4090 / 3090 | 24 GB | Spark-X2.6-4B-Q8_0.gguf |
32K |
| RTX 5090 | 32 GB | Spark-X2.6-4B-Q8_0.gguf |
32K |
| RTX 6000 Ada | 48 GB | Spark-X2.6-4B-Q8_0.gguf |
32K |
| H100 | 80 GB | Spark-X2.6-4B-Q8_0.gguf |
32K |
| RTX PRO 6000 | 96 GB | Spark-X2.6-4B-Q8_0.gguf |
32K |
| Mac Studio M5 Max | 128 GB | Spark-X2.6-4B-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