Instructions to use Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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 Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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 Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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 Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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 Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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": "Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M
- Ollama
How to use Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF with Ollama:
ollama run hf.co/Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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": "Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF with Docker Model Runner:
docker model run hf.co/Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M
- Lemonade
How to use Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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 Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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 Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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 "Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-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"
Qwen3-Coder-30B-A3B keep-120, a structurally pruned derivative (Q4_K_M, GGUF)
Release: built to be downloaded and served with Xyntetik Runner.
- Measured status against the parent: passes both the original and the current bar; 120 of 128 experts kept per layer, the plan JSON is beside the file.
- Parent model: Qwen/Qwen3-Coder-30B-A3B-Instruct
- Collection: Runner Releases, also in Pruning and Quantization Frontiers
- Evidence: the tables on this card; the contrasting negative case is the Nemotron prune frontier
- Runner compatibility: any Runner release; native Qwen3-Coder tool protocol since 0.5.3.
- Validation status (Runner support tiers): each file's row in the Runner roster says which tier it is in, what is re-checked on a release and the date and version of the last run.
Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M.gguf: roster row
Want this for another model? The tools behind these files are open: requantization, expert pruning and sublayer removal in Xyntetik Runner, and the method for this file is on this card or in its evidence dataset.
Request a model ยท Report your result ยท Community results ยท All files
If this file is useful to you, a contribution funds the hardware time behind the next one.
Serve with xyntetik-runner โ tool calls that still parse when the budget runs out
This GGUF is built to be served with xyntetik-runner, a single-binary, dependency-free C11 inference engine (CPU / CUDA / Metal, OpenAI-compatible server). Its one differentiator you cannot get from another engine:
When a tool call runs past its token budget, Runner closes it to the smallest schema-legal document, so the arguments still parse.
Most OpenAI-compatible engines return finish_reason: "length" with an empty or malformed tool_calls the caller has to repair or retry. Runner does forced-truncation recovery: once a JSON document starts, it emits a legal ending when the budget expires. On local models โ tight context, slow generation โ that is the difference between an agent loop that finishes and one that retries from scratch.
Measured โ what each engine hands the caller when the token budget cuts a tool call short (same box, same tool schema, same prompt, tool_choice:"required", temperature 0, budgets 1โ64):
| engine | budget too small (1โ16 tokens) | enough budget (64, control) |
|---|---|---|
| Runner | executable tool_calls, arguments parse |
completes |
| vLLM 0.27.1 | no call; protocol framing leaks into content |
completes |
| llama.cpp b10488 | no call; leak, then tool_calls with unparseable args |
completes |
| Ollama 0.32.14 | no call; empty content, then HTTP 500 | completes |
| TensorRT-LLM 1.2.1 โ | no call; <tool_call> leak, then empty content |
completes |
| SGLang 0.5.17 โ | no call; <tool_call> leak, then empty content |
completes |
Every engine completes at 64 tokens โ the failure is truncation, not misconfiguration. Below that, only Runner returns an executable call. This is the behaviour across every OpenAI-compatible engine measured, not a claim about engines not measured. โ TensorRT-LLM and SGLang were measured on a Qwen3-1.7B substitute; truncation recovery is a property of the runtime, not the model.
Constrained decoding also holds the shape of a tool call under quantization: on a full quant ladder, schema conformance and tool selection stayed 100% down to Q4_0 (argument agreement decayed to 50%) โ it guarantees the shape of a call at any quantization, not its contents.
Quickstart
# build the single binary (no deps), then serve this GGUF:
runner -m Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M.gguf --serve
# point any OpenAI-compatible client at http://localhost:8080/v1
Full recipe, raw responses, and the per-release regression gate: the truncation benchmark.
Run it
This file is 17.5 GB with expert tensors kept in their native Q4_K / Q6_K precision, so it wants a machine with roughly 20 GB of usable memory or more. On a smaller machine, start with gemma-4-E2B-it-Q4_0 instead.
# Apple Silicon Mac
curl -L https://github.com/Joakimpalm-Zen/xyntetik-runner/releases/latest/download/runner-macos-arm64.tar.gz | tar xz
curl -L -o Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M.gguf \
https://huggingface.co/Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF/resolve/main/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M.gguf
./runner-macos-arm64 -m Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M.gguf -i
Linux and Windows builds are on the same release page.
Using a different runtime? That is part of the point of this artifact. The
reduced expert count is declared in the GGUF metadata, so a runtime that
resolves num_experts from the file loads it unchanged, and one that assumes
"qwen3moe means 128 experts" fails. Either result is informative; please
report it either way, including the runtime and its version.
This is not a quantization of Qwen3-Coder-30B-A3B. It is a structural modification: each MoE layer's expert roster is pruned from 128 to its own top-120 experts, selected from measured routing data. The expert FFN tensors remain in their native Q4_K / Q6_K precision, untouched, not requantized, and top-8 routing is retained. Category-wise:
| Model | Architecture change | Experts/layer | Routing | Expert format | Category |
|---|---|---|---|---|---|
| Qwen3-Coder-30B-A3B-Instruct (Qwen) | none | 128 | top-8 | Q4_K / Q6_K | official |
| this file | 8 experts pruned per layer | 120 | top-8 | Q4_K / Q6_K (unchanged) | structural / expert-pruned derivative |
- File:
Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M.gguf(17,531,967,808 bytes) - SHA256:
3ac8568224a15ea49db6affdd195ba48e8b2d7c6325c7849b9829381e89163a1 - Parent GGUF:
lmstudio-community/Qwen3-Coder-30B-A3B-Instruct-GGUF, revision1f4ceb1041258b3fbfe59e1175d1321c6b41863b(SHA25679ad15a5ee3caddc3f4ff0db33a14454a5a3eb503d7fa1c1e35feafc579de486, 18.6 GB) - Base model:
Qwen/Qwen3-Coder-30B-A3B-Instruct, revisionb2cff646eb4bb1d68355c01b18ae02e7cf42d120, apache-2.0 verified on the base repo. The parent file's SHA256 was verified byte for byte against the source repo's LFS hash before pruning.
Why these eight experts: the methodology
Reproducible pipeline, tooling public in the Xyntetik Runner repo:
- Trace: run the unpruned parent over a mixed evaluation corpus with the
runner's MoE trace enabled (
RUNNER_MOE_TRACEwrites JSONL of every routing decision: position, layer, selected experts, gate weights, activation norms). This trace covered 4,441 tokens and 213,216 records. - Saliency:
scripts/moe-prune-plan.pyscores each (layer, expert) pair by the sum of gate weight times activation L2 norm over every selection, a REAP-style saliency that weighs how much each pick moved the residual stream, not merely how often it was chosen. - Plan:
--keep-n 120; every MoE layer keeps its own top-120 by saliency, so the discarded eight differ per layer. The corpus did not select every expert in every layer (observed range 112 to 128); experts never selected carry zero saliency and are tied at the bottom, and the plan is padded to a uniform 120 with those zero-saliency ties so the prune is uniform and theexpert_countmetadata is correct. The exact plan used for this file is published here asqwen3coder-keep120-plan.json; with the parent file and the runner, the build is fully reproducible. - Prune:
runner --prune-experts plan.json --quantize out.ggufdrops the expert tensors and the matching router rows; quantized blocks are copied, not recoded. - Gate: KL divergence plus top-1 agreement against the unpruned parent
(
scripts/kld-compare-raw.py, mixed corpus, temperature 0, word-by-word teacher forcing, KLD over the union of both sides' top-20 logprobs).
Retained saliency mass is 99.989% mean across layers (worst layer 99.80%). Note that saliency-mass coverage is not a predictor of the gate result; a sibling model retained 99.56% of mass at a deeper prune and still missed the top-1 bar. The gate below is the evidence; the mass figure is context.
Validation: and where the cliff is
Publication bar: top-1 at or above 97%, mean KLD at or below 0.05 vs the parent, over 400 teacher-forced positions.
| metric | measured | bar | verdict |
|---|---|---|---|
| top-1 agreement vs parent | 97.25% | >= 97% | pass |
| margin-qualified top-1 (bar v2, re-measured 2026-08-14) | 100.00% | >= 97% | pass |
| mean KL divergence | 0.00738 | <= 0.05 | pass |
| mean top-8 overlap | 0.9734 | none | none |
| positions scored | 400 (0 failed) | 400 | none |
Zero-point self-check, run first: the identical protocol with the parent on both sides returned mean KLD 0.0, top-1 100.0%, top-8 overlap 1.0 over 40 positions. The harness contributes no divergence of its own, so the numbers above are attributable to the removed experts. A 100-position screen returned 96.0% top-1 / 0.0116 KLD before the full gate; both are reported so the screen-to-gate movement is visible rather than hidden.
The margin is thin (0.25 points) and the frontier around it is measured:
| Variant | Top-1 vs its parent | Verdict |
|---|---|---|
| keep-120 (this file) | 97.25% (mean KLD 0.00738) | passes, published |
| deeper prunes of this model | not gated | not shipped; only what was measured to pass is published |
| Qwen3-30B-A3B (non-Coder sibling) keep-120 | 95.50% | fails the same bar at the same 6.25% drop |
The sibling row is the interesting one: the base Qwen3-30B-A3B is byte identical in shape to this model and fails where this one passes. Expert prunability is a property of the specific training run, not of the architecture. It was measured here rather than assumed.
Scope: the gate measures agreement with the parent's own distribution, not downstream capability. A 2.75% top-1 disagreement rate is a real behavioural difference, and this artifact has not been benchmarked on coding tasks. If you need the parent's exact behaviour, use the parent.
Re-measured 2026-08-14 under the project's adopted dual-column bar (margin-qualified top-1 beside plain top-1, 0.5-nat reference-side tie band): this artifact passes BOTH the original bar and the current one, and remains the only published file in the account's quality series to clear the original bar unaided. The same campaign withdrew a different artifact's claim (see gpt-oss-20b-keep30), so this row stands under the standard that retired that one.
Measured delta vs the stock Q4_K_M
| stock (18.6 GB) | keep-120 (17.5 GB) | |
|---|---|---|
| Disk / resident weights | 18,632,186,176 B | 17,531,967,808 B (5.90% smaller) |
| Geometry | 48 layers, 128 experts, top-8 | 48 layers, 120 experts, top-8 (unchanged otherwise) |
| Quality | reference | 97.25% top-1, mean KLD 0.00738 |
The 1.1 GB saved is not transformative on its own; it buys KV-cache headroom on machines where the stock file barely fits. This artifact exists because the quality frontier is measured and stated, and because no other keep-N of this model has cleared a published gate.
Running it
Built and certified with
Xyntetik Runner, a
from-scratch C inference engine (CPU AVX2/NEON, CUDA, Metal, OpenAI-compatible
server) whose --caps reports memory limits so a scheduler can check
placement before loading:
./runner -m Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M.gguf --serve --port 8080
Any GGUF runtime with qwen3moe support that reads the expert count from metadata should also load it (llama.cpp does).
Publication policy
This project publishes only artifacts that passed the quality gate. Experiments that failed it ship as negative-result documentation in the runner and suite repos instead of as uploads: the same night this file was gated, the sibling Qwen3-30B-A3B failed keep-120 at 95.50%, gpt-oss-120b failed at 85.50%, and none of them were published. An optimization does not pass because the file got smaller; it has to preserve the model and produce a configuration worth running.
Measured envelope
Every artifact this account publishes ships a measured-envelope sidecar
(Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M.gguf.envelope.json, in this repo), the same file
xyntetik-runner reads at
load: download it next to the GGUF and the runner reports the measured state at
load. A measured envelope is a dated observation, not a standing quality
claim: it records exactly what this file is, where it came from, and what
was measured, so the claims above stay traceable.
| artifact sha256 | 3ac8568224a15ea49db6affdd195ba48e8b2d7c6325c7849b9829381e89163a1 |
| what changed | keep-120 expert prune via --prune-experts (each layer keeps its own top-120 by measured routing mass) |
| reference (unpruned parent) sha256 | 79ad15a5ee3caddc3f4ff0db33a14454a5a3eb503d7fa1c1e35feafc579de486 |
| fidelity vs parent | PASSES the bar: plain top-1 97.25%, margin-qualified 100.00%, mean KLD 0.00738 (table above) |
| tool calling | generic constrained envelope (truncation-safe; see the tool-calling section above) |
| measured | 2026-08-14 |
| verdict | experimental: loads with a banner; never a standing certification |
About Xyntetik
This repository is published by Xyntetik, the Zenova AB program for running capable language models on hardware you own and proving what they did. Its released engine is Xyntetik Runner: a free, single-binary GGUF engine in C for CPU, CUDA and Metal that serves, scores and trains through the quantized file it deploys and records every run as a receipt. The measurements behind the program's claims are collected at xyntetik.com/evidence. The program's organization on Hugging Face is Xyntetik.
- Downloads last month
- 1,018
4-bit
Model tree for Joakimpalm-Zen/Qwen3-Coder-30B-A3B-Instruct-keep120-Q4_K_M-GGUF
Base model
Qwen/Qwen3-Coder-30B-A3B-Instruct