🍡 Sanshoku-Qwen3.8-3.6-27B-blend-GGUF
A ternary model distilled from a merge of Qwen3.6-27B and Qwen3.8-27B. The embedding, the output head, the MTP block and the linear weights take values in {−1, 0, +1}; attention k/v and the linear-attention alpha/beta projections (191M parameters, about 0.7%) stay in F16. The model was trained with QAT against the merged model.
It thinks less per turn than Ternary-Bonsai-2-27B: on coding-agent tasks it reaches about the same score in about 60% of the time. This is an experimental model and trails Ternary-Bonsai-2-27B on some benchmarks.
Write-up: Experimenting with Ternary Quantization for LLMs (Qwen3.8-27B) (Japanese)

Files
All three GGUFs contain the same weights in different packings.
| File | Size | Runtime |
|---|---|---|
Sanshoku-Qwen3.8-3.6-27B-blend-Q2_0.gguf | 8.03 GB | upstream llama.cpp |
Sanshoku-Qwen3.8-3.6-27B-blend-PQ2_0.gguf | 7.61 GB | PrismML fork of llama.cpp |
Sanshoku-Qwen3.8-3.6-27B-blend-PTQ1_0.gguf | 6.34 GB | PrismML fork of llama.cpp |
mmproj-F16.gguf | 0.93 GB | vision encoder (merge of both models' encoders, FP16) |
Quick start
llama-server -hf oshiteku/Sanshoku-Qwen3.8-3.6-27B-blend-GGUF -hff Sanshoku-Qwen3.8-3.6-27B-blend-Q2_0.gguf \
-ngl 99 -c 32768 -fa on --jinja \
--spec-type draft-mtp --spec-draft-n-max 2 \
--temp 0.6 --top-p 0.95 --top-k 20 --min-p 0
- Pick the file with
-hff(the tag:Q2_0can match the PQ2_0 file) - Tested with llama.cpp
f2cc728and the PrismML forkbdc23b5
Speed
Measured on an RTX 4000 Ada (20 GB). Prefill and decode are llama-bench pp512 and tg128. Decode + MTP is the average over four chat requests (256 output tokens, 2 draft tokens).
| Format | Runtime | Prefill (tok/s) ↑ | Decode (tok/s) ↑ | Decode + MTP (tok/s) ↑ |
|---|---|---|---|---|
| Q2_0 | upstream | 1117 | 35.4 | 56.8 |
| PQ2_0 | fork | 1027 | 37.8 | 54.9 |
| PTQ1_0 | fork | 1002 | 40.4 | 39.5 |
| Qwen3.8-27B UD-Q4_K_M (16.5 GB) | upstream | 985 | 19.3 | 34.8 |
Evaluation
Measured by us with one harness for all three models: swallow-evaluation-instruct (lighteval) and EvalScope, served by vLLM. Reasoning effort low, T 0.6 / top-p 0.95 / top-k 20, thinking on. ↑ higher is better, ↓ lower is better.
| Benchmark | Sanshoku-Qwen3.8-3.6-27B-blend | Ternary-Bonsai-2-27B | Qwen3.8-27B BF16 | |
|---|---|---|---|---|
| Size ↓ | 7.6 GB | 7.2 GB | 54 GB | |
| Agent | SWE-bench Verified (500) ¹ ↑ | 58.0 | 60.8 ² | 80.6 ² |
| SWE-bench Verified Mini (50) ³ ↑ | 58 | 60 | – | |
| BFCL v3 ↑ | 75.0 | 73.9 | 76.0 | |
| English | MATH-500 ↑ | 89.0 | 98.6 | 99.0 |
| AIME 2024+2025 (pass@1, 4 samples) ↑ | 35.0 | 87.5 | 82.9 | |
| GPQA Diamond ↑ | 54.0 | 80.8 | 84.8 | |
| MMLU-Pro (1,001 sampled) ↑ | 71.0 | 80.4 | 82.6 | |
| LiveCodeBench v6 ↑ | 38.3 | 47.6 | 55.3 | |
| HumanEval+ ↑ | 86.7 | 92.7 | 93.4 | |
| IFEval (prompt strict) ↑ | 80.0 | 90.8 | 87.4 | |
| IFBench ↑ | 36.7 | 63.0 | 50.3 | |
| Japanese | JMMLU (1,060 sampled) ↑ | 80.7 | 86.3 | 89.7 |
| MMLU-ProX ja (1,001 sampled) ↑ | 63.6 | 75.5 | 79.6 | |
| JEMHopQA ↑ | 53.0 | 49.7 | 67.5 | |
| JGPQA Diamond ↑ | 52.0 | 77.8 | 83.8 | |
| MATH-100 ja ↑ | 81.8 | 96.0 | 96.0 | |
| JHumanEval ↑ | 85.2 | 92.9 | 92.9 | |
| M-IFEval ja ↑ | 53.5 | 62.8 | 65.7 | |
| WMT20 en-ja / ja-en (BLEU) ↑ | 22.5 / 21.9 | 23.1 / 22.5 | 22.8 / 23.4 | |
| MT-Bench ja ⁴ ↑ | 5.90 | 6.19 | 7.07 |
- mini-SWE-agent 2.4.6, 250 steps, 3 h limit per instance
- Published in the Ternary Bonsai 2 whitepaper (a different harness)
- SWE-bench Verified Mini with mini-SWE-agent, 1 h limit per instance
- Swallow's Japanese MT-Bench questions and judge prompts, judged by Claude Sonnet 5.5 (1-10)
Training
- Each weight initialized to the ternary level nearest to the interval between its Qwen3.6 and Qwen3.8 values, in groups of 128 weights
- Trained with a straight-through estimator against the top-32 token distribution of the merged model
- About 1B tokens of training data
License
Apache-2.0 (see LICENSE). Derived from Qwen3.6-27B and Qwen3.8-27B.
An independent community model; not an official Qwen release.
Acknowledgements
Thanks to the Qwen team for the base models, JetBrains for the idea of merging the two (Qwen3.8-3.6-27B-blend), PrismML for the PQ2_0 and PTQ1_0 kernels, and the llama.cpp project.
🍡 Sanshoku-Qwen3.8-3.6-27B-blend-GGUF
Qwen3.6-27B と Qwen3.8-27B をマージしたモデルから蒸留した3値モデルです。embedding、出力 head、MTP ブロック、線形層の重みが {−1, 0, +1} の値をとります。attention の k/v と linear attention の alpha/beta 射影 (1.91 億パラメータ、約 0.7%) は F16 のままです。マージしたモデルを教師として QAT で学習しました。
Ternary-Bonsai-2-27B より1ターンあたりの思考が短く、コーディングエージェントのタスクでほぼ同じ正解率に約 6 割の時間で到達します。 実験的なモデルであり、Ternary-Bonsai-2-27B に比べ一部ベンチマークで劣ります。
解説記事: LLM の3値量子化を試した (Qwen3.8-27B) (English)

ファイル
3つの GGUF は同じ重みを異なる形式で格納しています。
| ファイル | サイズ | 実行環境 |
|---|---|---|
Sanshoku-Qwen3.8-3.6-27B-blend-Q2_0.gguf | 8.03 GB | 通常の llama.cpp |
Sanshoku-Qwen3.8-3.6-27B-blend-PQ2_0.gguf | 7.61 GB | PrismML 版 llama.cpp (fork) |
Sanshoku-Qwen3.8-3.6-27B-blend-PTQ1_0.gguf | 6.34 GB | PrismML 版 llama.cpp (fork) |
mmproj-F16.gguf | 0.93 GB | 画像エンコーダ (両モデルのエンコーダをマージ、FP16) |
使い方
llama-server -hf oshiteku/Sanshoku-Qwen3.8-3.6-27B-blend-GGUF -hff Sanshoku-Qwen3.8-3.6-27B-blend-Q2_0.gguf \
-ngl 99 -c 32768 -fa on --jinja \
--spec-type draft-mtp --spec-draft-n-max 2 \
--temp 0.6 --top-p 0.95 --top-k 20 --min-p 0
- ファイルは
-hffで指定してください (タグ:Q2_0では PQ2_0 が選ばれることがあります) - llama.cpp
f2cc728と PrismML 版bdc23b5で動作確認済みです
速度
RTX 4000 Ada (20 GB) で測定。prefill と decode は llama-bench の pp512 と tg128、decode + MTP は4つのチャットリクエストの平均です (出力 256 トークン、ドラフト 2 トークン)。
| 形式 | 実行環境 | prefill (tok/s) ↑ | decode (tok/s) ↑ | decode + MTP (tok/s) ↑ |
|---|---|---|---|---|
| Q2_0 | 通常版 | 1117 | 35.4 | 56.8 |
| PQ2_0 | fork | 1027 | 37.8 | 54.9 |
| PTQ1_0 | fork | 1002 | 40.4 | 39.5 |
| Qwen3.8-27B UD-Q4_K_M (16.5 GB) | 通常版 | 985 | 19.3 | 34.8 |
評価
3つのモデルを同じ環境で測定しました。swallow-evaluation-instruct (lighteval) と EvalScope を使い、vLLM で推論しています。reasoning effort low、T 0.6 / top-p 0.95 / top-k 20、thinking ありです。↑ は高いほど良く、↓ は低いほど良い指標です。
| ベンチマーク | Sanshoku-Qwen3.8-3.6-27B-blend | Ternary-Bonsai-2-27B | Qwen3.8-27B BF16 | |
|---|---|---|---|---|
| サイズ ↓ | 7.6 GB | 7.2 GB | 54 GB | |
| エージェント | SWE-bench Verified (500) ¹ ↑ | 58.0 | 60.8 ² | 80.6 ² |
| SWE-bench Verified Mini (50) ³ ↑ | 58 | 60 | – | |
| BFCL v3 ↑ | 75.0 | 73.9 | 76.0 | |
| 英語 | MATH-500 ↑ | 89.0 | 98.6 | 99.0 |
| AIME 2024+2025 (pass@1、4 サンプル) ↑ | 35.0 | 87.5 | 82.9 | |
| GPQA Diamond ↑ | 54.0 | 80.8 | 84.8 | |
| MMLU-Pro (1,001 問を抽出) ↑ | 71.0 | 80.4 | 82.6 | |
| LiveCodeBench v6 ↑ | 38.3 | 47.6 | 55.3 | |
| HumanEval+ ↑ | 86.7 | 92.7 | 93.4 | |
| IFEval (prompt strict) ↑ | 80.0 | 90.8 | 87.4 | |
| IFBench ↑ | 36.7 | 63.0 | 50.3 | |
| 日本語 | JMMLU (1,060 問を抽出) ↑ | 80.7 | 86.3 | 89.7 |
| MMLU-ProX ja (1,001 問を抽出) ↑ | 63.6 | 75.5 | 79.6 | |
| JEMHopQA ↑ | 53.0 | 49.7 | 67.5 | |
| JGPQA Diamond ↑ | 52.0 | 77.8 | 83.8 | |
| MATH-100 ja ↑ | 81.8 | 96.0 | 96.0 | |
| JHumanEval ↑ | 85.2 | 92.9 | 92.9 | |
| M-IFEval ja ↑ | 53.5 | 62.8 | 65.7 | |
| WMT20 en-ja / ja-en (BLEU) ↑ | 22.5 / 21.9 | 23.1 / 22.5 | 22.8 / 23.4 | |
| MT-Bench ja ⁴ ↑ | 5.90 | 6.19 | 7.07 |
- mini-SWE-agent 2.4.6、250 ステップ、1問あたり 3 時間制限
- Ternary Bonsai 2 の whitepaper の公表値 (評価環境が異なります)
- SWE-bench Verified Mini を mini-SWE-agent で実行、1問あたり 1 時間制限
- Swallow の日本語 MT-Bench の質問と採点プロンプトを使い、Claude Sonnet 5.5 が採点 (1〜10)
学習
- 各重みを Qwen3.6 と Qwen3.8 の値を両端とする区間に最も近い3値に 128 個ずつのグループで丸めて初期化
- マージしたモデルの上位 32 トークンの分布を目標に straight-through estimator で学習
- 学習データは約 10 億トークン
ライセンス
Apache-2.0 (LICENSE を参照)。Qwen3.6-27B と Qwen3.8-27B の派生物です。
個人が作成した派生モデルで、Qwen の公式リリースではありません。
謝辞
ベースモデルを公開している Qwen チーム、2つのモデルをマージするアイデアの元になった JetBrains (Qwen3.8-3.6-27B-blend)、PQ2_0 と PTQ1_0 のカーネルを開発した PrismML、llama.cpp プロジェクトに 感謝します。