Run this model with HF Jobs
Run LPFchan/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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.
Instructions to use LPFchan/Qwen3.8-Flash-Next-Multilingual-Fix-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use LPFchan/Qwen3.8-Flash-Next-Multilingual-Fix-LoRA with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Qwen3.8-Flash-Next Multilingual Fix LoRA (Global v2.0, 13.9 MiB, Rank-29)
A 13.88 MiB, rank-29 LoRA on output.weight (lm_head.weight) that eliminates Simplified Chinese (Hanzi), cross-script leakage, and unwarranted English-word slips 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 Qwen/Qwen3.8-Flash-Next (qwen4_exp / qwen4exp), with zero training, zero extra latency, and full preservation of English/code and Simplified Chinese.
Built with the same closed-form output-layer Ridge pipeline as LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA (write-up: lost.plus/qwen4-lora), re-probed directly on Qwen3.8-Flash-Next's 2560-dim result_norm subspace.
Both formats are included and mathematically identical (alpha = rank = 29, effective scale 1.0):
qwen3.8-flash-next-multilingual-fix.gguf(13.88 MiB,f16) โ drop-in--loraforllama.cppacross anyQwen3.8-Flash-Next(qwen4exp) GGUF quant (UD-IQ2_XS,UD-IQ3_XXS,UD-IQ4_XS,Q4_K_XL,Q8_0,BF16).peft/(adapter_config.json+adapter_model.safetensors,13.88 MiB,bf16) โ standard PEFT adapter onlm_headfortransformers/vLLM.
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 | 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 | ar |
Arabic | Arabic (U+0600โ06FF, U+0750โ077F, U+08A0โ08FF) |
he |
Hebrew | Hebrew (U+0590โ05FF) |
How It Works
Qwen3.8-Flash-Next shares the exact same 248,320-token vocabulary (0/248,077 mismatches vs Qwen4-35B-A3B) and qwen4exp result_norm -> output.weight projection path, with hidden_size = 2560.
A(29 ร 2560): Closed-form multi-class Ridge regression (ฮป = 3000,N = 2,133) onQwen3.8-Flash-Next'sresult_normactivations, predicting+1.0for active language groupkand0.0for every other group and the zero-anchored controls (ctrl_zh_cn,ctrl_en_codeweighted6ร).- 5-fold OOF AUROC:
0.99967โ1.00000across all 29 groups (eu_latin 0.99998,eu_cyrl 1.00000,el 0.99991,ar 0.99996,he 1.00000,ko 0.99967,ja 0.99999,zh_hant 1.00000,th 1.00000). - Control zero-anchoring:
ctrl_zh_cnmax mean activation0.0064;ctrl_en_codemax0.0271.
- 5-fold OOF AUROC:
B(248,320 ร 29): Exact per-group logit masks:-4.8logits: Foreign Hanzi (all55,328Hanzi for non-CJK;21,614non-JIS-X-0213 Hanzi for Japanese;26,865non-Big5/HK Simplified Hanzi for Taiwanese/Cantonese) + always-invalid UTF-8 bytes (0xC0, 0xC1, 0xF5..0xFF).-3.6logits: Non-native Unicode letters/marks (L*/Mn/Mc) + foreign partial-UTF-8 lead prefixes.- Soft ASCII word damping:
-1.8on lowercase English words (^[ _.-]?[a-z]{2,}$) and-0.8on Titlecase/leading-underscore tokens (^[ _.-]?[A-Z][a-z]{1,}$,^_[A-Z]{2,}$) forko,th,eu_cyrl,el(scaled0.85รforar/he,0.83รforja,0.75รforzh_hant,0.67รfor other non-Latin scripts, and exact0.0for Latin-script groupseu_latin,vi,sea_latin). - Exact
0.000000: Every native-script token & partial UTF-8 lead of groupk, UTF-8 continuation bytes, plain ALL-CAPS acronyms (API,GPU,HTTP,JSON), digits, punctuation, math symbols, emojis & variation selectors, and special tokens.
- Because
qwen4exp's MTP draft head (blk.48) sharesoutput.weight, speculative decoding inherits the fix automatically.
Evaluation Results
Evaluated paired on official Qwen/Qwen3.8-Flash-Next weights converted to mixed Q8_0 trunk/lm_head + Q4_0 MoE/PLE (llama.cpp 59b7165, identical prompts and seeds, disjoint FLORES-200 devtest + chat eval).
1. Global v2.0 Paired Eval โ Western, Middle Eastern & Asian 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 | 0/32 (0c) | 0/31 (0c) | 0/32 (0c) | 0/31 (0c) | n/a | n/a |
European Cyrillic (eu_cyrl) |
24 | 0/24 (0c) | 0/24 (0c) | 0/24 (0c) | 1/24 (7c)* | 9/24 | 8/24 |
Greek (el) |
20 | 3/20 (6c) | 0/20 (0c) | 0/20 (0c) | 0/20 (0c) | 12/20 | 6/20 |
Arabic (ar) |
16 | 0/16 (0c) | 0/16 (0c) | 0/16 (0c) | 0/16 (0c) | 5/16 | 4/16 |
Hebrew (he) |
16 | 0/16 (0c) | 0/16 (0c) | 0/16 (0c) | 0/16 (0c) | 3/16 | 5/16 |
Traditional Chinese (zh_hant) |
12 | 4/12 (7c) | 0/12 (0c) | 0/12 (0c) | 0/12 (0c) | n/a | n/a |
Korean / Thai / Japanese (ko, th, ja) |
32 | 0/32 (0c) | 0/32 (0c) | 0/32 (0c) | 0/32 (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 |
* The single eu_cyrl non-Cyrillic item was a Serbian prompt (srp_Cyrl) answered in standard native Latin-script Serbian (ฤฤลพ).
2. Full 24-Group Pan-Asian Held-Out Eval (OFF + LOW combined, n = 272 Stock / 270 LoRA)
| Group | Stock Leaks (OFF + LOW) | + LoRA Leaks (OFF + LOW) |
|---|---|---|
Taiwanese / Cantonese (zh_hant) |
8/16 (98 Simplified Hanzi) | 0/16 (0) |
Thai (th) |
1/16 (2 Hanzi: ๅฐดๅฐฌ) |
0/16 (0) |
Tibetan (bo) |
1/8 (13 Hanzi) | 0/7 (0) |
Vietnamese (vi) |
1/16 (4 Hanzi: ๅ่ๅ่) |
0/16 (0) |
Japanese (ja) |
1/16 (1 Simplified Hanzi: ็ฑป) |
0/15 (0) |
Lao (lo) |
2/12 (7 Thai chars) | 0/12 (0) |
Sinhala (si) |
2/8 (4 Arabic/Malayalam chars) | 0/8 (0) |
| ALL 24 ASIAN GROUPS TOTAL | 12/272 Hanzi (118c) ยท 4/272 other (11c) | 0/270 Hanzi (0c) ยท 0/270 other (0c) |
3. Exact Full-Vocabulary (248,320-token) KL Divergence & Perplexity
| Corpus | Stock PPL | + Global v2.0 PPL | ฮ PPL | Mean KLD |
|---|---|---|---|---|
English prose + Python/C++ code (KL_general) |
5.0721 |
5.0942 |
+0.44% |
0.001027 |
Clean Korean prose + chat (KL_korean) |
5.3790 |
5.3174 |
-1.14% (better) |
0.030928 |
Usage
llama.cpp (qwen3.8-flash-next-multilingual-fix.gguf)
llama-server \
-m Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00004.gguf \
--lora qwen3.8-flash-next-multilingual-fix.gguf \
--jinja --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU
Tune strength with --lora-scaled qwen3.8-flash-next-multilingual-fix.gguf:0.8 or stack with other LoRAs using comma-separated --lora other.gguf,qwen3.8-flash-next-multilingual-fix.gguf.
Transformers / PEFT (peft/)
from transformers import AutoModelForImageTextToText
from peft import PeftModel
base = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3.8-Flash-Next", dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base, "LPFchan/Qwen3.8-Flash-Next-Multilingual-Fix-LoRA", subfolder="peft")
File Checksums (SHA-256, v2.0)
qwen3.8-flash-next-multilingual-fix.gguf:27301c60b9113464997ac10734375c462e63ec2b91d7c92a331c814dfcb10b40peft/adapter_model.safetensors:e66439a633dba399c5556fb728da58d96ea8a637c1833fe1ee075370ca3461a9
- Downloads last month
- -
We're not able to determine the quantization variants.
Model tree for LPFchan/Qwen3.8-Flash-Next-Multilingual-Fix-LoRA
Base model
Qwen/Qwen3.8-Flash-Next