Qwen3.6-35B-A3B TR2.27-GK (GGUF, for llama.cpp)
A higher-fidelity version of Qwen3.6-35B-A3B TR2.25-G: its output
stays much closer to the original model. Drift is halved (mean KLD 0.087 vs 0.176), it picks the same top token as the original
88 % of the time (vs 80 %), and perplexity drops from 8.12 to 7.38 (original 7.06), for only 0.15 GB more. GSM8K, HumanEval+ and
MBPP+ scores are level with TR2.25-G (no significant difference). Decode is about 3 % slower on a Mac, which you will not notice in
normal use, and 7 % slower on a DGX Spark. Same TR Quantisation format, same patched llama.cpp, no retraining. It needs our patched llama.cpp: the tensor types TQ9_128 / TQ27_128
do not exist in upstream llama.cpp, so stock builds, LM Studio and Ollama cannot load it.
- Name: TR2.27-GK = TR Quantisation, 2.27 trits per weight on average over the translated weights; codes calibrated with GPTQ (-G), as in TR2.25-G; K = the per-group scales are fitted to calibration data. Compared with TR2.25-G, the output head and a few other non-expert tensors use 3 trits instead of 2; the routed experts keep the same trit counts.
- Base model: Qwen/Qwen3.6-35B-A3B (revision
995ad96e), Apache-2.0, by the Qwen team. - Runtime: patch series on ggml-org/llama.cpp @ff5a233, github.com/ternii-ai/tritq-vllm/tree/main/runtime/llama.cpp. Metal (Apple silicon), Arm CPU and CUDA (tested on a DGX Spark (GB10) only). On CUDA the tensor-core prompt path changes outputs (
GGML_CUDA_TQ_MM=0turns it off). - Ready-built binaries of that series: llama.cpp-tr-b11721-r6 (macOS arm64, Metal; Linux arm64, CPU and CUDA for the DGX Spark). The speed and accuracy figures on this card were measured with the previous release, r5, unmodified (on the Mac r5 and r6 run the same code as r4 and give the same answers, except that r6 also stops the 16 GB / SSD expert-cache mode aborting when a larger
-ubis requested, for example by Ollama: the micro-batch is lowered to the limit, with byte-identical output to-ubat the limit; andllama-benchno longer aborts in that mode, with no output change). On the DGX Spark, r6 decodes this file at 87.7 tokens/s vs 79.7 with r5 (×1.10, same output) and reads 512-token prompts at 2,134 vs 2,000 (×1.07); its new prompt path changes outputs (GGML_CUDA_TQ_MM_V2=1gives r5's back). Accuracy with r6 was measured on TR2.25-G and Qwen3.8-Flash-Next (no significant difference from r5), not on this file. - GGUF only: there is no vLLM checkpoint of this file.
- Text model only (no vision encoder, no MTP head).
- Publisher: Wai Chung.
This file or TR2.25-G?
| pick | when |
|---|---|
| TR2.25-G (the default) | 16 GB Macs (its experimental expert cache; this file also runs there with the same cache, ×0.99 the speed, see the table), the one-line installer, the fastest decode, and the vLLM checkpoint |
| TR2.27-GK (this file) | Macs with 24 GB or more (32 GB for comfortable headroom), or a DGX Spark, when output closer to the original model matters more than 3-7 % of decode speed |
| a standard 4-bit GGUF | 32 GB or more, when you want the closest output and LM Studio / Ollama support; it is larger and decodes slower |
| this file (TR2.27-GK) | TR2.25-G | Q4_K_M | |
|---|---|---|---|
| File size | 16.64 GB | 16.49 GB | 21.17 GB (ours) / 20.54 GB (ggml-org) |
| Closeness to the original (mean KLD vs Q8_0, lower is better) | 0.087 | 0.176 | 0.046 |
| Same top token as the original | 88.3 % | 79.7 % | 90.9 % |
| Perplexity (original Q8_0: 7.06) | 7.38 | 8.12 | 7.06 |
| GSM8K / HumanEval+ / MBPP+ on a DGX Spark (CUDA, r5) | 90.90 / 92.68 / 90.21 % | 90.37 / 92.07 / 91.27 % | not measured |
| Single-user decode, tokens/s, Mac M5 Max (Metal) | 131.1 | 134.5 | 111.6 (ggml-org) |
| Single-user decode, tokens/s, DGX Spark (CUDA) | 80.4 | 86.6 | 70.1 (ggml-org) |
| Prompt processing, tokens/s, Mac M5 Max / DGX Spark (512 tokens) | 2,525 / 1,977 | 2,543 / 1,995 | 3,408 / 2,744 (ggml-org) |
| 24 GB Mac, fully in memory (4k context) | yes, ~0.19 GB to spare | yes, 0.35 GB to spare (its card) | no |
| 16 GB Mac | yes, same expert cache as TR2.25-G (8,400 MiB): ~38 tokens/s vs TR2.25-G ~38.5 (same prompts, same session) on a MacBook Air M5 16 GB (×0.99), +0.15 GB wired | experimental expert cache, ~35 tokens/s | does not fit |
| Runs in LM Studio, Ollama, stock llama.cpp | no | no | yes |
KLD, perplexity and top-token agreement: the same check as on the TR2.25-G card: 10 x 512-token WikiText-2 chunks against the original
model at Q8_0, llama-perplexity on the M5 Max CPU, with a rebuild of the CPU-only build that produced the TR2.25-G
card's figures (same patches, same flags; it reproduces TR2.25-G's 0.176 / 79.7 % / 8.12 exactly). The Q4_K_M in those three rows is the one on the TR2.25-G card (made by us
from that Q8_0 with stock llama-quantize, no importance matrix, 21.17 GB). On a longer check (80 x 512-token chunks, a different CPU build
of the same series) this file scored mean KLD 0.078 vs TR2.25-G 0.162.
Speed rows: llama-bench, 128 generated tokens (decode) or a 512-token prompt, Metal / CUDA, median of 4 passes, files interleaved in
the same session. The Q4_K_M timed is ggml-org's published Qwen3.6-35B-A3B-Q4_K_M.gguf (20.54 GB; most non-expert tensors at Q8_0),
not our 21.17 GB file. The Mac was shared with other jobs during the session, so absolute Mac figures are lower than on the TR2.25-G
card (~140 burst); compare within a row. The 24 GB budget is assumed to be two-thirds of RAM (16 GiB), not measured on a 24 GB machine;
this file's Metal buffers at 4k context are 16.99 GB as reported by the runtime (TR2.25-G: 16.84 GB, as on its card).
Quick start (Mac, 24 GB and up)
The one-line installer on the TR2.25-G card installs TR2.25-G, not this file. For this file:
# Ready-built llama.cpp-tr for Apple silicon (macOS 13.3+; r4, as the installers use), 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.27-GK-GGUF --local-dir tr35gk
./llama-server -m tr35gk/Qwen3.6-35B-A3B-TR2.27-GK.gguf -c 4096 -fa on --jinja # 24 GB Mac and up
On a 24 GB Mac this leaves about 0.19 GB of the assumed GPU budget at 4k context; close other GPU-heavy apps, and do not raise the context. 16 GB Macs: use TR2.25-G with its expert cache.
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
Qwen3.6 runs in thinking mode by default with --jinja: a short question can spend 1,000+ tokens in reasoning_content before
any answer. For a quick test, start the server with --reasoning off, or send "chat_template_kwargs": {"enable_thinking": false}
in the request, or raise max_tokens. These switches are standard llama.cpp options.
Speed
Decode is slower than TR2.25-G, most likely because the extra 0.15 GB sits in tensors that are read for every token (an inference, not measured); prompt processing is within 1 %. All figures: release r5 binaries, unmodified; ratios are this file / TR2.25-G (> 1 = this file faster), geometric mean of 4 paired passes with a 95 % confidence interval.
| platform | single-user decode (llama-bench, 128 tokens) |
512-token prompt |
|---|---|---|
| Mac M5 Max, Metal | ×0.973 [0.963, 0.982] | ×0.994 |
| DGX Spark (GB10), CUDA | ×0.930 [0.922, 0.938] | ×0.990 |
| DGX Spark CPU, 10 Arm Cortex-X925 cores | ×0.968 [0.957, 0.979] | ×1.003 |
With the server settings of our installer (--spec-type ngram-mod n-gram drafting, 1 user, greedy, thinking off): on the Mac this file
was 0-3 % slower on most prompt sets and 4.5 % faster on code edits (the two files write different answers, so the drafter sees
different text); on the DGX Spark (CUDA) it was 2-10 % slower in one-user serving, narrowing to about 3 % at 8 concurrent users (no
drafting, 2 passes). On every platform this file still decodes faster than ggml-org's Q4_K_M (×1.15-1.23 in llama-bench), while that
file processes prompts faster on Metal and CUDA (this file ×0.74 / ×0.72 of it) and is level on the Arm CPU.
Accuracy
Measured on a DGX Spark with the public r5 Linux arm64 binaries (CUDA, default prompt path), llama-server with n-gram drafting
(--spec-type ngram-mod), greedy, thinking off, one server per file: GSM8K all 1,319 test questions (0-shot chain of thought,
strict match), HumanEval+ (164) and MBPP+ (378) with evalplus.
| test | this file | TR2.25-G | difference (95 % CI) | exact McNemar p (Holm) |
|---|---|---|---|---|
| GSM8K strict (1,319) | 90.90 | 90.37 | +0.53 (−0.38, +1.44) | 0.34 (1.00) |
| HumanEval+ base / base + plus (164) | 92.68 / 89.02 | 92.07 / 88.41 | +0.61 (−1.22, +3.05) / +0.61 (−1.22, +3.05) | 1.00 (1.00) |
| MBPP+ base / base + plus (378) | 90.21 / 76.46 | 91.27 / 76.98 | −1.06 (−3.17, +1.06) / −0.53 (−3.17, +1.85) | 0.45 / 0.84 (1.00) |
No significant difference on any test. The TR2.25-G scores in this run equal the published r5 scores (every answer identical to our r5 release-gate run). The two files give different answers to most prompts (byte-identical answers: 20 of 1,319 GSM8K, 42 of 164 HumanEval+, 28 of 378 MBPP+), so served text changes even though scores do not. Accuracy on the Mac (Metal) was not measured for this file; the Mac accuracy on the TR2.25-G card belongs to that file only. Multilingual maths (MGSM) and long-context accuracy were not measured.
Limitations
- Needs the patched llama.cpp. GGUF type ids 44-45 are specific to this fork.
- 16 GB Macs: one Mac measured (MacBook Air M5 16 GB, 2 passes per file): with the same expert cache as TR2.25-G (8,400 MiB), ~38 tokens/s vs TR2.25-G ~38.5 (×0.99, same session), +0.15 GB wired. The one-line installer installs TR2.25-G only; to use this file, run the 16 GB command from the TR2.25-G card with this file's path.
- 24 GB Macs are tight: ~0.19 GB to spare of an assumed GPU budget at 4k context (calculated, not measured on a 24 GB machine).
- Still drifts more than standard 4-bit files (see the table), although about half as much as TR2.25-G.
- Not measured: Mac accuracy, MGSM / multilingual accuracy, prompts longer than 4k tokens, energy, phones, x86. On Chinese, Japanese, Russian and Korean chat prompts decode was 2-3 % (Mac) and 7-10 % (DGX Spark, CUDA) slower than TR2.25-G.
- Same safety properties and limitations as the base model.
Licence and attribution
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, DGX Spark and CUDA are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries. Arm and Cortex are registered trademarks of Arm Limited (or its subsidiaries) in the US and/or elsewhere. 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, Arm or Hugging Face.
Contact
hello@ternii.com (questions, bug reports, licence and takedown requests).
Files and checksums
| file | size (bytes) | sha256 |
|---|---|---|
Qwen3.6-35B-A3B-TR2.27-GK.gguf |
16,636,672,352 | 1db958b374143b52f275a3d4c7eaaab299774a05acd7230442148abb6d61a4e6 |