Views
No views yet
{-c, 0, +c} experts packed as base-3 trits (group size 64) — produced with TurboQuant-MLX.qwen3_5_moe, VLM; this build is used text-first)gate/up/down_proj of every routed expert): the data-free {-c, 0, +c} codebook, indices packed as genuine base-3 trits — 20 per uint32 = ~1.6 bpwNote: this is a thinking-capable model. Use the chat template (the generator applies it automatically), and see the thinking-mode notes below.
turboquant-mlx-full >= 0.15.1):turboquant-plan --model manjunathshiva/Qwen3.5-122B-A10B-tq3a-tqTe-g64Model
weights (exact) 30.9 GB
experts 27.0 GB (streamable)
resident 3.9 GB
KV cache 24.0 KB/token (hybrid: 12/48 full-attention)
Verdict: <resident | needs a wired-limit raise | streaming>
Recommended: <the exact flags for your Mac>--wired-gb / --ram-gb are for:1turboquant-plan --model manjunathshiva/Qwen3.5-122B-A10B-tq3a-tqTe-g64 \
2 --wired-gb 10.5 --ram-gb 16 --context 8192turboquant-doctor runs the same projection plus a readiness check; both take --json. The projection is calibrated against real measurements on a 16 GB Mac mini rather than estimated from theory — on the 9.4 GB ternary 35B it predicts a 10.44 GB peak where that machine measures 10.42.| Probe | Result |
|---|---|
| 1500-word essay (Roman Empire history) | ✅ 12K chars, coherent, no degeneration |
| Multi-step math (two-trains meeting problem) | ✅ Correct meeting time and distance |
Code generation (merge_intervals + unit tests) | ✅ Correct function with assert-based tests |
| Needle-in-haystack recall (password in ~4K-word filler) | ✅ Returned the password exactly |
| Strict format (numbered list, per-line word limits) | ✅ Perfect list under --no-think (see note) |
| Repetition trap (long open-ended explanation) | ✅ No repetition collapse |
max_tokens caps on strict-format tasks. As of turboquant-mlx-full 0.12.3 the mitigations ship as defaults: this repo's generation_config.json carries a light repetition_penalty (1.05) which the CLI applies automatically for thinking sessions, a second </think> is masked (kills doubled answers), and --no-think gives instant, loop-immune answers — recommended for math, strict formats, and latency-sensitive use.pip install "turboquant-mlx-full>=0.12.3" mlx-lmsudo sysctl -w iogpu.wired_limit_mb=34816):1python -m turboquant_mlx.generate \
2 --model manjunathshiva/Qwen3.5-122B-A10B-tq3a-tqTe-g64 \
3 --prompt "Explain why the sky is blue." --max-tokens 5121python -m turboquant_mlx.stream.stream_generate \
2 --model manjunathshiva/Qwen3.5-122B-A10B-tq3a-tqTe-g64 \
3 --prompt "Explain why the sky is blue." \
4 --max-tokens 512 --cache-budget-gb 8--cache-budget-gb 8): ~2.1 tok/s end-to-end, 11.3 GB peak RSS, 82% expert-cache hit rate. Adding --max-active-experts 3 reached ~2.4 tok/s with quality intact; pushing K lower gains little — the bottleneck is per-layer read latency across 48 MoE layers, not bandwidth. Set expectations accordingly: on 16 GB this model works, producing coherent full-quality answers, but a thinking-mode answer takes several minutes. Notes: --cache-budget-gb 8 is the ceiling on 16 GB (larger budgets exhaust RAM), and streaming this build reads ~43% fewer bytes per token than the 54 GB tq3 sibling. For an interactive 16 GB experience, use the 35B ternary sibling (fully resident, ~10 tok/s) — this 122B earns its keep fully resident on 36 GB+ Macs.pip install "turboquant-mlx-full[serve]>=0.12.3" then turboquant-serve --model manjunathshiva/Qwen3.5-122B-A10B-tq3a-tqTe-g64 --kv-bits 8 (add --cache-budget-gb 4 on small machines; --chat-template-args '{"enable_thinking": false}' to serve with thinking off).| Build | Experts | Size | Fits resident | Decode (64 GB M4 Max, resident) | Notes |
|---|---|---|---|---|---|
| tq3a-tqTe-g64 (this) | ternary ~1.6 bpw | 30.9 GB | 36–64 GB, no sysctl needed on 48+ | ~13 tok/s | smallest; long-context headroom; fastest streaming on minis |
| tq3-g32 | 3-bit | 54 GB | 64 GB only, sysctl required | ~25 tok/s (but Metal-OOMs past ~4–8K context) | fastest resident decode; recall-critical work |
1python -m turboquant_mlx.convert \
2 --hf-path Qwen/Qwen3.5-122B-A10B \
3 --mlx-path Qwen3.5-122B-A10B-tq3a-tqTe-g64 \
4 --bits 3 --group-size 64 --ternary-experts