Instructions to use MedDocAI/Spark-X2.6-4B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MedDocAI/Spark-X2.6-4B-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 MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
Build from source code
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 MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use MedDocAI/Spark-X2.6-4B-GGUF with Ollama:
ollama run hf.co/MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use MedDocAI/Spark-X2.6-4B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
Configure the model in Pi
# 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": "MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use MedDocAI/Spark-X2.6-4B-GGUF with Docker Model Runner:
docker model run hf.co/MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
- Lemonade
How to use MedDocAI/Spark-X2.6-4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Spark-X2.6-4B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use MedDocAI/Spark-X2.6-4B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
Configure Hermes
# 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 MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MedDocAI/Spark-X2.6-4B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M
Configure OpenClaw
# 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 "MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M# Run inference directly in the terminal:
llama cli -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_MBuild from source code
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 MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M# Run inference directly in the terminal:
./build/bin/llama cli -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_MUse Docker
docker model run hf.co/MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_MYAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Spark-X2.6-4B GGUF (Q6_K, Q4_K_M) — MedDocAI re-host
Spark-X2.6-4B Q6_K GGUF: quantized by bartowski from XHToken/Spark-X2.6-4B; redistributed unmodified by MedDocAI. Licensed under Apache-2.0; Copyright 2026 XHToken.
Spark-X2.6-4B Q4_K_M GGUF: quantized by bartowski from XHToken/Spark-X2.6-4B; redistributed unmodified by MedDocAI. Licensed under Apache-2.0; Copyright 2026 XHToken.
| File | Size | sha256 |
|---|---|---|
Spark-X2.6-4B-Q6_K.gguf |
3,611,148,928 B | 3a57c7c781fa8faa3ff20dc144acc04c2d63a3a01ad8a5504ed97655169db3a3 |
Spark-X2.6-4B-Q4_K_M.gguf |
2,621,104,768 B | 30b77e2ede85c37da7071048c91fcf47c3e8cbfad51971640530f8ba9753301a |
- Original model: https://huggingface.co/XHToken/Spark-X2.6-4B (Apache-2.0; base
XHToken/Spark-X2.6-4B-Base). - Quantization: https://huggingface.co/bartowski/Spark-X2.6-4B-GGUF (that repo carries no LICENSE file, so this
re-host carries XHToken's
LICENSEverbatim, as Apache-2.0 §4(a) requires). - The weights are not modified. Each file above is the exact file MedDocAI measured (Q6_K: SPEC-183, #749 / #759 / #761; Q4_K_M: SPEC-187, #750 / #880).
- MedDocAI is not endorsed by XHToken (Apache-2.0 §6).
- Downloads last month
- 333
4-bit
6-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M# Run inference directly in the terminal: llama cli -hf MedDocAI/Spark-X2.6-4B-GGUF:Q4_K_M