Chantless ICL Translation GGUFs (Qwen3.8-27B & Qwen3-4B)
Offline, zero-training few-shot translation models carved specifically for in-context learning (ICL) into unseen, low-resource, and non-Latin-script languages.
What This Is Useful For (Practical Payoff First)
The problem
Most open LLMs only translate well into the few dozen high-resource languages they memorized during pretraining. When a translation team works in a minority or low-resource language—or a non-Latin script such as Syriac, Arabic-script West African orthographies, or Limbu—the model cannot rely on memorized translations. It has to infer vocabulary, morphology, spelling, and style on the fly from a handful of retrieved parallel examples in the prompt (few-shot in-context learning).
Standard uniform quantization (Q4_K_M, Q3_K, Q2_K) compresses every layer equally. On unseen-language few-shot translation, that silently degrades the attention circuits that do in-context induction—causing dropped formatting tags, English/high-resource leakage, and rare-script collapse.
What these models do differently
Without fine-tuning a single weight, we ran a per-layer functional MRI using Chantless (DeusExperiments/chantless) calibrated strictly on disjoint unseen-language parallel verses and per-prompt random character-substitution ciphers (which cannot be memorized, isolating pure in-context induction). We then kept high precision (Q6_K / Q4_K) on the attention layers that drive few-shot induction and compressed memorized-knowledge FFNs and low-sensitivity layers down to Q2_K / IQ1_S (plus Wanda FFN width slicing on Qwen3-4B). Token embeddings and vocabulary are kept 100% intact (vocab_k: null) so rare scripts are never pruned.
Practical payoff
- Drop-in
27Bspecialist for stockllama.cpp, Ollama, and LM Studio (Qwen3.8-27B-Chantless-ICL-14.8GB.gguf):- Fits on a single 24 GB GPU or a 24–32 GB Apple Silicon Mac with zero cloud/API cost and full offline privacy.
2.27 GBsmaller and faster than standardQwen3.8-27B-Q4_K_M(14.84 GBvs.17.11 GB;38.7vs.35.5 tok/son an RTX 4090).- Unanimously beats both
Uniform-Q4_K_MAND a size-matched coding-carved27Bmodel (k94, using the exact same ICL imatrix) across all three held-out benchmarks:- Novel per-prompt ciphers (
cipher_canary_24):48.79vs.44.89(Q4_K_M,+3.90) and47.07(CodingMask,+1.72) - 8-language sparse panel (
daniel_24):25.42vs.23.44(Q4_K_M,+1.98) and23.47(CodingMask,+1.95) - 5-language multi-script panel (
panel_100_aqu2727):41.72vs.41.01(Q4_K_M,+0.71) and41.23(CodingMask,+0.49)—including50.47vs.47.69(+2.78) on Syriac script (aii) and40.50vs.39.69(+0.81) on Arabic-script Susu (sus).
- Novel per-prompt ciphers (
- Fast
2.10 GB4Bspecialist (patched-llama-cpp/Qwen3-4B-Chantless-ICL-2.10GB.gguf):- At
26.1%the size of full BF16 (2.10 GB,171.4 tok/son RTX 4090), it beats full8.05 GBBF16 on all three held-out benchmarks (47.40vs.45.67cipher;20.94vs.20.44sparse 8-lang;36.07vs.34.865-lang panel;39.41vs.36.09(+3.32) on Syriac). - Crushes size-matched
uniform_Q3_K(2.08 GB) by+3.5to+5.7 chrF++and avoidsQ3_K's tag-format collapse (90/100vs.17/100valid<translation>tags). - (Note: the
4BGGUFs use variable-width Wanda FFN slicing and require Chantless's patchedllama.cpp @ afe77e18.)
- At
- Tiny, inspectable, Apache-2.0 recipes: Every carved model is specified by a
6–28 KBJSON mask (chantless.mask/v3) plus the ICL importance matrix (imatrix), all included here so you can audit the exact layer-by-layer precision map or rebuild deterministically from upstreamQwen/Qwen3.8-27BandQwen/Qwen3-4B.
Who this is for
- Low-resource & Bible translation workflows (e.g., local RAG / translation-memory drafting tools that retrieve similar already-translated verses or sentences as few-shot context and draft new verses offline for mother-tongue translator review).
- Researchers and engineers studying where in-context learning lives inside dense vs. hybrid Full-Attention / Gated-DeltaNet architectures, or evaluating task-specific post-training quantization without gradient updates.
Included Files & Runtime Compatibility
| File | Base Model | Size | Runtime Compatibility | Best For |
|---|---|---|---|---|
Qwen3.8-27B-Chantless-ICL-14.8GB.gguf | Qwen/Qwen3.8-27B | 14.84 GB | Stock llama.cpp, Ollama, LM Studio (widths=0, drops=0) | Highest quality offline few-shot translator on a 24 GB GPU or 24–32 GB Mac |
patched-llama-cpp/Qwen3-4B-Chantless-ICL-2.10GB.gguf | Qwen/Qwen3-4B | 2.10 GB | Chantless patched llama.cpp @ afe77e18 (14 narrowed FFNs) | Best small/fast ICL model — beats full 8.05 GB BF16 at 171 tok/s |
patched-llama-cpp/Qwen3-4B-Chantless-ICL-1.80GB.gguf | Qwen/Qwen3-4B | 1.80 GB | Chantless patched llama.cpp @ afe77e18 (15 narrowed FFNs) | Ultra-compact 4B (+2.15 over BF16 on 8-lang sparse panel, 95/100 tags) |
masks/*.json | Both | 6–28 KB | chantless (chantless.mask/v3) | Exact masks for 27B (14.8GB, 10.4GB, 8.1GB, 6.9GB) and 4B (2.4GB, 2.1GB, 1.8GB, 1.5GB) |
imatrices/*.gguf | Both | 7.7–23 MB | llama-quantize / chantless | Disjoint eBible ICL + cipher importance matrices (27B fused & 4B) |
results/mri_27b_icl.json | Qwen3.8-27B | 6.8 KB | JSON | All 178 functional-MRI splice probes across the 64 hybrid layers |
results/{showdown_27b,pareto_4b}_results.json | Both | 8–10 KB | JSON | Per-language held-out chrF++ receipts for all evaluated arms |
scripts/ebible_icl.py | — | 15 KB | Python (chantless) | Family-isolated Chantless environment used for calibration & exam scoring |
Quickstart
1. Run Qwen3.8-27B-Chantless-ICL-14.8GB.gguf (Stock llama.cpp / Ollama / LM Studio)
Because the 14.84 GB 27B mask uses only standard per-tensor mixed precision (21 Q6_K, 73 Q4_K, 29 Q2_K, 7 IQ1_S) with zero dropped layers and zero variable-width FFNs, it runs out of the box in upstream llama.cpp, Ollama, and LM Studio.
llama.cpp server (24 GB GPU):
llama-server \
-hf ryderwishart/chantless-icl-translation-gguf:Qwen3.8-27B-Chantless-ICL-14.8GB.gguf \
-ngl 99 -c 4096 --port 8080
Ollama:
ollama run hf.co/ryderwishart/chantless-icl-translation-gguf:Qwen3.8-27B-Chantless-ICL-14.8GB
2. Recommended Prompt Format & Decoding Settings
Retrieve 5–10 similar already-translated segments from your project (e.g., via script-agnostic character n-gram retrieval) and pass them as few-shot pairs with low/zero temperature:
System:
You are an expert translator translating from English into <Target Language> (<Script> script).
Match the exact orthography, script, terminology, and concise style of the reference examples.
Output ONLY the translation inside <translation>...</translation> tags, with no commentary.
User:
Reference examples from this <Target Language> translation:
Example 1:
English: <source 1>
<Target Language>: <target 1>
...
Now translate this English text into <Target Language>:
English: <new source>
Respond ONLY with <translation>...</translation>.
Important decoding notes:
- Disable thinking mode (
enable_thinking=False/--reasoning-budget 0) and use greedy decoding (temperature=0) for deterministic, low-latency translation drafting. - Avoid token-level
no_repeat_ngram_size(e.g.8) on BPE models translating rare scripts: non-Latin scripts often tokenize into 2–3 BPE tokens per character, so an 8-token ban blocks normal 2–3 character morphemes and severely hurts Syriac/cipher quality (we measured a-20.5 chrF++drop on Syriacaiiwhen enablingno_repeat_ngram_size=8onQwen3-4B).
3. Run the Qwen3-4B Variable-Width GGUFs (Chantless Patched llama.cpp)
The 2.10 GB and 1.80 GB Qwen3-4B GGUFs narrow low-sensitivity late FFN layers via Wanda neuron slicing (n_ff varies per layer), which requires Chantless's patched llama.cpp (afe77e18 from DeusExperiments/chantless):
# After installing Chantless's toolchain:
llama-server \
-m patched-llama-cpp/Qwen3-4B-Chantless-ICL-2.10GB.gguf \
-ngl 99 -c 4096 --port 8080
Benchmark Results (148 Held-Out Exam Verses, Zero Calibration Overlap)
All scores below are measured on 148 held-out verses across 3 suites whose languages and cipher keys never appeared during imatrix collection, Functional MRI probing, or mask search:
cipher_canary_24(24 verses): Per-prompt random character substitution ciphers—impossible to memorize, measuring pure in-context induction.daniel_24(24 verses): Frozen 8-language sparse panel (aii,gaq,kgk,lif,mpj,tzo,usa,wbi) from Frontier's low-resource ICL leaderboard.panel_100_aqu2727(100 verses): 5 sparse languages across 3 scripts—Aguaruna (agr, Latin), Assyrian Neo-Aramaic (aii, Syriac), Mbyá Guaraní (gun, Latin), Kuman (kue, Latin), and Susu (sus, Arabic script)—using script-agnostic character n-gram few-shot retrieval.
Metric: sentence-level chrF++ (sacrebleu, word_order=2), macro-averaged per suite; tag_ok reports valid <translation>...</translation> compliance on panel_100_aqu2727. Speeds measured on a single RTX 4090 (greedy decoding, thinking off).
Qwen3.8-27B Showdown (54.66 GB BF16 source)
| Arm | Size (% BF16) | Speed | cipher_canary_24 | daniel_24 | panel_100_aqu2727 (tag_ok) | Notes |
|---|---|---|---|---|---|---|
Uniform-Q4_K_M | 17.11 GB (31.3%) | 35.5 tok/s | 44.89 | 23.44 | 41.01 (92/100) | Standard 4-bit baseline |
CodingMask-k94 (w/ our ICL imatrix) | 14.62 GB (26.7%) | 39.3 tok/s | 47.07 | 23.47 | 41.23 (95/100) | Size-matched Chantless coding mask control |
ICL-Carved-14.8GB (Released Winner) | 14.84 GB (27.1%) | 38.7 tok/s | 48.79 (+3.90 vs Q4) | 25.42 (+1.98 vs Q4) | 41.72 (+0.71 vs Q4, 93/100) | Unanimous winner; stock llama.cpp compatible |
ICL-Carved-10.4GB (mask included) | 10.43 GB (19.1%) | 47.6 tok/s | 44.72 (+5.48 vs Q2_K) | 20.43 | 39.03 (86/100) | Ties Q4_K_M on cipher at 5.2× smaller than BF16 |
Uniform-Q2_K | 9.70 GB (17.7%) | 46.5 tok/s | 39.24 | 22.18 | 38.63 (91/100) | Size-matched uniform control for 10.4 GB |
ICL-Carved-8.1GB (8 FFNs dropped) | 8.13 GB (14.9%) | 58.8 tok/s | 9.05 | 7.03 | 30.35 (59/100) | Honest lower bound: multi-FFN drop breaks cipher |
ICL-Carved-6.9GB (21 FFNs dropped) | 6.86 GB (12.5%) | 1.5 tok/s | 0.00 | 0.00 | 0.00 (0/100) | Compounding multi-layer drop collapse |
Uniform-IQ1_S | 6.46 GB (11.8%) | 59.6 tok/s | 9.14 | 4.58 | 11.47 (37/100) | Uniform 1-bit PTQ collapse |
Per-language breakdown on panel_100_aqu2727 (Qwen3.8-27B):
| Arm | agr (Latin) | aii (Syriac) | gun (Latin) | kue (Latin) | sus (Arabic) | Macro |
|---|---|---|---|---|---|---|
Uniform-Q4_K_M (17.11 GB) | 34.04 | 47.69 | 47.87 | 35.75 | 39.69 | 41.01 |
CodingMask-k94 (14.62 GB) | 34.78 | 48.09 | 47.84 | 36.06 | 39.35 | 41.23 |
ICL-Carved-14.8GB (14.84 GB) | 32.91 | 50.47 | 48.21 | 36.51 | 40.50 | 41.72 |
Qwen3-4B Pareto Frontier (8.05 GB BF16 source)
| Arm | Size (% BF16) | Speed | cipher_canary_24 | daniel_24 | panel_100_aqu2727 (tag_ok) |
|---|---|---|---|---|---|
BF16_source (Full) | 8.05 GB (100.0%) | 81.8 tok/s | 45.67 | 20.44 | 34.86 (92/100) |
uniform_Q4_K | 2.50 GB (31.0%) | 156.8 tok/s | 42.96 | 19.64 | 35.51 (92/100) |
uniform_Q3_K | 2.08 GB (25.8%) | 163.9 tok/s | 41.73 | 17.08 | 32.55 (17/100 broken) |
uniform_Q2_K | 1.67 GB (20.7%) | 187.8 tok/s | 34.12 | 12.01 | 26.93 (72/100) |
chantless_2.40gb (mask included) | 2.40 GB (29.8%) | 161.9 tok/s | 45.58 | 21.56 | 34.88 (91/100) |
chantless_2.10gb (Released Winner) | 2.10 GB (26.1%) | 171.4 tok/s | 47.40 (+1.73 vs BF16) | 20.94 (+0.50 vs BF16) | 36.07 (+1.21 vs BF16, 90/100) |
chantless_1.80gb (Released Compact) | 1.80 GB (22.4%) | 178.2 tok/s | 43.45 (+9.33 vs Q2_K) | 22.59 (+2.15 vs BF16) | 33.97 (95/100, +7.04 vs Q2_K) |
chantless_1.50gb (mask included) | 1.50 GB (18.6%) | 186.4 tok/s | 34.85 | 18.62 (+6.61 vs Q2_K) | 31.66 (92/100, +4.73 vs Q2_K) |
What the Functional MRI Found
- In
Qwen3.8-27B(hybrid16Full-Attention +48Gated-DeltaNet +64FFN), Full-Attention layers are2.62×more ICL-critical than Gated-DeltaNet layers:- Mean
IQ1_Strajectory-KL damage: Full-Attention (16layers) =0.01333vs. FFN (64layers) =0.00671vs. Gated-DeltaNet (48layers) =0.00508. - 9 of the top-10 most ICL-critical mixers across all 64 layers are Full-Attention blocks (
L59, L63, L43, L31, L51, L47, L35, L27, L55, plusL00DeltaNet). - Inside Layer 59 alone,
blk.59.attn(Full-Attention) is the #1 most critical mixer in the entire model (0.0337), whileblk.59.ffnright next to it is the #2 least critical FFN (drop_KL = 0.0111vs.blk.63.ffnat1.0487).
- Mean
- In
Qwen3-4B(dense36-layer Transformer), ICL concentrates in middle attention (L08–L24) while late FFNs (L25–L34) are ~50×less sensitive:- The
2.10 GBwinner promoted all 17 consecutive middle attention blocks (L08–L24) toQ6_Kwhile narrowing late FFNsL29/L31by 74% (2,560 / 9,728neurons) andL02/L27/L28/L30/L32/L33by 50% (4,864 / 9,728).
- The
- What did not work (reported honestly):
- Dropping multiple entire FFN blocks without retraining (
<15%of BF16): Even FFNs that look harmless when dropped individually cause compounding residual-stream drift when 8–21 are dropped together (8.1 GB/6.9 GB27B arms). Reaching sub-15% (~6 GB at 27B) requires quantization-aware training (QAT) rather than pure post-training carving. - Zero-gradient rank-1 abliteration & head-gain scaling on
Qwen3-4B: Both were neutral on held-out exam suites (±0.2 chrF++), showing ICL is distributed across middle attention circuits rather than gated by a single direction. +0 BSwitch Apprentice (learn_gates_seq) on 25 multi-language mistakes: Hurt slightly (47.40 → 43.76cipher,36.07 → 33.97panel_100) because switching off neurons for 25 distinct unseen languages produced conflicting updates (60/80A-GEM conflicts). Stage 1 Functional-MRI carving is the clean win for universal ICL.
- Dropping multiple entire FFN blocks without retraining (
Limitations & Responsible Use
- Automatic metrics only: All scores above are single-reference
chrF++on Bible translation verses and synthetic ciphers. No human bilingual adequacy, fluency, or cultural review has been performed on these carved checkpoints. Use outputs as drafts reviewed by mother-tongue translators, not as unsupervised published translations. - Task-specialized compression: Because layers outside the ICL induction circuit (especially late FFNs and late DeltaNet mixers) were compressed aggressively to
Q2_K/IQ1_S(or narrowed on 4B), general trivia, coding, and long-horizon agentic performance will be lower than standardQ4_K_M/ BF16. Use standard checkpoints for general-purpose chat. - Data provenance: Calibration and evaluation used disjoint language splits drawn from public eBible corpora and Frontier's low-resource ICL benchmark setup; no benchmark verse text is distributed in this repository (only aggregate scores, masks, imatrices, and model weights).
Reproducing From Upstream BF16 Weights
Every GGUF in this repository can be rebuilt deterministically from the upstream Apache-2.0 Qwen/Qwen3.8-27B or Qwen/Qwen3-4B checkpoints using DeusExperiments/chantless together with the masks in masks/ and importance matrices in imatrices/:
- Convert the upstream HF checkpoint to BF16 GGUF via Chantless's
convert_hf_to_gguf.py. - Build with
chantless.builder.Builderusing the corresponding mask (masks/Qwen3.8-27B-Chantless-ICL-14.8GB.mask.jsonormasks/Qwen3-4B-Chantless-ICL-2.10GB.mask.json) and imatrix (imatrices/imatrix_27b_icl_fused.gguforimatrices/imatrix_4b_icl.gguf). Note: forQwen3.8-27B, markgroups["output"]["imatrix_ok"] = Falseandgroups["token_embd"]["imatrix_ok"] = Falsesollama-quantizedoes not require imatrix entries for the embedding/LM-head tensors.
SHA-256 Checksums
bf1a7b63b876676e1ddac7307ac044b8d6aacb81630aa397ed29a8c94d8040c2 Qwen3.8-27B-Chantless-ICL-14.8GB.gguf
cf6e43615792dcc0dec010262f4f9b4c85a60b4b8a2899eedd3dafc7a70479f3 patched-llama-cpp/Qwen3-4B-Chantless-ICL-2.10GB.gguf
d95879f2a252bae1faac995f4f706780e3a4cd320b66d344cfe3904064247a23 patched-llama-cpp/Qwen3-4B-Chantless-ICL-1.80GB.gguf
67e264dd6ed3eb290afb98456c0a6be472984ddec9187f73cd0645543dfde848 imatrices/imatrix_27b_icl_fused.gguf
a84f2bedd582d758c4f62c01afa7586b11d1b49d392fd4354183ef9838252efc imatrices/imatrix_4b_icl.gguf
8c0c4d72bca5f05f411a8784002a09d9a781dbc22e33b49f4a08c5269a354288 masks/Qwen3.8-27B-Chantless-ICL-14.8GB.mask.json
99beb456b7e6947e5ba8bf030155b52576f08b75f8b5af977b5c314e8834fc36 masks/Qwen3-4B-Chantless-ICL-2.10GB.mask.json
bd4cad2a5a773186d7f1058e3ee0b356d6e0a6eda035945bd1158accc390be98 masks/Qwen3-4B-Chantless-ICL-1.80GB.mask.json
Credits & License
- License: Apache License 2.0 (inherited from
Qwen/Qwen3.8-27B,Qwen/Qwen3-4B, andDeusExperiments/chantless). - Methodology & Credits:
- Anti-laziness cipher-episode ICL methodology and low-resource evaluation suites (
daniel_24,panel_100_aqu2727): Daniel Losey (dadukhankevin, Frontier R&D). - Functional-MRI carving framework & patched
llama.cpp: DeusExperiments/chantless. - Base models: Qwen Team (
Qwen/Qwen3.8-27B,Qwen/Qwen3-4B). - Parallel low-resource Bible corpora: eBible.org / BibleNLP.
- Anti-laziness cipher-episode ICL methodology and low-resource evaluation suites (