Skip to content

Abyss v1.3.251 — 日本語の答えに中国語・ハングルが混ざらない設定を強化(ja-en-strict、Qwen4 で 16/40 → 0/40)

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Dec 03:26

日本語の答えに中国語やハングルが混ざるのを止める、より厳しい言語の設定を足しました。Qwen4-35B-A3B で測った数字も載せています。n-gram の表が Q4_0 の GGUF も読めるようになりました。

  • "lang": "ja-en-strict"(または STRATA_LANG=ja-en-strict):これまでの ja-en(答えに、ラテン文字・かな・JIS X 0213 の漢字以外のトークンを出さない)に加えて、日本の漢字で書ける中国語の機能語 38 個(就是、但是、什么、没有、可以、吧、呢 など)をトークンごと止めます。オプトインで、付けなければ何も変わりません。日本語の文章 66.7 万トークンで調べて、ja-en が止めないものを余分に止めることはありませんでした。
  • Qwen4-35B-A3B で測った数字(unsloth UD-Q4_K_XL、RTX 5090、日本語 40 問、思考なし、greedy と、温度 0.8 / top_p 0.95 のサンプリング 2 周):日本の漢字にない字やハングルが入った答えが、greedy で 16 / 40 → 0 / 40、サンプリングで 50 / 80 → 0 / 80(ja-en でも ja-en-strict でも)。日本語の事実 12 / 12、math 50 / 50、code 30 / 30、生成 238 → 237 tok/s。止めないトークンの確率は変わらないので、元のモデルからのズレ(KL)は増えません。設定は MANUAL の「答えを 1 つの言語に保つ(lang)」にあります。
  • Q4_0 の n-gram(PLE)の表が読めるように:Qwen4-35B-A3B で、per_layer_token_embd が Q4_0 の GGUF(MXFP4 の GGUF など)が、読み込みの途中で止まっていました。ほかの型の表は今までどおりです。
  • 確かめたこと:RTX 5090 で Qwen4-35B-A3B UD-Q4_K_XL(4K・日本語・コード、n-gram・MTP・DFlash 2)、Qwen3.8-Flash-Next、Inkling 2 Mini が v1.3.250 とバイト単位で同じです(設定なしのとき)。
  • 更新はセットアップをもう一度実行してください(モデルは落とし直しません)。

A stricter Japanese language profile, the mask's numbers on Qwen4-35B-A3B, and Q4_0 n-gram tables.

  • "lang": "ja-en-strict" (or STRATA_LANG=ja-en-strict): ja-en (no token outside Latin, Kana and the Han of JIS X 0213 in the answer) plus the whole tokens of 38 Chinese function words written in Han that Japanese shares (就是, 但是, 什么, 没有, 可以, 吧, 呢 ...). Opt-in; without it nothing changes. On 667K tokens of Japanese text it bans nothing ja-en does not.
  • Measured on Qwen4-35B-A3B (unsloth UD-Q4_K_XL, RTX 5090, 40 Japanese questions, thinking off, greedy and two sampled rounds at temperature 0.8 / top_p 0.95): answers with a non-JIS Han or Hangul character 16 / 40 -> 0 / 40 greedy, 50 / 80 -> 0 / 80 sampled, with ja-en and with ja-en-strict. Japanese facts 12 / 12, math 50 / 50, code 30 / 30, decode 238 -> 237 tok/s; the allowed tokens' probabilities are untouched (no KL cost). Settings: MANUAL, "Keeping the answer in one language (lang)".
  • Q4_0 n-gram (PLE) tables load for Qwen4-35B-A3B, e.g. MXFP4 GGUFs whose per_layer_token_embd is Q4_0 (they stopped at load before). The other table types read as before.
  • Checked: on the RTX 5090, Qwen4-35B-A3B UD-Q4_K_XL (4K, Japanese, code; n-gram, MTP, DFlash 2), Qwen3.8-Flash-Next and Inkling 2 Mini answer byte-identically to v1.3.250 (without the profile).
  • To update, run the setup again (the model is not downloaded again).

Prebuilt engine (no CUDA toolkit or compiler needed; the setups take it when nvcc is missing, or with --prebuilt):
abyss-engine-cuda-linux-x64.tar.gz / abyss-engine-cuda-windows-x64.zip, CUDA 13.3, RTX 30 / 40 / 50 (sm_86, sm_89, sm_120a).
NVIDIA driver: 580 or newer required (CUDA minor version compatibility), 610 or newer recommended (CUDA 13.3's branch). SHA-256: SHA256SUMS.
Trial: checked on an RTX 5090 under Linux (same output as a local build); Windows and RTX 30 / 40 not yet run on a GPU here - reports welcome. Images (strata-vision) need a local build.
The engine program is now abyss (abyss.exe); strata stays as an alias for now (a link in the Linux archive).