/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
Qwen3.8-27B
Библиотека
gguf
Опубликована
30 ноя 2026

chantless-icl-translation-gguf

Генерация текстаТекст → текст
1 016скачиваний за 30 дней1лайквеса обновлены30 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Набор квантованных моделей Qwen для офлайн-перевода на малоресурсные языки по нескольким примерам в запросе.

Chantless ICL Translation GGUF — набор специализированных GGUF-моделей на базе Qwen3.8-27B и Qwen3-4B, подготовленный автором ryderwishart для перевода на малоресурсные языки и языки с нелатинской письменностью. Модели рассчитаны на офлайн-перевод методом few-shot in-context learning: они используют параллельные примеры, помещённые в запрос, и не требуют дообучения весов. В README описаны смешанная поканальная точность квантования с сохранением важных для ICL слоёв и словаря, а для вариантов 4B — также сужение части FFN-слоёв.

В репозитории представлены варианты 27B и 4B размером от 1,80 до 14,84 ГБ. Для варианта 27B указана совместимость со стандартными llama.cpp, Ollama и LM Studio; варианты 4B с переменной шириной FFN требуют пропатченный llama.cpp. Проверки включают синтетические шифры и наборы стихов Библии на малоресурсных языках; результаты основаны на автоматической метрике chrF++, без экспертной проверки переводов. Для практического использования автор рекомендует проверку носителями языка. Модель опубликована по лицензии Apache-2.0.

Сценарии применения

  • черновой перевод на малоресурсный язык по параллельным примерам
  • перевод на язык с нелатинской письменностью
  • офлайн-перевод без облачного API
  • перевод с сохранением тегов и формата по примерам в запросе

Ограничения

Качество оценивалось автоматическими метриками на библейских стихах и синтетических шифрах, без проверки носителями языка; переводы следует использовать как черновики для последующей редакторской проверки. Из-за специализации и агрессивного сжатия модель хуже подходит для общих диалогов, программирования и длительных агентных задач.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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 27B specialist for stock llama.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 GB smaller and faster than standard Qwen3.8-27B-Q4_K_M (14.84 GB vs. 17.11 GB; 38.7 vs. 35.5 tok/s on an RTX 4090).
    • Unanimously beats both Uniform-Q4_K_M AND a size-matched coding-carved 27B model (k94, using the exact same ICL imatrix) across all three held-out benchmarks:
      • Novel per-prompt ciphers (cipher_canary_24): 48.79 vs. 44.89 (Q4_K_M, +3.90) and 47.07 (CodingMask, +1.72)
      • 8-language sparse panel (daniel_24): 25.42 vs. 23.44 (Q4_K_M, +1.98) and 23.47 (CodingMask, +1.95)
      • 5-language multi-script panel (panel_100_aqu2727): 41.72 vs. 41.01 (Q4_K_M, +0.71) and 41.23 (CodingMask, +0.49)—including 50.47 vs. 47.69 (+2.78) on Syriac script (aii) and 40.50 vs. 39.69 (+0.81) on Arabic-script Susu (sus).
  • Fast 2.10 GB 4B specialist (patched-llama-cpp/Qwen3-4B-Chantless-ICL-2.10GB.gguf):
    • At 26.1% the size of full BF16 (2.10 GB, 171.4 tok/s on RTX 4090), it beats full 8.05 GB BF16 on all three held-out benchmarks (47.40 vs. 45.67 cipher; 20.94 vs. 20.44 sparse 8-lang; 36.07 vs. 34.86 5-lang panel; 39.41 vs. 36.09 (+3.32) on Syriac).
    • Crushes size-matched uniform_Q3_K (2.08 GB) by +3.5 to +5.7 chrF++ and avoids Q3_K's tag-format collapse (90/100 vs. 17/100 valid <translation> tags).
    • (Note: the 4B GGUFs use variable-width Wanda FFN slicing and require Chantless's patched llama.cpp @ afe77e18.)
  • Tiny, inspectable, Apache-2.0 recipes: Every carved model is specified by a 6–28 KB JSON 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 upstream Qwen/Qwen3.8-27B and Qwen/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

FileBase ModelSizeRuntime CompatibilityBest For
Qwen3.8-27B-Chantless-ICL-14.8GB.ggufQwen/Qwen3.8-27B14.84 GBStock 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.ggufQwen/Qwen3-4B2.10 GBChantless 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.ggufQwen/Qwen3-4B1.80 GBChantless patched llama.cpp @ afe77e18 (15 narrowed FFNs)Ultra-compact 4B (+2.15 over BF16 on 8-lang sparse panel, 95/100 tags)
masks/*.jsonBoth6–28 KBchantless (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/*.ggufBoth7.7–23 MBllama-quantize / chantlessDisjoint eBible ICL + cipher importance matrices (27B fused & 4B)
results/mri_27b_icl.jsonQwen3.8-27B6.8 KBJSONAll 178 functional-MRI splice probes across the 64 hybrid layers
results/{showdown_27b,pareto_4b}_results.jsonBoth8–10 KBJSONPer-language held-out chrF++ receipts for all evaluated arms
scripts/ebible_icl.py—15 KBPython (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 Syriac aii when enabling no_repeat_ngram_size=8 on Qwen3-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:

  1. cipher_canary_24 (24 verses): Per-prompt random character substitution ciphers—impossible to memorize, measuring pure in-context induction.
  2. daniel_24 (24 verses): Frozen 8-language sparse panel (aii, gaq, kgk, lif, mpj, tzo, usa, wbi) from Frontier's low-resource ICL leaderboard.
  3. 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)

ArmSize (% BF16)Speedcipher_canary_24daniel_24panel_100_aqu2727 (tag_ok)Notes
Uniform-Q4_K_M17.11 GB (31.3%)35.5 tok/s44.8923.4441.01 (92/100)Standard 4-bit baseline
CodingMask-k94 (w/ our ICL imatrix)14.62 GB (26.7%)39.3 tok/s47.0723.4741.23 (95/100)Size-matched Chantless coding mask control
ICL-Carved-14.8GB (Released Winner)14.84 GB (27.1%)38.7 tok/s48.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/s44.72 (+5.48 vs Q2_K)20.4339.03 (86/100)Ties Q4_K_M on cipher at 5.2× smaller than BF16
Uniform-Q2_K9.70 GB (17.7%)46.5 tok/s39.2422.1838.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/s9.057.0330.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/s0.000.000.00 (0/100)Compounding multi-layer drop collapse
Uniform-IQ1_S6.46 GB (11.8%)59.6 tok/s9.144.5811.47 (37/100)Uniform 1-bit PTQ collapse

Per-language breakdown on panel_100_aqu2727 (Qwen3.8-27B):

Armagr (Latin)aii (Syriac)gun (Latin)kue (Latin)sus (Arabic)Macro
Uniform-Q4_K_M (17.11 GB)34.0447.6947.8735.7539.6941.01
CodingMask-k94 (14.62 GB)34.7848.0947.8436.0639.3541.23
ICL-Carved-14.8GB (14.84 GB)32.9150.4748.2136.5140.5041.72

Qwen3-4B Pareto Frontier (8.05 GB BF16 source)

ArmSize (% BF16)Speedcipher_canary_24daniel_24panel_100_aqu2727 (tag_ok)
BF16_source (Full)8.05 GB (100.0%)81.8 tok/s45.6720.4434.86 (92/100)
uniform_Q4_K2.50 GB (31.0%)156.8 tok/s42.9619.6435.51 (92/100)
uniform_Q3_K2.08 GB (25.8%)163.9 tok/s41.7317.0832.55 (17/100 broken)
uniform_Q2_K1.67 GB (20.7%)187.8 tok/s34.1212.0126.93 (72/100)
chantless_2.40gb (mask included)2.40 GB (29.8%)161.9 tok/s45.5821.5634.88 (91/100)
chantless_2.10gb (Released Winner)2.10 GB (26.1%)171.4 tok/s47.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/s43.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/s34.8518.62 (+6.61 vs Q2_K)31.66 (92/100, +4.73 vs Q2_K)

What the Functional MRI Found

  1. In Qwen3.8-27B (hybrid 16 Full-Attention + 48 Gated-DeltaNet + 64 FFN), Full-Attention layers are 2.62× more ICL-critical than Gated-DeltaNet layers:
    • Mean IQ1_S trajectory-KL damage: Full-Attention (16 layers) = 0.01333 vs. FFN (64 layers) = 0.00671 vs. Gated-DeltaNet (48 layers) = 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, plus L00 DeltaNet).
    • Inside Layer 59 alone, blk.59.attn (Full-Attention) is the #1 most critical mixer in the entire model (0.0337), while blk.59.ffn right next to it is the #2 least critical FFN (drop_KL = 0.0111 vs. blk.63.ffn at 1.0487).
  2. In Qwen3-4B (dense 36-layer Transformer), ICL concentrates in middle attention (L08–L24) while late FFNs (L25–L34) are ~50× less sensitive:
    • The 2.10 GB winner promoted all 17 consecutive middle attention blocks (L08–L24) to Q6_K while narrowing late FFNs L29/L31 by 74% (2,560 / 9,728 neurons) and L02/L27/L28/L30/L32/L33 by 50% (4,864 / 9,728).
  3. 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 GB 27B 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 B Switch Apprentice (learn_gates_seq) on 25 multi-language mistakes: Hurt slightly (47.40 → 43.76 cipher, 36.07 → 33.97 panel_100) because switching off neurons for 25 distinct unseen languages produced conflicting updates (60/80 A-GEM conflicts). Stage 1 Functional-MRI carving is the clean win for universal ICL.

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 standard Q4_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/:

  1. Convert the upstream HF checkpoint to BF16 GGUF via Chantless's convert_hf_to_gguf.py.
  2. Build with chantless.builder.Builder using the corresponding mask (masks/Qwen3.8-27B-Chantless-ICL-14.8GB.mask.json or masks/Qwen3-4B-Chantless-ICL-2.10GB.mask.json) and imatrix (imatrices/imatrix_27b_icl_fused.gguf or imatrices/imatrix_4b_icl.gguf). Note: for Qwen3.8-27B, mark groups["output"]["imatrix_ok"] = False and groups["token_embd"]["imatrix_ok"] = False so llama-quantize does 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, and DeusExperiments/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.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

llama.cpp

Нельзя запустить

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
b1f444b

0 моделей