You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GLM pair: rank 0's KV pool binds at half of rank 1's #387
From @AzeezIsh's profile notes on #383 (item 5): on the GLM-5.3-Flash pair, rank 0's KV pool binds at about half of rank 1's (57K vs 115K blocks). On his pair, rank 0's host exposes 2.0 GB less memory (kernel 6.17 vs 6.11), and rank 0 alone holds the vision tower's weights: 0.54 GB concatenated plus 0.27 GB dequantized to BF16, from ATLAS_ALLOC_LOG_MB. Latent ownership is b % world, so the smaller rank sets the pool and rank 1's surplus goes unused.
Plan:
Measure on our pair: per-rank memory at KV sizing, the vision tower's share, and the pool each rank could hold alone. Our two hosts may be more symmetric than reiner and spark2, so this tells us how much is the tower and how much is the host.
Two candidate fixes, chosen by what step 1 shows:
Ownership by capacity: each rank owns latent blocks in proportion to its free memory, not b % world. This uses the surplus whatever its cause, but it changes block placement for every request and needs the exchange paths to handle uneven owners.
Tower placement: keep the BF16 dequantized copy of the tower out of rank 0's KV budget, either dequantizing at use or placing it on the rank with more room. This only recovers the tower's 0.27 to 0.81 GB.
Gate: KV blocks per rank, text and vision top-20 KL 0 against the parent, vision under live decodes, greedy C1/C8, and cold TTFT and decode level.
I'll post the step 1 numbers here before sending code.
Activity