Repository navigation
serve --moe-slots: keep the experts file-backed (--no-host --no-repack --load-mode mmap) - #163
Conversation
…k --load-mode mmap) With -ot exps=CPU alone, llama.cpp copied every expert into a pinned Vulkan host buffer (Coder-30B: 16.9 GiB of RAM); --no-host alone repacks them (12.7 GiB), and the default load mode reads the file into memory. With the three flags the experts are CPU_Mapped and the process holds 259 MiB of anonymous memory, perplexity unchanged. docs/moe-streaming.md corrects its memory-mapped claims. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Docs7 for 1bit-monster/engine
Commit |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
1bit serve --moe-slotspassed only-ot exps=CPU, so llama.cpp kept a full RAM copy of every expert, which is exactly what streaming is meant to avoid. On Qwen3-Coder-30B:-ot exps=CPU--no-host--no-host -nr--no-host -nr --load-mode mmapPerplexity is identical in every case (21.1029). Decode never used the copy, so the streamed speeds already measured still hold, but the memory saving did not.
1bit serve --moe-slots 1536: the chat answers, and serve plus llama-server hold 128 MiB of anonymous memory. The rest of their RSS is file-backed page cache.This is also what blocked streaming Flash-Next (71.7 GiB of experts): the memory guard fired on the copy.
🤖 Generated with Claude Code