Instructions to use Anbeeld/GLM-5.2-DSpark-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 Anbeeld/GLM-5.2-DSpark-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 Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Anbeeld/GLM-5.2-DSpark-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 Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M
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 Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M
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 Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Anbeeld/GLM-5.2-DSpark-GGUF with Ollama:
ollama run hf.co/Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Anbeeld/GLM-5.2-DSpark-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Anbeeld/GLM-5.2-DSpark-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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Anbeeld/GLM-5.2-DSpark-GGUF with Docker Model Runner:
docker model run hf.co/Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M
- Lemonade
How to use Anbeeld/GLM-5.2-DSpark-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.GLM-5.2-DSpark-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Anbeeld/GLM-5.2-DSpark-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 Anbeeld/GLM-5.2-DSpark-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:8080/v1 hermes config set model.default Anbeeld/GLM-5.2-DSpark-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Anbeeld/GLM-5.2-DSpark-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Anbeeld/GLM-5.2-DSpark-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:8080/v1 \ --custom-model-id "Anbeeld/GLM-5.2-DSpark-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"
GLM-5.2 DSpark GGUF
GGUF quantizations of RedHatAI DSpark draft model for GLM-5.2.
Use with BeeLlama.cpp, a llama.cpp fork with advanced quantization features.
RedHatAI/GLM-5.2-speculator.dspark
This is a preliminary (and subject to change) DSpark speculator model for RedHatAI/GLM-5.2-NVFP4-FP8.
It was trained using the Speculators library on the mgoin/open-perfectblend-glm5.2-regen dataset.
Note:
It was validated on Nvidia B200, other hardware validation pending.
Training Details
Launch training
scripts/train.py \
--verifier-name-or-path RedHatAI/GLM-5.2-NVFP4-FP8 \
--data-path ./output/dspark_glm52 \
--vllm-endpoint http://localhost:8000/v1 \
--save-path ./output/dspark_glm52/checkpoints \
--epochs 1 \
--lr 3e-4 \
--total-seq-len 8192 \
--speculator-type dspark \
--block-size 8 \
--max-anchors 1024 \
--num-layers 3 \
--target-layer-ids 2 20 39 58 75 \
--markov-rank 256 \
--markov-head-type vanilla \
--enable-confidence-head \
--confidence-head-with-markov \
--loss-fn '{"ce": 0.1, "tv": 0.9}' \
--confidence-head-alpha 1.0 \
--fsdp-shard \
--logger tensorboard \
--log-dir ./output/dspark_glm52/logs \
--on-missing generate \
--on-generate delete \
--checkpoint-freq 0.01 \
--request-timeout 60 \
--max-retries 2
Deployment
Deploy with vLLM using the speculator as a draft model.
vllm serve RedHatAI/GLM-5.2-NVFP4-FP8 \
--max-model-len 20480 \
--spec-model RedHatAI/GLM-5.2-speculator.dspark \
--spec-method dspark \
--spec-tokens 7 \
-tp 8
Preliminary Evaluations
Per-Position Acceptance Rate
| Dataset | Pos 0 | Pos 1 | Pos 2 | Pos 3 | Pos 4 | Pos 5 | Pos 6 | Avg. Length |
|---|---|---|---|---|---|---|---|---|
| HumanEval | 77.8% | 59.1% | 44.6% | 33.9% | 26.1% | 20.3% | 15.8% | 3.78 |
| math_reasoning | 87.5% | 76.6% | 67.6% | 59.2% | 51.8% | 45.1% | 39.5% | 5.27 |
| qa | 70.7% | 48.5% | 33.7% | 23.7% | 17.1% | 11.9% | 8.4% | 3.14 |
| question | 73.7% | 52.6% | 38.1% | 28.5% | 21.6% | 16.7% | 13.2% | 3.44 |
| rag | 78.5% | 61.3% | 48.7% | 38.9% | 30.7% | 24.2% | 19.2% | 4.01 |
| summarization | 77.9% | 58.0% | 43.0% | 31.7% | 22.8% | 16.2% | 11.4% | 3.61 |
| tool_call | 71.9% | 51.1% | 37.1% | 27.6% | 21.4% | 16.8% | 13.2% | 3.39 |
| translation | 76.8% | 57.4% | 43.5% | 33.6% | 26.1% | 20.0% | 15.1% | 3.72 |
| writing | 74.0% | 52.2% | 38.0% | 28.1% | 21.3% | 16.7% | 13.1% | 3.44 |
- Downloads last month
- 29
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for Anbeeld/GLM-5.2-DSpark-GGUF
Base model
RedHatAI/GLM-5.2-speculator.dspark