Run this model with HF Jobs

Run LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Qwen4-35B-A3B Multilingual Fix LoRA (Global v2.0, 13.9 MiB, Rank-29)

A 13.85 MiB, rank-29 LoRA on output.weight (lm_head.weight) that eliminates Simplified Chinese (Hanzi), cross-script salad, and unwarranted English-word leakage across 29 global script/language groups (60+ languages) โ€” spanning East/Southeast/South/Central Asia, Europe (Latin, Cyrillic, Greek), and the Middle East (Arabic, Hebrew) โ€” in Qwen4-35B-A3B, with zero training, zero extra latency, full retention of English/code and Simplified Chinese, and no capability loss on MMLU, GSM8K, or MMLU-Pro.

Both formats are included and mathematically identical (alpha = rank = 29, effective scale 1.0):

  • qwen4-35b-a3b-multilingual-fix.gguf (13.85 MiB, f16) โ€” drop-in --lora for llama.cpp across any qwen4exp GGUF quant (UD-IQ3_S, Q4_K_M, Q6_K, Q8_0, BF16).
  • peft/ (adapter_config.json + adapter_model.safetensors, 13.85 MiB, bf16) โ€” standard PEFT adapter on lm_head for transformers / vLLM.

What's new in v2.0: Extended from 24 Asian groups (rank-24, v1.2) to 29 global groups (rank-29) after upstream reports (HF #45, Qwen4 #15) documented the exact same output-layer Hanzi and cross-script leakage in German, French, Portuguese, Russian, Ukrainian, and Greek. Adds eu_latin, eu_cyrl, el, ar, and he while keeping KL_general = 0.001436 (+0.17% PPL) and full Asian non-regression.


Covered Languages (29 Script Groups ยท 60+ Languages)

Region Group Languages Covered Native Script Preserved (ฮ” = 0.0)
East Asia ko Korean Hangul (U+AC00โ€“D7AF, Jamo)
ja Japanese Hiragana, Katakana, JIS X 0213 Kanji (blocks 21,614 non-JIS Simplified Hanzi)
zh_hant Taiwanese Traditional & Cantonese Big5 + HK non-GB2312 Traditional Hanzi (blocks 26,865 Simplified-only Hanzi)
Southeast Asia th Thai Thai (U+0E00โ€“0E7F)
vi Vietnamese Latin + Vietnamese diacritics (U+1E00โ€“1EFF, ฤƒรขฤ‘รชรดฦกฦฐ)
sea_latin Indonesian, Malay, Tagalog, Javanese, Sundanese, Cebuano, Uzbek Latin (no ASCII penalty)
my Burmese (Myanmar) Myanmar (U+1000โ€“109F)
km Khmer (Cambodian) Khmer (U+1780โ€“17FF)
lo Lao Lao (U+0E80โ€“0EFF)
South Asia deva Hindi, Nepali, Marathi Devanagari (U+0900โ€“097F)
bn Bengali, Assamese Bengali (U+0980โ€“09FF)
ta Tamil Tamil (U+0B80โ€“0BFF)
te Telugu Telugu (U+0C00โ€“0C7F)
ml Malayalam Malayalam (U+0D00โ€“0D7F)
kn Kannada Kannada (U+0C80โ€“0CFF)
gu Gujarati Gujarati (U+0A80โ€“0AFF)
pa Punjabi Gurmukhi (U+0A00โ€“0A7F)
or Odia (Oriya) Oriya (U+0B00โ€“0B7F)
si Sinhala Sinhala (U+0D80โ€“0DFF)
ur_fa Urdu, Persian Perso-Arabic (U+0600โ€“06FF, U+0750โ€“077F)
Central / West Asia ca_cyrl Mongolian, Kazakh, Kyrgyz, Tajik Cyrillic (U+0400โ€“052F)
bo Tibetan Tibetan (U+0F00โ€“0FFF)
ka Georgian Georgian (U+10A0โ€“10FF)
hy Armenian Armenian (U+0530โ€“058F)
Europe (new in v2.0) eu_latin German, French, Spanish, Portuguese, Italian, Dutch, Polish, Czech, Romanian, Hungarian, Turkish, Swedish, Danish, Norwegian, Finnish Latin + Latin-Extended (U+00C0โ€“024F, U+1E00โ€“1EFF, no ASCII penalty)
eu_cyrl Russian, Ukrainian, Bulgarian, Serbian, Belarusian Cyrillic (U+0400โ€“052F)
el Greek Greek (U+0370โ€“03FF, U+1F00โ€“1FFF)
Middle East (new in v2.0) ar Arabic Arabic (U+0600โ€“06FF, U+0750โ€“077F, U+08A0โ€“08FF)
he Hebrew Hebrew (U+0590โ€“05FF)

Why Stock Qwen4-35B-A3B Leaks Globally

Probing Qwen4-35B-A3B (UD-IQ3_S) across all 40 layers, Engram (blk.1 PLE), MoE routing, and the 248,320-token unembedding matrix (output.weight) revealed:

  1. Extreme Vocabulary & Unembedding Norm Asymmetry: Qwen4 allocates 55,328 tokens to Hanzi and ~127k to ASCII, while giving non-ZH/EN languages far fewer tokens and smaller output.weight L2 norms than Hanzi (0.8149) and ASCII (0.8227). Across both Asia and Europe, the correct native token routinely sits right at rank #2 in the output distribution and loses by less than 1 logit to a foreign token:
    • European Latin & Cyrillic: Stock leaks Simplified Hanzi directly inside German (Laut dem่กจ่ฟฐenden), Dutch (่‹ฑ้‡Œ), French (ๆธ…็†), Russian (็”ต่ง†, ๆ›ด้šพ), and Ukrainian (็š„ๆ‰‹ๆ‹ผๅ›พ).
    • Greek: 7/20 prompts leak Hanzi (่‹ฅๅนฒ, ไธ“้—จ็š„, ๅŒบๅŸŸ), Cyrillic (ฯ„ฮทฮฝ ฮตฮปฮปฮทฮฝฮนฮบฮฎ ัะบะฒะธะฒะฐะปะตะฝั‚), and hybrid Latin (ฮฯ„ฯ…RESSING).
    • Thai / Taiwanese / Japanese / Korean / Indic: Stock leaks Hanzi, Russian Cyrillic, Konglish, and cross-Indic script salad across all 24 Asian groups.
  2. Near-Perfect Linear Language Subspace at result_norm: Capturing fp32 result_norm activations across all 29 groups (FLORES-200 dev + casual chat) plus zero-anchored control groups (zh-CN Simplified Chinese, including EU->ZH-CN cross-lingual anchors, and en_code) yields 5-fold out-of-fold AUROC 0.9959โ€“1.0000 on every new Western/Middle Eastern group (eu_latin 0.9959, eu_cyrl 1.0000, el 1.0000, ar 0.9999, he 1.0000) and 0.9997โ€“1.0000 on East/South/Central Asian groups.

How the LoRA Works

ฮ”Wout=โˆ‘k=129bmask(k)(a(k))T=Bโ€‰A\Delta W_{\text{out}} = \sum_{k=1}^{29} b_{\text{mask}}^{(k)} \left(a^{(k)}\right)^T = B \, A

  • A (29 ร— 2048): Jointly solved multi-class Ridge regression (ฮป = 3000, N = 2,133) on result_norm predicting +1.0 for active language group k and 0.0 for every other group and the control anchors (zh-CN, en_code weighted 6ร—).
  • B (248,320 ร— 29): Calibrated logit tiers per language group k:
    • -4.8 logits: Foreign Hanzi (all 55,328 Hanzi for non-CJK; 21,614 non-JIS-X-0213 Hanzi for Japanese; 26,865 non-Big5/HK Simplified Hanzi for Taiwanese/Cantonese) + always-invalid UTF-8 bytes (0xC0, 0xC1, 0xF5..0xFF).
    • -3.6 logits: Every non-native Unicode letter/mark (L*/Mn/Mc) + foreign partial-UTF-8 lead prefixes (auto-computed to never touch any group's own UTF-8 leads).
    • Split soft ASCII word damping: -1.8 on lowercase English words (^[ _.-]?[a-z]{2,}$) and -0.8 on Titlecase brand/proper-noun tokens (^[ _.-]?[A-Z][a-z]{1,}$) and leading-underscore ALL-CAPS (^_[A-Z]{2,}$) for ko / th (scaled 0.83ร— for ja, 0.75ร— for zh_hant, 0.67ร— for other non-Latin scripts including eu_cyrl, el, ar, he, and exact 0.0 for Latin-script groups eu_latin, vi, sea_latin) โ€” eliminates stray English prose slips and _marker/.fire dodges while preserving proper nouns, brands, code, URLs, and technical terms.
    • Exact 0.000000: Every native-script token & partial UTF-8 lead of group k, UTF-8 continuation bytes, plain ALL-CAPS acronyms (API, GPU, HTTP, JSON), digits, punctuation, math symbols (โ„•, โ„, ยต, โ†’), emojis & variation selectors (U+FE00โ€“FE0F), and special tokens.
  • Because qwen4exp's MTP speculative draft head (blk.40) shares output.weight, speculative decoding automatically inherits the fix.

Evaluation Results

All benchmarks were run paired on Qwen4-35B-A3B-UD-IQ3_S with identical prompts and seeds (llama.cpp 59b7165, strictly disjoint FLORES-200 devtest + native chat eval).

1. Global v2.0 Paired Eval โ€” Western, Middle Eastern & Asian Non-Regression (OFF + LOW combined)

Group n Stock Hanzi v2.0 Hanzi Stock Other Script v2.0 Other Script Stock Stray Latin v2.0 Stray Latin
European Latin (eu_latin) 31 3/31 (14c) 0/31 (0c) 0/31 (0c) 0/31 (0c) n/a n/a
European Cyrillic (eu_cyrl) 24 3/23 (8c) 0/24 (0c) 1/23 (1c) 2/24 (10c)* 10/23 14/24
Greek (el) 20 7/20 (27c) 0/20 (0c) 2/20 (12c) 0/20 (0c) 17/20 7/20
Arabic (ar) 16 3/16 (7c) 0/16 (0c) 0/16 (0c) 0/16 (0c) 5/16 7/16
Hebrew (he) 16 0/16 (0c) 0/16 (0c) 1/16 (3c) 1/16 (2c) 12/16 5/16
Thai (th, regression check) 12 9/12 (32c) 0/12 (0c) 1/12 (1c) 1/12 (1c) n/a n/a
Traditional Chinese (zh_hant) 12 8/12 (14c) 0/12 (0c) 0/12 (0c) 1/12 (2c) n/a n/a
Japanese (ja) 9 2/9 (3c) 0/8 (0c) 2/9 (3c) 1/8 (1c) n/a n/a
Korean (ko) 8 4/8 (9c) 1/8 (3c) 0/8 (0c) 0/8 (0c) n/a n/a
Simplified Chinese Control (ctrl_zh_cn) 8 โ€” 8/8 fluent 0/8 (0c) 0/8 (0c) n/a n/a

* One of the two eu_cyrl other-script items was a Serbian prompt answered in standard Latin-script Serbian (ฤลพลก).

2. Full 24-Group Pan-Asian Held-Out Eval (n = 136 OFF / 133 LOW)

Group Stock OFF (HZ / Other) LoRA OFF Stock LOW (HZ / Other) LoRA LOW
Thai (th) 7/8 (25c) / 2/8 (2c) 0/8 / 0/8 8/8 (23c) / 4/8 (21c) 0/8 / 2/8 (4c)
Taiwanese / Cantonese (zh_hant) 7/8 (21c) / 1/8 (5c) 0/8 / 0/8 6/8 (72c) / 1/8 (8c) 0/8 / 0/8
Japanese (ja) 3/8 (3c) / 4/8 (5c) 0/8 / 0/8 3/7 (4c) / 1/7 (2c) 0/8 / 0/8
Korean (ko, full 45-prompt) 31/45 (155c) / 5/45 0/45 spuriousโ€  17/45 HIGH 0/37 HIGH (0/0/0)
Vietnamese (vi) 0/8 / 0/8 0/8 / 0/8 1/8 (2c) / 0/8 0/8 / 0/8
Indonesian / Malay / Tagalog (sea_latin) 0/8 / 0/8 0/8 / 0/8 2/8 (4c) / 0/8 0/8 / 0/8
Tamil / Malayalam / Telugu / Sinhala / Urdu-Persian 1/24 (3c) / 3/24 (13c) 0/24 / 0/24 2/24 (4c) / 13/24 (31c) 0/24 / 0/24
Bengali / Burmese / Gujarati / Lao / Hindi / Odia / Punjabi / Georgian 2/44 (3c) / 4/44 (13c) 0/44 / 0/44 2/44 (4c) / 8/44 (14c) 0/44 / 0/44
Khmer / Kannada / Tibetan / Armenian / Central Asian Cyrillic 0/24 / 2/24 (3c) 0/24 / 1/24 (2c) 0/24 / 0/24 0/24 / 0/24
ALL 24 ASIAN GROUPS TOTAL 22/136 (105c) / 17/136 (42c) 1/136 (2c)โ€ก / 1/136 (2c) 26/135 (120c) / 27/135 (76c) 0/133 (0c) / 2/133 (4c)

โ€  On the 45-prompt Korean OFF suite, eval_asst_12 intentionally displayed UTF-8 byte-length examples (รฉ, ใ‹, ไธญ) in a table explaining UTF-8 encoding.
โ€ก The single OFF Hanzi hit in the 24-group suite was a valid Korean parenthetical metallurgy gloss ํ™ฉ๋™(้ป„้Š…).

3. General Capability, Preservation & Exact Full-Vocabulary KL Divergence

Benchmark Stock UD-IQ3_S + Multilingual Fix LoRA ฮ” Note / Exact McNemar p
MMLU (n = 300, 0-shot, thinking OFF) 79.0% (237/300) 78.7% (236/300) -0.3 pp 1.0000 (n.s.)
GSM8K (n = 150, CoT, thinking LOW) 98.0% (147/150) 97.3% (146/150) -0.7 pp 1.0000 (n.s.)
MMLU-Pro (n = 250, CoT, thinking LOW) 82.4% (206/250) 84.8% (212/250) +2.4 pp 0.1094 (n.s.)
KL_general (v2.0) (EN prose + Python/C++ code, 248k vocab) 0.000000 (PPL 5.3244) 0.001436 (PPL 5.3334) +0.17% PPL exact full-vocab
KL_korean (v2.0) (Clean Korean prose + chat, 248k vocab) 0.000000 (PPL 8.1771) 0.1410 (PPL 7.7724) -4.95% PPL exact full-vocab
Brand & Tech Terms in Korean (n = 20, EN persona) 79.3% (23/29 kw) 90.0% (27/30 kw) +10.7 pp 0 hybrids, 0 Hanzi
Korean Persona Konglish (n = 16, EN sysprompt) 8/11 (33w, 11 Hanzi) 2/13 (2w, 0 Hanzi) -94% words โ€”
Simplified Chinese Control (ctrl_zh_cn) 100% fluent 100% fluent (8/8) 0 leaks โ€”

Usage

llama.cpp (qwen4-35b-a3b-multilingual-fix.gguf)

llama-server \
  -m Qwen4-35B-A3B-UD-IQ3_S-00001-of-00002.gguf \
  --lora qwen4-35b-a3b-multilingual-fix.gguf \
  --jinja --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU

You can tune strength with --lora-scaled qwen4-35b-a3b-multilingual-fix.gguf:0.8 or stack it with other LoRAs using comma-separated --lora other.gguf,qwen4-35b-a3b-multilingual-fix.gguf.

Transformers / PEFT (peft/)

from transformers import AutoModelForImageTextToText
from peft import PeftModel

base = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen4-35B-A3B", dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base, "LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA", subfolder="peft")

File Checksums (SHA-256, v2.0)

  • qwen4-35b-a3b-multilingual-fix.gguf: 24b97ad970aaa15f5736aa349021e3624cbed29238d4c68760d5e5783bf80759
  • peft/adapter_model.safetensors: 824ba665a3c7470a0c63883e09f7917367c74f56c43fa4c3d44d076cd72aa32e
Downloads last month
289
GGUF
Model size
7.26M params
Architecture
qwen4exp
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA

Adapter
(24)
this model