Instructions to use synthetic0x/Qwen4-35B-A3B-Heretic-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 synthetic0x/Qwen4-35B-A3B-Heretic-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 synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf synthetic0x/Qwen4-35B-A3B-Heretic-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 synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf synthetic0x/Qwen4-35B-A3B-Heretic-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 synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M
Use Docker
docker model run hf.co/synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use synthetic0x/Qwen4-35B-A3B-Heretic-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "synthetic0x/Qwen4-35B-A3B-Heretic-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": "synthetic0x/Qwen4-35B-A3B-Heretic-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M
- Ollama
How to use synthetic0x/Qwen4-35B-A3B-Heretic-GGUF with Ollama:
ollama run hf.co/synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use synthetic0x/Qwen4-35B-A3B-Heretic-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf synthetic0x/Qwen4-35B-A3B-Heretic-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": "synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use synthetic0x/Qwen4-35B-A3B-Heretic-GGUF with Docker Model Runner:
docker model run hf.co/synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M
- Lemonade
How to use synthetic0x/Qwen4-35B-A3B-Heretic-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen4-35B-A3B-Heretic-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use synthetic0x/Qwen4-35B-A3B-Heretic-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 synthetic0x/Qwen4-35B-A3B-Heretic-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 synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use synthetic0x/Qwen4-35B-A3B-Heretic-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf synthetic0x/Qwen4-35B-A3B-Heretic-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 "synthetic0x/Qwen4-35B-A3B-Heretic-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"
Benchmark and thanks
Technical Benchmark: Qwen-35B-A3B Hybrid Inference via llama.cpp
1. System Specifications
- OS: Windows 11 (64-bit) Build 26300.9974
- CPU: AMD Ryzen 7 7840HS (8C/16T, Zen 4)
- RAM: 32 GB DDR5
- GPU: NVIDIA GeForce RTX 4060 Laptop GPU (8 GB VRAM)
- Disk: NVMe SSD
- Backend:
llama.cppb12992 (CUDA)
2. Benchmark Methodology & Results
Methodology
To simulate a real-world workload rather than synthetic micro-benchmarks, tests were executed using a complex prompt repeated across 15 consecutive runs. Generation throughput was averaged over outputs consistently ranging between 256 and 512 tokens.
The IQ3_S build was sourced from an independent third-party developer to contrast against the SMX3_XL quantization:
| Quantization Format | Source | Size on Disk | Generation Speed | Performance Delta |
|---|---|---|---|---|
| IQ3_S | Third-Party Developer | 28.9 GB | 24 tokens/sec | Baseline (100%) |
| SMX3_XL | Target Build | 28.7 GB | 29 tokens/sec | +20.8% throughput |
Key Finding: Despite an essentially identical footprint,
SMX3_XLdelivers significantly higher throughput thanIQ3_Sdue to lower dequantization overhead on hybrid CPU-GPU execution pipelines.
3. Architecture & Optimization Highlights
To execute a ~29 GB model on an 8 GB VRAM budget at 29 t/s, the following optimizations were applied:
- Selective MoE Offloading (
override-tensor): Offloads non-critical expert layers (blk.*.ffn_.*_exps) and embedding weights to DDR5 system RAM, keeping active attention layers in high-bandwidth VRAM. - KV-Cache Compression: Utilizes
q4_0precision for both K and V caches (cache-type-k/v = q4_0), enabling a stable 16K context window within tight memory bounds. - Flash Attention (
fa = on): Drastically reduces attention computation latency and memory overhead.
4. Empirical Observations (Non-Benchmark Scope)
- Output Quality: While formal perplexity and automated eval metrics were outside the scope of this throughput test, empirical observation showed that
SMX3_XLconsistently yielded noticeably superior output quality and reasoning coherence compared to the third-party developer'sIQ3_Squantization method and de-refusal strategy - MTP (Multi-Token Prediction) on Low-Memory Constraints: Practical tests with MTP did not yield massive performance gains on this setup, largely due to PCIe/memory bandwidth constraints on hybrid hardware rather than the quant format itself. However, as an additional data point: using a ~1 GB Q4_0 MTP file with
spec-draft-n-max = 1boosted generation up to ~35 tokens/sec, which may be useful for users running similar setups.
5. Production Configuration
All options that are not specified are set to their default values.
[Qwen/Qwen4-35B-A3B-Heretic:SMX3_XL]
model = D:\Downloads\Qwen4-35B-A3B-Heretic-SMX3_XL.gguf
# Sampling
temperature = 0.7
top-p = 0.8
top-k = 20
min-p = 0.00
presence-penalty = 1.5
# Memory & Offloading Strategy
device = cuda0
gpu-layers = 999
load-mode = mmap
lazy-mode = on
fit = off
no-mmproj = true
override-tensor = token_embd\.weight=CPU,blk\.(0|1|2|3|4|5|6|7|8|9|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39)\.ffn_.*_exps\.=CPU
# Context & Processing
ctx-size = 16384
batch-size = 2048
ubatch-size = 512
split-mode = none
parallel = 1
# Cache & Acceleration
fa = on
kv-unified = true
cache-type-k = q4_0
cache-type-v = q4_0
cache-ram = 1536
fit-target = 256
Also, thank you for your efforts—especially regarding SMX.
thanks for taking the time to run all these tests and write this up!
really happy to see that SMX actually makes a difference on other hardware too
would you mind if i reference your benchmark in the readme?
I’d be more than happy for you to reference it in the README. Glad to hear the data was helpful, and thanks for providing great quants!
thanks! i'll add it with a link to your post