The VRAM plan: no CUDA-context term in the engine, where the budget is already net of it
in.budget_bytes is cudaMemGetInfo's free figure, read after this process's context exists, and the engine subtracted a 300 MiB context on top of it: ~290 (IQ3) / ~160 (Q4) expert slots under table 4.3 (review finding 2). The engine passes 0; vram_plan_test keeps the study's 300 MiB because its budgets are the cards' sizes. Said in vram_plan.hpp's field comment. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
This commit is contained in:
1 parent
2b4fcf1f8f
commit
4a998adf2c
2 files changed
+7
-2
No files matched your search
@@ -27,7 +27,9 @@ struct VramPlanInput {
|
||||
uint64_t drafter_bytes = 0; ///< the MTP draft block: dense + experts in VRAM + ring KV + logits
|
||||
uint64_t kv_bytes_per_token = 0; ///< the KV format's bytes per token over every attention layer
|
||||
uint64_t session_bytes = 0; ///< rope table, GDN state, scratch
|
||||
uint64_t cuda_context_bytes = 0; ///< the driver's own share, ~230 to 300 MiB
|
||||
uint64_t cuda_context_bytes = 0; ///< the driver's own share, ~230 to 300 MiB, when `budget_bytes` is a card's
|
||||
///< size (the study's table); 0 when it is cudaMemGetInfo's free figure, which
|
||||
///< is read after the context exists and so is already net of it
|
||||
uint64_t reserve_bytes = 0; ///< --vram-reserve-mib (700 default, 300 on a small card)
|
||||
uint64_t prompt_bytes = 0; ///< the prompt path's chunk buffers; 0 when prefill borrows cache slots
|
||||
int64_t context = 262144; ///< requested
|
||||
|
||||
Reference in new issue
Block a user