Repository navigation
MoE streaming: Qwen3.8-Flash-Next streamed and measured; serve maps per-layer embeddings - #166
Conversation
…-layer embeddings file-backed Flash-Next UD-Q4_K_XL (111 GB) decodes from 4.6 GiB of GPU memory plus the slots: 3.5-3.7 tok/s at 4,608 slots, 5.4-6.2 at 9,216, exact (perplexity 11.32). Resident-aware routing costs more here than on Coder-30B: r 0.5 gives a KL divergence of 0.07; r 0.9 gives 0.015-0.028 for +5-15%. serve --moe-slots also maps per_layer_token_embd (Flash-Next's 26.8 GiB table) on the CPU. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Docs7 for 1bit-monster/engine
Commit |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Free memory was the only wall serve checked, and it is not the wall that hurts: #680 is a gfxhub page fault plus a MODE2 reset at GTT 106.5 GiB of 120, twice, i.e. 13.5 GiB of headroom was not enough once the runtime's own allocations landed. The admission verdict now also carries an absolute ceiling - GTT total minus a 16 GiB reserve - and refuses a load whose landing (GTT in use now + the estimate) would cross it, even when the free memory test alone would admit it. Same reserve knob ggml-hrx charges its own allocations against (GGML_HRX_GTT_RESERVE_MB, fork PR #166), so the pre-launch refusal and the allocation-time backstop cannot disagree. The refusal prints one line with both sets of numbers and exits 3, the same code Lemonade already reads as a failed load, so nothing downstream changes. Measured on strixhalo (120 GiB pool, 52 GiB of GTT in use by another serve, MemAvailable 57.9 GiB), Qwen3-4B-Q4_K_M --device hrx: default reserve (16 GiB): fits - need 8.45 GiB, free 57.96 GiB, ceiling 104 GiB, lands at 60.5 GiB GGML_HRX_GTT_RESERVE_MB=61440 (ceiling 60 GiB): refused, exit 3 - 'GTT after this load would reach 60.6 GiB of the 60.0 GiB ceiling (120.0 GiB total, 60.0 GiB reserve, GGML_HRX_GTT_RESERVE_MB), where engine #680 faulted' i.e. a load the box had plenty of free memory for is refused on the ceiling alone, which is the behaviour #680 asked for. ctest mem_admit covers the arithmetic (120 - 16 = 104; a 105 GiB landing refused while 60 GiB is free; a pool smaller than the reserve refused at any size; RAM-only refusals still RAM-only), and docs/serve.md 'Will it fit?' documents the rule, the knob and the two consequences (the >= 95 GiB warning now only covers the 95-104 GiB band, and the program-cache warning only fires when MemAvailable is the binding limit).
… (#764) Free memory was the only wall serve checked, and it is not the wall that hurts: #680 is a gfxhub page fault plus a MODE2 reset at GTT 106.5 GiB of 120, twice, i.e. 13.5 GiB of headroom was not enough once the runtime's own allocations landed. The admission verdict now also carries an absolute ceiling - GTT total minus a 16 GiB reserve - and refuses a load whose landing (GTT in use now + the estimate) would cross it, even when the free memory test alone would admit it. Same reserve knob ggml-hrx charges its own allocations against (GGML_HRX_GTT_RESERVE_MB, fork PR #166), so the pre-launch refusal and the allocation-time backstop cannot disagree. The refusal prints one line with both sets of numbers and exits 3, the same code Lemonade already reads as a failed load, so nothing downstream changes. Measured on strixhalo (120 GiB pool, 52 GiB of GTT in use by another serve, MemAvailable 57.9 GiB), Qwen3-4B-Q4_K_M --device hrx: default reserve (16 GiB): fits - need 8.45 GiB, free 57.96 GiB, ceiling 104 GiB, lands at 60.5 GiB GGML_HRX_GTT_RESERVE_MB=61440 (ceiling 60 GiB): refused, exit 3 - 'GTT after this load would reach 60.6 GiB of the 60.0 GiB ceiling (120.0 GiB total, 60.0 GiB reserve, GGML_HRX_GTT_RESERVE_MB), where engine #680 faulted' i.e. a load the box had plenty of free memory for is refused on the ceiling alone, which is the behaviour #680 asked for. ctest mem_admit covers the arithmetic (120 - 16 = 104; a 105 GiB landing refused while 60 GiB is free; a pool smaller than the reserve refused at any size; RAM-only refusals still RAM-only), and docs/serve.md 'Will it fit?' documents the rule, the knob and the two consequences (the >= 95 GiB warning now only covers the 95-104 GiB band, and the program-cache warning only fires when MemAvailable is the binding limit). Co-authored-by: bong-water-water-bong <[email protected]>
serve --moe-slotsalso mapsper_layer_token_embdon the CPU. That's Flash-Next's table, and the tensor is row-gathered only. Checked with Coder-30B: the chat answers, and serve plus llama-server hold 128 MiB of anonymous memory.🤖 Generated with Claude Code