Repository navigation
Abyss v1.3.50 — DeepSeek V4.1 starts without a RAM cap (RAM tier ≤ 73% of RAM)
DeepSeek V4.1 が STRATA_GLM_RAM_GB なしでも再び起動するようになりました。RAM 層が pin する量は、既定で RAM 全体の 73% までになります。
STRATA_GLM_RAM_GBを指定しないと、RAM 層は「MemAvailable − 6 GB」を pin していました。V4.1 はエキスパートが RAM に入りきらないので、94 GB 機で 82 GB を pin していました。その後に pin するディスク用バッファが確保できず(glm fast: pinned disk staging did not allocate)、エンジンが起動しませんでした。setup-deepseek.shが書く R9700 用 V4.1 設定が、そのままでは起動しない状態でした。- 直したこと:
- そのバッファの分を先に空けるようにしました。
- Linux の単体 GPU では、pin する量を RAM 全体の 73% までにしました。変更は
STRATA_GLM_RAM_FRACでできます。その機械で 67〜68 GB の pin は何日も問題なく動き、73.9 GB ではスラッシングしました。
- 実測(AI PRO R9700 + 8060S レーン、94 GB):
- V4.1 UD-IQ1_S:RAM 層 67.5 GB で起動します。8K プロンプトと decode は
STRATA_GLM_RAM_GB=60のときと同じです。 - DeepSeek V4 UD-Q2_K_XL:RAM 層 67.37 → 67.07 GB。decode は 52〜56 tok/s で、これまでと同じです。
- V4.1 UD-IQ1_S:RAM 層 67.5 GB で起動します。8K プロンプトと decode は
STRATA_GLM_RAM_GBを指定すれば、これまでどおりその値になります。- V4.1 の検証窓で、VRAM 上にあるエキスパートを全列分まとめて 1 回で計算するようにしました(
STRATA_DS4_WIN_COLS。V4 では v1.3.43 から有効)。- 列ごとに作業用スロットを持つので、各列の SSD 読みが混ざりません。最大 6 列、UD-IQ1_S で VRAM 約 350 MB を使い、エキスパートプールから取ります。
- 出力はビット単位で一致します(
STRATA_DS4_WIN_COLS_CHECK=1で 260 列中 0 列の差)。 - R9700 では速度差は誤差の範囲です。V4.1 の窓の列 1 本は約 20 ms で、そのうち約 9.5 ms が SSD の帯域で決まっているためです。
tools/iq_pack.pyとローダーが、Project Maya の V4.1 GGUF(Maya-S / Maya-XS)を読めるようになりました。Engram のキーとして、別名のdeepseek41.engram.layers・head_dim・pad_token_idも読みます。
DeepSeek V4.1 starts without STRATA_GLM_RAM_GB again: the RAM tier pins at most 73% of the RAM by default.
- With no
STRATA_GLM_RAM_GB, the RAM tier pinned MemAvailable minus 6 GB. V4.1's experts do not fit in RAM, so a 94 GB machine pinned 82 GB. The disk staging pinned after it then failed to allocate (glm fast: pinned disk staging did not allocate), and the engine did not start. The R9700 V4.1 config thatsetup-deepseek.shwrites did not start as written. - The fix:
- The tier now leaves room for that staging first.
- On Linux with a discrete GPU, it pins at most 73% of the RAM, adjustable with
STRATA_GLM_RAM_FRAC. On that machine, 67-68 GB pinned ran for days and 73.9 GB thrashed.
- Measured (AI PRO R9700 + 8060S lane, 94 GB):
- V4.1 UD-IQ1_S: 67.5 GB tier, starts. The 8K prompt and decode match
STRATA_GLM_RAM_GB=60. - DeepSeek V4 UD-Q2_K_XL: 67.37 -> 67.07 GB tier, decode 52-56 tok/s as before.
- V4.1 UD-IQ1_S: 67.5 GB tier, starts. The 8K prompt and decode match
STRATA_GLM_RAM_GBstill sets the size outright.- DeepSeek V4.1's batched verify windows now compute their columns' VRAM-resident experts in one launch (
STRATA_DS4_WIN_COLS, on for V4 since v1.3.43).- Each column gets its own scratch set, so the columns' SSD reads stay apart: up to 6 columns, ~350 MB of VRAM on UD-IQ1_S, taken from the expert pool.
- Bit-identical:
STRATA_DS4_WIN_COLS_CHECK=1compared 260 columns, 0 differ. - Speed is within noise on the R9700. A V4.1 window column takes ~20 ms, and ~9.5 ms of that is bound by the SSD's bandwidth.
tools/iq_pack.pyand the loader read Project Maya's V4.1 GGUFs (Maya-S / Maya-XS): they acceptdeepseek41.engram.layers,head_dimandpad_token_idas aliases for the Engram keys.