mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1595] 0.1.41 CPU share default: no gain, and ~5% slower at 1,000 tokens, on a V100 with all experts in VRAM #639
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#639
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @christopherrobertbrooks-tech on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1595
Measured the new default (CPU share on for chunks below 1,024 tokens) against
STRATA_PREFILL_CPU_SHARE=0on one TeslaV100-PCIe-32GB with an i7-13700KF (16 GB RAM, low-RAM mode), Coder IQ1_M with all experts resident in VRAM
(
--resident-experts),v0.1.41built for sm_70 (CUDA 12.9), same binary, arms alternating, 3 rounds x 3 runs,temperature 0. Prompt time (ms), mean of 3 runs per round:
The engine printed the "CPU share is ON by default" line in the
onarm, and the env check confirmed=0in theoffarm.
This fits the explanation in the notes: when every expert is already on the GPU, there's nothing for the CPU to save, so
the share can only cost. The 1,000-token case is consistently slower in all 3 rounds, despite
auto's timing check.Maybe the default could skip the share when the expert cache holds everything (as with
--resident-experts)? For now werun with
STRATA_PREFILL_CPU_SHARE=0.@phoenixclyde commented on GitHub (Oct 9, 2026):
Matches what we see on AMD. There the default is on for a structural reason: the gfx906 compat build compiles as HIP without
STRATA_USE_HIP, so the guard atsrc/prefill/prefill.cpp:1839(#if !defined(STRATA_USE_HIP)) does not exclude it -src/core/expert_cache.cpp:5-6states that build has noSTRATA_USE_HIP, and guards the same question with#if defined(STRATA_USE_HIP) || defined(STRATA_HIP_GFX906).One MI50 32 GB (gfx906),
strata generateCLI, 4-token prompt, one binary with one set of weights and one config, only the environment differing:Output token ids are identical, so the difference is 0.13%, inside our run-to-run spread - the same shape as your 1,000-token case: the share engages and buys nothing.
There is a fix for the AMD side: one line at
prefill.cpp:1839(#1732).@Niko1221 commented on GitHub (Oct 10, 2026):
Thank you for the clean interleaved table. You were right: the 0.1.41 CPU prefill share default has nothing to take when every expert is already in the GPU cache, and arming it only moves the staged-chunk limit. In v0.1.42 the default share is not armed when the expert cache holds every expert (the serve log says so). An explicit STRATA_PREFILL_CPU_SHARE is still honoured, and where experts are not all resident the default is unchanged. We checked that path on a 12 GB card with Q2_0 (share on, coherent output).
@christopherrobertbrooks-tech commented on GitHub (Oct 10, 2026):
Thanks for the quick fix! One small addition for anyone with the same card: those numbers were with vision off (
expert cache 12288 slots, 23.42 GiB of VRAM). With--visionon, the vision encoder takes ~1.4 GB of the V100 and the cache drops to 11,644 slots (the rest pinned in RAM), so the new "every expert cached" check probably won't apply there. We keepSTRATA_PREFILL_CPU_SHARE=0set explicitly, which you mention is still honoured, so nothing needed on your side.@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
autotoo 4X gain in the prefill in 4 way ring #2889