Archived
budget: a rank whose cache costs less backs the same tokens with a smaller pool
The resolver derives one split for every rank (the dearest rank's). A rank whose KV groups cost less per token -- an attention-zero rank keeps no attention cache -- would spend the common pool on tokens configure_kv then caps away, one block table serving every rank. Its KV pool is now sized for the same token count as the dearest rank's, a hair over, and the difference goes to its weights pool, where its larger share of the experts lives. Only a derived split is re-split; a world whose ranks cost the same is untouched.
This commit is contained in:
1 parent
3e629e7a27
commit
ffdf1f2ced
2 files changed
+42
-1
No files matched your search
@@ -76,6 +76,10 @@ private:
|
||||
* shared BY POINTER rather than broadcast (spec §1). */
|
||||
struct Rank;
|
||||
std::vector<std::unique_ptr<Rank>> ranks_;
|
||||
/* Each rank's pool budgets: cfg_'s, except where a rank's cache costs less than its peers'
|
||||
* and its KV pool is sized for the same tokens with the difference in its weights (see the
|
||||
* resolve in Engine::plan). */
|
||||
std::vector<Config> rank_cfg_;
|
||||
/* THE DISK HALF OF THE IDLE TIERS. One store for the engine, not one per rank: it is
|
||||
* keyed by a chained hash of TOKENS, which every rank computes identically, and a
|
||||
* per-rank store would write the same key several times over. Off unless
|
||||
|
||||
Reference in new issue
Block a user