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.

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 --lora for llama.cpp across any Qwen3.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 on lm_head for transformers / 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.

ฮ”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 ร— 2560): Closed-form multi-class Ridge regression (ฮป = 3000, N = 2,133) on Qwen3.8-Flash-Next's result_norm activations, predicting +1.0 for active language group k and 0.0 for every other group and the zero-anchored controls (ctrl_zh_cn, ctrl_en_code weighted 6ร—).
    • 5-fold OOF AUROC: 0.99967โ€“1.00000 across 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_cn max mean activation 0.0064; ctrl_en_code max 0.0271.
  • B (248,320 ร— 29): Exact per-group logit masks:
    • -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: Non-native Unicode letters/marks (L*/Mn/Mc) + foreign partial-UTF-8 lead prefixes.
    • Soft ASCII word damping: -1.8 on lowercase English words (^[ _.-]?[a-z]{2,}$) and -0.8 on Titlecase/leading-underscore tokens (^[ _.-]?[A-Z][a-z]{1,}$, ^_[A-Z]{2,}$) for ko, th, eu_cyrl, el (scaled 0.85ร— for ar/he, 0.83ร— for ja, 0.75ร— for zh_hant, 0.67ร— for other non-Latin scripts, and exact 0.0 for Latin-script groups eu_latin, vi, sea_latin).
    • 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, and special tokens.
  • Because qwen4exp's MTP draft head (blk.48) shares output.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: 27301c60b9113464997ac10734375c462e63ec2b91d7c92a331c814dfcb10b40
  • peft/adapter_model.safetensors: e66439a633dba399c5556fb728da58d96ea8a637c1833fe1ee075370ca3461a9
Downloads last month
-
GGUF
Model size
7.28M 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/Qwen3.8-Flash-Next-Multilingual-Fix-LoRA

Adapter
(11)
this model