Archived
vram_budget: the prefill staging region is paid by expert residency before the cache
With a lending cache the staging region (two buffers of one layer's off-card experts) always came out of the cache, which left a large-context MoE model short of its configured coverage. Expert residency above the host pool's floor now pays first; the cache pays only when the experts are at their floor, and an expert with no other home is never evicted for it. The startup report names whichever paid. mem_test (prefill_staging_*).
This commit is contained in:
1 parent
2c67e93342
commit
9e0e28315d
3 files changed
+61
-6
No files matched your search
@@ -104,8 +104,9 @@ struct VramBudget {
|
||||
int64_t experts = 0, kv = 0; /* the two shares, each capped at its ceiling */
|
||||
int64_t unusable = 0; /* elastic neither side could take -- both were full */
|
||||
/* Prefill staging region: two buffers, each one layer's share of the experts left off the
|
||||
* card, appended to the top of the activation arena (core/place/stager.h). Zero when every
|
||||
* expert is resident or the placement cannot move any. */
|
||||
* card, funded by cache slack or expert residency above the host-pool floor, appended to the
|
||||
* top of the activation arena (core/place/stager.h). Zero when every expert is resident or the
|
||||
* placement cannot move any. */
|
||||
int64_t stage = 0;
|
||||
int64_t weights = 0; /* statics + experts: what vram_weights is set to */
|
||||
std::string report; /* the block the engine prints at startup */
|
||||
|
||||
Reference in new issue
Block a user