Instructions to use ggml-org/Qwen4-35B-A3B-GGUF-old 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 ggml-org/Qwen4-35B-A3B-GGUF-old 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 ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M # Run inference directly in the terminal: llama cli -hf ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M # Run inference directly in the terminal: llama cli -hf ggml-org/Qwen4-35B-A3B-GGUF-old: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 ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M
Use Docker
docker model run hf.co/ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use ggml-org/Qwen4-35B-A3B-GGUF-old with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ggml-org/Qwen4-35B-A3B-GGUF-old" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ggml-org/Qwen4-35B-A3B-GGUF-old", "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/ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M
- Ollama
How to use ggml-org/Qwen4-35B-A3B-GGUF-old with Ollama:
ollama run hf.co/ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M
- Unsloth Desktop
- Pi
How to use ggml-org/Qwen4-35B-A3B-GGUF-old with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF-old: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": "ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ggml-org/Qwen4-35B-A3B-GGUF-old with Docker Model Runner:
docker model run hf.co/ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M
- Lemonade
How to use ggml-org/Qwen4-35B-A3B-GGUF-old with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M
Run and chat with the model
lemonade run user.Qwen4-35B-A3B-GGUF-old-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ggml-org/Qwen4-35B-A3B-GGUF-old with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF-old: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 ggml-org/Qwen4-35B-A3B-GGUF-old:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ggml-org/Qwen4-35B-A3B-GGUF-old with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF-old: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 "ggml-org/Qwen4-35B-A3B-GGUF-old: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"
Qwen4-35B-A3B
Run with https://llama.app
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K
To enable the optional multi-token prediction (MTP) speculative decoding head (auto-downloaded from this repo):
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K --spec-type draft-mtp --spec-draft-n-max 3
Source models
Files
| Quant | Size | Resident (RAM) | Notes |
|---|---|---|---|
| BF16 | 111.1 GB | 70.1 GB | 16-bit precision converted from the original BF16 checkpoint (includes 20B n-gram embedding table) |
| Q8_0 | 59.4 GB | 37.6 GB | Near-lossless 8-bit quantization; hc_*, ssm_beta, ssm_alpha, and ple_conv1d kept at BF16 |
| Q6_K | 51.0 GB | 29.2 GB | 6-bit quantization (per_layer_token_embd at Q8_0); hc_*, ssm_beta, ssm_alpha, and ple_conv1d kept at BF16 |
| Q4_K_M | 36.0 GB | 21.9 GB | imatrix-calibrated 4-bit quantization (per_layer_token_embd at Q5_0); hc_*, ssm_beta, ssm_alpha, and ple_conv1d kept at BF16 |
| mmproj (BF16) | 903 MB | β | Vision encoder |
| mtp (BF16, Q8_0, Q4_K_M) | 3.76 / 2.02 / 1.29 GB | β | Optional 1-layer MTP speculative decoding head (--spec-type draft-mtp) |
Notes
- Qwen4-35B-A3B is a 40-layer hybrid mixture-of-experts model (35B total / 3B active parameters, plus 20B per-layer n-gram embeddings at layer 2) with image/video input and a native 1M (
1,048,576) context window. It alternates 3 Gated DeltaNet linear-attention layers and 1 Qwen Sparse Attention (QSA) layer (256 routed experts with 8 active + 1 shared expert, 4-branch hyper-connection residuals). - Under llama.cpp's default
--lazy-mode auto, the per-layer n-gram embedding table (per_layer_token_embd.weight, 14.1 GB inQ4_K_Mand 21.8 GB inQ6_K/Q8_0) stays on disk and is read on demand rather than loaded into RAM, soQ4_K_Mruns on a 32 GB Mac,Q6_Kon a 48 GB Mac, andQ8_0on a 64 GB Mac. - Across all quantized variants, hyper-connection weights (
hc_*), linear-attention gate projections (ssm_beta,ssm_alpha), and the PLE depthwise convolution (ple_conv1d) are kept at BF16, reducing KL divergence by ~25-29% for <1% size overhead.Q4_K_Mis calibrated with an imatrix computed from the BF16 model. - The 1-layer MTP head is packaged as optional
mtp-sidecars so base model downloads stay compact. Pass--spec-type draft-mtp --spec-draft-n-max 3with-hfto auto-download and enable it (or-md mtp-Qwen4-35B-A3B-*.gguflocally). - KL divergence against the BF16 (20 x 512 tokens):
Q8_00.0359 (94.0% same top token),Q6_K0.0479 (92.9% same top token),Q4_K_M0.1252 (87.9% same top token). - Reasoning depth is set with
reasoning_effort:off,low,high(default), orxhigh(or--reasoning off). Recommended sampling: thinking modetemp=1.0,top_p=0.95,top_k=20; non-thinking modetemp=0.7,top_p=0.80,top_k=20,presence_penalty=1.5.
- Downloads last month
- 273,528
Hardware compatibility
Log In to add your hardware