The same TR Quantisation translation as Ternii/Qwen3.6-35B-A3B-TR2.25-G (identical codes and scales), packed as one GGUF file for
llama.cpp.
2.25 trits per weight on average; no retraining. It needs our patched llama.cpp: the tensor types TQ9_128 / TQ27_128 /
TQ81_128 do not exist in upstream llama.cpp, so stock builds, LM Studio and Ollama cannot load it.
995ad96e), Apache-2.0, by the Qwen team.GGML_CUDA_TQ_MM=0 turns it off; accuracy measured level).-ub is requested (for example by Ollama): the micro-batch is lowered to the limit, with byte-identical output to -ub at the limit; and llama-bench no longer aborts in that mode (no output change). On the DGX Spark (CUDA), decode 85.5 → 91.7 tokens/s (×1.07, same output as r5) and prompts ×1.06 (2,016 → 2,132 tokens/s at 512 tokens), with a new prompt path that changes outputs (GSM8K 90.83 vs 90.37, HumanEval+ 92.07 vs 92.07, MBPP+ 91.01 vs 91.27, no significant difference; GGML_CUDA_TQ_MM_V2=1 gives r5's path back). The commands below and the one-line installer use r4. On the Mac, r3 and r4 gave identical answers on our 60-prompt check, and on a 16 GB MacBook Air r4 ran at the same speed as r3.Higher-fidelity option: Ternii/Qwen3.6-35B-A3B-TR2.27-GK-GGUF stays much closer to the original model (half the drift: mean KLD 0.087 vs this file's 0.176 on the check below; same top token 88 % vs 80 %; perplexity 7.38 vs 8.12) for 0.15 GB more and a few % slower decode (about 3 % on a Mac, 7 % on a DGX Spark). GSM8K / HumanEval+ / MBPP+ scores are level. It is for Macs with 24 GB or more and the DGX Spark, GGUF only. This file stays the default: the one-line installer downloads it, and it is the one tested on a 16 GB Mac.
One line in Terminal downloads the ready-built llama.cpp-tr and this file into ~/qwen36-35b-tr, checks their SHA-256, and starts a
local chat in your browser (experts on the SSD below 24 GB, fully in memory from 24 GB; run the line again to restart):
curl -fsSL https://raw.githubusercontent.com/ternii-ai/tritq-vllm/main/mac/qwen36-35b.sh | bash
Or step by step:
# Ready-built llama.cpp-tr for Apple silicon (macOS 13.3+), checksums on the release page
curl -LO https://github.com/ternii-ai/tritq-vllm/releases/download/llama.cpp-tr-b11721-r4/llama.cpp-tr-macos-arm64.tar.gz
tar xzf llama.cpp-tr-macos-arm64.tar.gz && cd llama.cpp-tr-macos-arm64
hf download Ternii/Qwen3.6-35B-A3B-TR2.25-G-GGUF --local-dir tr35
./llama-server -m tr35/Qwen3.6-35B-A3B-TR2.25-G.gguf -c 4096 -fa on --jinja # 24 GB Mac and up
# 16 GB Mac (experimental): keep the experts on the SSD behind an 8,400 MiB cache; caffeinate keeps the GPU from clocking down
caffeinate -ims env LLAMA_MOE_SSD=1 LLAMA_MOE_CACHE_MIB=8400 LLAMA_MOE_CACHE_MAX_BATCH=512 LLAMA_MOE_ASYNC=1 GGML_SCHED_COPY_CB_FIRST=1 ./llama-server -m tr35/Qwen3.6-35B-A3B-TR2.25-G.gguf -c 4096 -fa on --jinja -np 1
To build from source instead (same patch series), replace the first three lines with the lines below and run ./build/bin/llama-server
in place of ./llama-server:
git clone https://github.com/ternii-ai/tritq-vllm && cd tritq-vllm/runtime/llama.cpp
./apply.sh llama.cpp-tr && cd llama.cpp-tr
cmake -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=OFF && cmake --build build -j --target llama-server
The M5 Max figures on this card come from source builds; the 16 GB MacBook Air figures come from the ready-built r3 binary.
Qwen3.6 runs in thinking mode by default with --jinja: a short question can spend 1,000+ tokens in reasoning_content before
any answer (3 of 4 test requests hit a 1,024-token limit). For a quick test, start the server with --reasoning off (at ff5a233 this
replaces the deprecated --chat-template-kwargs '{"enable_thinking":false}'), or send "chat_template_kwargs": {"enable_thinking": false}
in the request, or raise max_tokens. These switches are standard llama.cpp options; we did not run them in our measurements.
Use this file if your Mac has 16-24 GB, or if you want the smaller download. With 32 GB or more, a standard 4-bit GGUF is closer to the original model and runs in LM Studio and Ollama, which this file does not.
| this file (TR2.25-G) | Q4_K_M | |
|---|---|---|
| File size | 16.49 GB | 21.17 GB |
| Fully on the GPU of a 24 GB Mac | yes (0.35 GB to spare at 4k context) | no: larger than the ~16 GB GPU budget assumed for a 24 GB Mac |
| 16 GB Mac | experimental expert cache, ~35 tokens/s on a MacBook Air M5 16 GB (see below) | does not fit |
| Closeness to the original (mean KLD vs Q8_0, lower is better) | 0.176 | 0.046 |
| Same top token as the original | 79.7 % | 90.9 % |
| Perplexity (original Q8_0: 7.06) | 8.12 | 7.06 |
| GSM8K / HumanEval / MBPP on the Mac | 95.0 / 92.7 / 87.2 % (original 95.0 / 94.5 / 87.9, no significant difference) | not measured |
| Runs in LM Studio, Ollama, stock llama.cpp | no | yes |
KLD, perplexity and top-token agreement: 10 x 512-token WikiText-2 chunks against the original model at Q8_0, llama-perplexity on the
M5 Max CPU. The Q4_K_M file was made by us from that Q8_0 with stock llama-quantize (no importance matrix); published Q4_K_M files made
with an importance matrix may be a little closer to the original. Speed on Metal was not compared. The 24 GB budget is assumed to be
two-thirds of RAM, not measured on a 24 GB machine.
16 GB: measured on a MacBook Air M5 with 16 GB. 24 GB and up: measured on an Apple M5 Max (128 GB), with 24 GB emulated by capping the model's memory inside the runtime; a real 24 GB Mac also has a slower chip and SSD. Peak memory at 4k context.
| Mac memory | how to run | speed (1 user) | memory used |
|---|---|---|---|
| 16 GB | expert cache, 8,400 MiB (LLAMA_MOE_SSD=1), under caffeinate -ims |
~35 tokens/s on a MacBook Air M5 16 GB (35.1–36.3 over 6 runs on two days, including an independent re-test; release r3. Release r2: 23.3–25.2 on the same Mac) | up to 12.1 GB wired; close other large apps |
| 24 GB | fully in memory | ~120-123 sustained on the M5 Max; a base 24 GB chip will be slower | 16.5 GB file, 16.84 GB working set; fits the default GPU budget with only 0.35 GB to spare at 4k context (32k does not fit) |
| 32 GB and up | fully in memory | ~120-123 sustained, ~140 burst; prefill ~2,550 tokens/s (all on the M5 Max; smaller chips are slower) | 16.5 GB |
For comparison, the original model at 8 bits (Q8_0) needs 37.2 GB on the same Mac; this file needs 44 % of that memory. (Our Q8_0
speed figure comes from a different llama.cpp build, so we give no speed ratio against it.) With the expert cache the output is not bit-identical to the normal path: on Apple silicon the cache splits the computation at each MoE layer, so Metal fuses a few operations differently and the numbers differ by rounding (small logit differences, about as large as switching Metal's operation fusion on or off in the normal path). Greedy answers matched on our short test prompts; on longer answers the wording drifts on about a quarter of items, while correctness changes on a few. 16 GB-mode accuracy GSM8K 94.0 / HumanEval 92.1 / MBPP 87.6 vs normal path 95.0 / 92.7 / 87.2, no significant difference (exact McNemar). 94.8 % of expert lookups hit the cache and about 24 MB per token is read from the SSD. The expert cache was measured
single-sequence only (hence -np 1; llama-server otherwise defaults to 4 slots); concurrency, cancelled requests and long prompts are untested.
MacBook Air figures: 15 GSM8K questions, up to 512 tokens each, greedy, thinking off, one user, mains power, 180 s idle before each run;
decode rate weighted by tokens from the server's own timings; answers byte-identical between r2 and r3. About 95 % of expert lookups hit the cache.
r3 is faster mainly because a GPU keep-busy filler stops the base M5's GPU from clocking down while it waits for the SSD; this costs about
35 % more energy per token (GGML_METAL_MOE_SPIN=0 turns it off). The 16 GB-mode accuracy above was measured on the M5 Max at a 16 GB budget.
"Burst" = llama-bench, 128 tokens from a cold start. "Sustained" = rate over a 100-prompt replay, two passes. The base-laptop figure scales the measured costs to an assumed 120-153 GB/s memory and 2.5-4.7 GB/s SSD; it has not been measured. The default GPU budget is assumed to be two-thirds of RAM (not measured on a 16-24 GB machine). An outside GPU load appeared intermittently during the measuring session; it may have lowered some runs by up to ~2 % (burst) / ~5 % (one sustained pass).
Accuracy: the GGUF holds the same codes as the vLLM checkpoint; see that card for GSM8K / HumanEval / MBPP. On the Mac, with this llama.cpp series (normal path, greedy, non-thinking): GSM8K-400 95.0 %, HumanEval 92.7 %, MBPP-sanitized 87.2 % vs the original model's 95.0 / 94.5 / 87.9 % (no significant difference, exact McNemar, 12 comparisons). In the 16 GB expert-cache mode: 94.0 / 92.1 / 87.6 %, no significant difference from the normal path (exact McNemar). On multilingual maths (MGSM) the vLLM checkpoint scores significantly lower than the BF16 original (81.9 vs 83.8, mostly Bengali; NVIDIA NVFP4 84.2, not significantly different from the original; see that card); MGSM was not run on the Mac.
Post-training trit translation of Qwen/Qwen3.6-35B-A3B (revision 995ad96e) by the
Qwen Team, Alibaba Cloud, distributed under the Apache License 2.0 (LICENSE = Qwen's file; NOTICE lists our changes). Modified
by Wai Chung; no training was performed. Calibration prompts were drawn from NVIDIA's OpenCodeInstruct (CC BY 4.0) and the MATH and
GSM8K training sets (MIT); see NOTICE. Not an official Qwen release; not endorsed by Alibaba Cloud.
Trademarks. Qwen is a trademark of Alibaba Cloud / Alibaba Group. Mac, MacBook Pro and Metal are trademarks of Apple Inc., registered in the U.S. and other countries and regions. NVIDIA and CUDA are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries. Used only to identify the products we run on or compare with. This project is independent and is not affiliated with, sponsored or endorsed by Alibaba, Apple, NVIDIA or Hugging Face.
hello@ternii.com (questions, bug reports, licence and takedown requests).
| file | size (bytes) | sha256 |
|---|---|---|
Qwen3.6-35B-A3B-TR2.25-G.gguf |
16,485,874,016 | 47ed879b4109e65d2a387e6547a316b4ea33c5487a1ef33ed18330f257099a1e |
Qwen/Qwen3.6-35B-A3B