Run this model with HF Jobs
Run jesusluque/qwen3-30b-topiary on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/jesusluque/qwen3-30b-topiary. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/jesusluque/qwen3-30b-topiary on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use jesusluque/qwen3-30b-topiary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use jesusluque/qwen3-30b-topiary with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download jesusluque/qwen3-30b-topiary --local-dir qwen3-30b-topiary
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Qwen3-30B-A3B โ Topiary (fine, per-layer taper)
The flagship Topiary checkpoint: the routed experts of Qwen/Qwen3-30B-A3B, sculpted by routed activation salience at neuron granularity and truncated with a depth-tapered per-layer budget (576 neurons per expert in the shallowest layers rising to 704 in the deepest; mean 640 of 768), then quantized to 4-bit g64. No training, no distillation. 14.46 GB of weights.
The per-layer taper follows a measured law: sensitivity to width cuts increases monotonically with depth (late-layer error has no remaining layers to damp it). A controlled three-direction comparison at equal bytes showed the reverse allocation is the worst possible choice.
โ ๏ธ Loading
Per-layer widths are not expressible in a standard mlx-lm config, so this
checkpoint needs a ~30-line loader shim (src/per_layer.py in the Topiary
repository) that patches block construction in layer order:
from per_layer import maybe_patch
from mlx_lm import load, generate
maybe_patch("jesusluque/qwen3-30b-topiary")
model, tokenizer = load("jesusluque/qwen3-30b-topiary")
If you need a zero-shim checkpoint, use the uniform sibling
jesusluque/qwen3-30b-topiary-w640 (slightly lower scores).
Results (14.46 GB, Apple Silicon, MLX โ all arms equal bytes)
| Signal | This model | Uniform fine w640 | Community 3-bit |
|---|---|---|---|
| Code PPL โ | 2.64 | 2.70 | 3.26 |
| WikiText PPL โ | 10.27 | 10.35 | 15.7 |
| GSM8K (50) | 94% | 94% | 88% |
| MMLU (100, generative) | 70% | 74% | 57% |
| HumanEval (50) | 92% | 84% | 76% |
| HellaSwag (100) | 70% | 65% | 66% |
| ARC-Challenge (100) | 48% | 49% | 44% |
| Decode | 76.6 tok/s | 80.6 | 78.5 |
Honest notes: the per-layer taper trades a little broad-knowledge ranking (MMLU 70 vs 74, ARC โ1) for large generation gains (HumanEval +8, both perplexities, HellaSwag +5). MATH-500 remains the 3-bit's stronghold (46% vs 40% here โ distribution tails favor diffuse bit noise over salience truncation), while IFEval lands at 74% (3-bit: 68%). Pick the uniform sibling if MMLU-style ranking dominates your use.
Update (Aug 2026): comparison against the UNPRUNED base
A four-benchmark suite (greedy, fixed seed, n=500 on MMLU/LAMBADA) against the original Qwen3-30B-A3B-4bit, same day and machine:
| Original (16.4 GB) | This model (14.5 GB) | |
|---|---|---|
| MATH-500 (n=100) | 70% | 72% |
| MBPP (n=100) | 83% | 81% |
| MMLU (n=500) | 78.2% | 68.2% |
| LAMBADA (n=500) | 64.6% | 60.2% |
Pruning preserves reasoning and costs knowledge: โ10 MMLU / โ4.4 LAMBADA points, both significant. If broad world knowledge dominates your workload, prefer the unpruned checkpoint. Speed (same-day, interleaved, decode-only): 108 tok/s vs 101โ103 (+6%, โ2.7 GB). Full protocol and run records: github.com/jesusluque/topiary-stream (paper ยง2.4) and topiary paper ยง3.7.
Calibration & build
Mixed corpus (~40% code, ~30% GSM8K-train, ~30% WikiText), 151k tokens, routed-only statistics. Build: neuron-granularity permutation of the original bf16 experts, per-layer truncation (ratio 0.85 linear taper, floor 576), then 4-bit g64 quantization. All numbers reproducible from frozen configs; greedy decoding, fixed seeds.
- Downloads last month
- 11
4-bit