Views
No views yet
group_size=64turboquant-mlx-full >= 0.15.1):turboquant-plan --model manjunathshiva/gpt-oss-20b-tq3Model
weights (exact) 9.9 GB
KV cache 24.4 KB/token (hybrid: 12/24 full-attention, 12 sliding (window 128))
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/gpt-oss-20b-tq3 \
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.pip install "turboquant-mlx-full>=0.2.0" "mlx-lm>=0.31.3"| Use case | Recommended sampler |
|---|---|
| Casual chat / creative writing / Q&A | --temp 0.7 --rep-penalty 1.1 |
| Math, code, multi-step reasoning | --temp 0.3 --rep-penalty 1.1 |
scripts/stress_hybrid_sampler.py on a 64 GB M-series Mac (peak RAM matches 16 GB target):| # | Test | Verdict (recommended sampler) |
|---|---|---|
| 01 | long_essay (1500-word Roman Empire, 3500 max_tok) | clean, no degenerate tail |
| 02 | math (two trains, meeting time + distance, 800 max_tok) | correct at --temp 0.3 (sets up 60t + 75(t-0.5) = 215, solves t≈1.87 hr → 10:52 AM); unstable at temp 0.7 |
| 03 | code (merge_intervals + 3 unit tests, 1500 max_tok) | correct function logic at --temp 0.3; occasional hallucinated assertion values (function works, fix the test) |
| 04 | needle (FUCHSIA-7741 in haystack, 200 max_tok) | password retrieved verbatim |
| 05 | format (5-item list under 15 words/line, 1500 max_tok) | exactly 5 short numbered lines, no commentary |
| 06 | repetition_trap (sky-blue thorough, 4096 max_tok) | clean answer, no paragraph loops |
1hf download manjunathshiva/gpt-oss-20b-tq3 \
2 --local-dir ~/models/gpt-oss-20b-tq31turboquant-generate \
2 --model ~/models/gpt-oss-20b-tq3 \
3 --prompt "Why is the sky blue? Explain in detail." \
4 --max-tokens 1024 --temp 0.7 --rep-penalty 1.11turboquant-generate \
2 --model ~/models/gpt-oss-20b-tq3 \
3 --prompt "Solve this multi-step word problem..." \
4 --max-tokens 1024 --temp 0.3 --rep-penalty 1.1K3 would compound the noise and break long-form output past ~800 tokens. The 128-token fp16 sink protects attention sinks at the prompt start.1turboquant-generate \
2 --model ~/models/gpt-oss-20b-tq3 \
3 --prompt "Why is the sky blue? Explain in detail." \
4 --max-tokens 1024 --temp 0.7 --rep-penalty 1.1 \
5 --kv-k-bits 8 --kv-v-bits 3 --kv-min-tokens 128mlx_lm.server replacement — turboquant-serve patches the
loader so the TurboQuant weights load through the PolarQuant path, then exposes the
standard OpenAI endpoints:turboquant-serve --model manjunathshiva/gpt-oss-20b-tq3 --port 8080model field must match the
--model string):1curl http://localhost:8080/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{"model": "manjunathshiva/gpt-oss-20b-tq3",
4 "messages": [{"role": "user", "content": "Why is the sky blue?"}],
5 "max_tokens": 1024, "temperature": 0.7}'1from openai import OpenAI
2
3client = OpenAI(base_url="http://localhost:8080/v1", api_key="not-needed")
4resp = client.chat.completions.create(
5 model="manjunathshiva/gpt-oss-20b-tq3",
6 messages=[{"role": "user", "content": "Why is the sky blue?"}],
7 max_tokens=1024, temperature=0.7,
8)
9print(resp.choices[0].message.content)mlx_lm.server flags forward unchanged (turboquant-serve --help). Note: mlx_lm.server is for development/local use — no authentication or rate limiting.