Qwen3.8-Flash-Next-TR2.31-G-00002-of-00008.gguf 35 GBQwen3.8-Flash-Next-TR2.31-G-00004-of-00008.gguf 9.7 GBQwen3.8-Flash-Next-TR2.31-G-00005-of-00008.gguf 9.7 GBQwen3.8-Flash-Next-TR2.31-G-00003-of-00008.gguf 9.7 GBQwen3.8-Flash-Next-TR2.31-G-00007-of-00008.gguf 9.7 GBQwen3.8-Flash-Next-TR2.31-G-00006-of-00008.gguf 9.7 GBQwen3.8-Flash-Next-TR2.31-G-00008-of-00008.gguf 3.8 GBQwen3.8-Flash-Next-TR2.31-G-00001-of-00008.gguf 2.3 GBQwen3.8-Flash-Next on a 16 GB MacBook Air at about 12 tokens/s. This is Qwen's 180B MoE model (this file holds 177B: the 4B multi-token-prediction head
is left out; 6B active per token) translated with TR Quantisation: the routed experts at 2 trits
(9 levels), the other linear layers at 3 trits (27 levels), one 16-bit scale per group of 128 weights; the n-gram embedding table
rounded to 3-trit values and stored exactly in a Q5_0 container; hyper-connection weights at 8 bits. 89.8 GB on disk; the experts
stay on the SSD and a fixed cache in memory holds the busy ones. No retraining. It needs our patched llama.cpp
(release llama.cpp-tr-b11721-r3 or later): the tensor types TQ9_128 / TQ27_128 do not exist in upstream llama.cpp, so stock builds, LM Studio
and Ollama cannot load it. r4 adds a Linux arm64 build with CUDA for the DGX Spark;
there the tensor-core prompt path changes outputs, with GSM8K level (92.80 vs 93.25 with GGML_CUDA_TQ_MM=0, n = 1,319, not significant). r5 makes that path about 3 % faster, with the same GSM8K score (92.80). r6 also stops the 16 GB / SSD expert-cache mode aborting when a larger -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 stops llama-bench aborting in that mode (no output change), and decodes 9 % faster on the DGX Spark (33.5 → 36.5 tokens/s, same output) and reads prompts 5 % faster (826 → 864 tokens/s at 2,048 tokens) with a new prompt path that changes outputs; GSM8K 92.87 vs 92.80, not significant (GGML_CUDA_TQ_MM_V2=1 gives r5's path back).
Measured on a real 16 GB Mac: MacBook Air, Apple M5, 16 GB, macOS, on mains power, nothing else open. Speed and accuracy figures below; an independent re-test on the same machine reproduced them.
de4b8e4d), Qwen Community License
1.0, by the Qwen team. Built from Qwen's BF16 weights; not derived from any NVIDIA checkpoint.compress_ratios 4 on the 12 full-attention layers), as in that repo's 2026-11-13 shard 1.Qwen3.8-Flash-Next-TR2.31-G.trpw (115 MiB): a small learned predictor that the runtime uses to read the next layer's experts from
the SSD early. It never changes the output (byte-identical text with it on or off); it only makes decode faster. Keep it next to the
shards; without it the runtime falls back to the model's router for read-ahead and decode is about 5 % slower (measured with 10 experts).Open Terminal and paste:
curl -fsSL https://raw.githubusercontent.com/ternii-ai/tritq-vllm/main/mac/qwen38-16gb.sh | bash
It checks the Mac (Apple silicon, macOS 13.3+, 16 GB+, free disk), downloads the ready-built llama.cpp-tr and this model (about 90 GB)
into ~/qwen38-tr, checks every file's SHA-256, starts a local chat server and opens it in the browser. Run the same line again to
restart; finished downloads are kept and interrupted ones resume. Read the script first if you like:
mac/qwen38-16gb.sh. Everything runs on the Mac; nothing is
sent anywhere.
Below 48 GB the installer uses a 32k context by default (TR_CTX changes it, up to 262144). It reads prompts in batches of 2,048 tokens
and makes the expert cache smaller as the context grows (6,600 MiB at 32k, 5,950 at 64k, 4,750 at 128k), so that every layer stays on
the GPU. Measured on the MacBook Air M5 16 GB with 9k-23k-token prompts: at 32k, prompts read at 118-123 tokens/s and decode runs at
10.9-11.8 tokens/s (13.4 GB wired); at 128k, a 64k-token prompt reads at 113 tokens/s and decodes at 6.8 tokens/s.
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.8-Flash-Next-TR2.31-G-GGUF --local-dir qwen38
caffeinate -ims env LLAMA_MOE_SSD=1 LLAMA_MOE_CACHE_MIB=6750 LLAMA_MOE_CACHE_MAX_BATCH=512 LLAMA_MOE_ASYNC=1 \
GGML_SCHED_COPY_CB_FIRST=1 GGML_METAL_OPT_GDNPREP=1 GGML_METAL_OPT_NGATED=1 GGML_TQ_NO_REPACK=1 \
./llama-server -m qwen38/Qwen3.8-Flash-Next-TR2.31-G-00001-of-00008.gguf -c 4096 -fa on --jinja -np 1 --cache-ram 0 --reasoning off
# then open http://127.0.0.1:8080
caffeinate -ims matters: without a power assertion the base M5's GPU clocks down while it waits for the SSD and decode is much
slower.LLAMA_MOE_SSD=1 the runtime uses 8 routed experts per token instead of the model's 10 (measured accuracy-neutral, below)
and loads the .trpw next to the first shard. LLAMA_MOE_EXPERTS=0 keeps the model's 10; LLAMA_MOE_PRED_W= (empty) turns the
predictor off.-fit off and set LLAMA_MOE_CACHE_MIB=8100 for about 5 % more speed. It leaves under 1 GB free on
a 16 GB Mac, so only with nothing else open.--reasoning off gives direct answers; drop it to let the model think first (much longer replies at the same tokens/s).Quick-start settings (cache 6,750 MiB, 4k context, one user, thinking off), decode tokens/s, server-side median over chat prompts (GSM8K and general writing / code / explanation prompts, up to 512 tokens each), 180 s idle before each run.
| configuration | decode tokens/s | note |
|---|---|---|
| this file, release defaults (8 experts, learned predictor) | about 12 (11.9–12.6) | 6 runs over two days, ours and an independent re-test |
same, bigger cache (-fit off, 8,100 MiB) |
12.6–13.1 | 5 runs |
same, 9,709-token prompt at -c 16384 |
12.6 | one run; prefill 75 tokens/s |
| this file, model's 10 experts, router read-ahead | 9.7–10.1 | 3 runs |
| TR3-G with release r2 (no read-ahead) | 3.6 | same Mac, 11-10 |
Greedy, thinking off; paired exact McNemar tests (lost / gained items, p).
8 experts (the default here) vs the model's 10, this file, CUDA (DGX Spark), llama-server with 4 slots; GSM8K first 400, HumanEval 164, MBPP sanitized 257, IFEval 541 (prompt-level strict):
| GSM8K | HumanEval | MBPP | IFEval | |
|---|---|---|---|---|
| 8 experts | 96.5 | 95.1 | 91.1 | 66.0 |
| 10 experts | 95.0 | 95.7 | 91.1 | 65.8 |
| 8 vs 10 | 2 / 8, p 0.11 | 1 / 0, p 1.00 | 3 / 3, p 1.00 | 15 / 16, p 1.00 |
On the Mac (Metal), 8 vs 10 experts on 120 further GSM8K items: 92 / 120 both.
This file vs the original and vs TR3-G (10 experts; Metal on the 16 GB MacBook Air for this file and TR3-G; original Q8_0 on CUDA in an earlier session):
| GSM8K 400 | HumanEval | MBPP | ||
|---|---|---|---|---|
| this file (Metal) | 95.5 | 95.1 | 89.9 | |
| TR3-G (Metal) | 95.25 | 96.34 | 90.27 | this file vs TR3-G pooled 15 / 13, p 0.85 |
| original (Q8_0) | 96.50 | 96.34 | 91.83 | this file vs original pooled 18 / 7, p 0.043 |
-np 1), measured at 4k context (one 16k run). Concurrency and cancelled requests are untested.llama.cpp-tr-b11721-r3 or later for the 8-expert default and the predictor; earlier releases load the file but run
at about a third of the speed).Derived from Qwen/Qwen3.8-Flash-Next (revision de4b8e4d, Copyright (c) 2026 Qwen)
and distributed under the Qwen Community License 1.0 (LICENSE, unmodified; changes in NOTICE). Two conditions pass to you:
(1) above 100,000,000 monthly active users or US$20,000,000 monthly revenue, the model name must be displayed prominently in the
product's user interface; (2) if you or your affiliates run a Model-as-a-Service or AI Work Assistant business (as defined in the
licence), you need a separate licence from Qwen before commercial use. Questions: model-business@notice.qwencloud.com. Built from
Qwen's BF16 weights; not derived from any NVIDIA checkpoint. Modified by Wai Chung; no training was performed. Calibration prompts were
drawn from NVIDIA's OpenCodeInstruct (CC BY 4.0), the MATH and GSM8K training sets (MIT) and OpenAssistant oasst2 (Apache-2.0); see
NOTICE. Not an official Qwen release; not endorsed by Alibaba Cloud.
Trademarks. Qwen is a trademark of Alibaba Cloud / Alibaba Group. Mac, MacBook Air 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).
8 shards, 89,777,601,088 bytes in total, plus the predictor .trpw (120,680,652 bytes). Shard 2 holds the n-gram table.
| file | size (bytes) | sha256 |
|---|---|---|
Qwen3.8-Flash-Next-TR2.31-G-00001-of-00008.gguf |
2,276,151,520 | c05ce4861f626550581bc45d587a7f23b3e4d1124d3a3466081e6e756938f124 |
Qwen3.8-Flash-Next-TR2.31-G-00002-of-00008.gguf |
35,200,169,152 | 3a542dae48de68e443f2830cd081148a8298498bce178d614f33ae216e4a9022 |
Qwen3.8-Flash-Next-TR2.31-G-00003-of-00008.gguf |
9,712,996,704 | f2b7e7dbed9990754ad980f6d63a948e2a29b5d5f902e0ca257c2762c833a8c5 |
Qwen3.8-Flash-Next-TR2.31-G-00004-of-00008.gguf |
9,724,274,016 | 55ccb38251247de3ba3e59a514ff65147928b32cb422dacd56504c196f0d55e8 |
Qwen3.8-Flash-Next-TR2.31-G-00005-of-00008.gguf |
9,719,729,728 | 82ed8c32ca773b3e0da3304193a6dca15836435bf48d456bfccc679119906eb7 |
Qwen3.8-Flash-Next-TR2.31-G-00006-of-00008.gguf |
9,665,151,104 | 5e33924c0f22e192dc1168bb96e25878517cda244b78117e3f1542cd25a73c91 |
Qwen3.8-Flash-Next-TR2.31-G-00007-of-00008.gguf |
9,687,572,416 | 29236756f165e5159f2443b5ecab2af1d5fc7292babb19626135da2b1615a740 |
Qwen3.8-Flash-Next-TR2.31-G-00008-of-00008.gguf |
3,791,556,448 | 84a0cdc9a06010aedacd2801c1183e65ac128e85d10e09623ef31f577e0290bf |
Qwen3.8-Flash-Next-TR2.31-G.trpw |
120,680,652 | 79cc1c8258622362688196b1832bd352339d4c3b51e152126888a23aaa866ddf |
SHA256SUMS |
all of the above, for shasum -a 256 -c SHA256SUMS |
Check a download with shasum -a 256 on each file.
有文件?提交种子。
提交种子Qwen/Qwen3.8-Flash-Next