Skip to content

kv: charge QSA index-key state per block when the KV pool extends into the display carveout (ported from Enntity) - #243

Closed
AzeezIsh wants to merge 0 commit into
stack/literal-tool-xmlfrom
stack/qsa-aux-kv-budget
Closed

AzeezIsh wants to merge 0 commit into
stack/literal-tool-xmlfrom
stack/qsa-aux-kv-budget

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

Replaces #231. GitHub closed #231 automatically when a restack force-pushed its base branch, and once the head was force-pushed afterwards it couldn't be reopened. The branch is the same (stack/qsa-aux-kv-budget); #231 has the history and receipts.

Stack: main ← #198 ← #223 ← #224 ← #226 ← #227 ← #229 ← #230 ← this.

Summary

  • Ports Enntity 4d75b9ec (AGPL-3.0) with credit. When the KV pool grows into the GB10 display carveout (main's strix-hip train: the validated gfx1151 stack (build fix + suballoc + carveout + hipBLASLt) #197 mechanism), each added block now also pays the per-token auxiliary state: QSA's 768 B/token indexer keys, i.e. 12,288 B per 16-token block. Before this, that share wasn't budgeted. KvShape gains auxiliary_block_bytes / with_per_token_aux.
  • Capacity change, by design: qwen4_exp with QSA gets fewer carveout blocks than before (parent rc16 boot: 76,595 blocks). Models without per-token aux are unchanged (new test). No outputs change.

Test plan (vs parent #230)

  • kv_carveout 8/8, including Enntity's qwen_carveout_growth_reserves_indexer_state_for_every_added_token and carveout_growth_is_unchanged_without_per_token_aux
  • one rc16 boot: KV-blocks line vs the parent's boot log; greedy C1 == serial refs (job J37)

Tracking: #220.

Generated with Devin

@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from 7d38fa1 to bd62ab4 Compare October 29, 2026 09:44
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from f3af33b to 9d8de79 Compare October 29, 2026 09:44
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from bd62ab4 to 2fa7018 Compare October 29, 2026 09:50
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from 9d8de79 to c2ddfe9 Compare October 29, 2026 09:50
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from 2fa7018 to a9502c4 Compare October 29, 2026 09:56
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from c2ddfe9 to 15f6d5b Compare October 29, 2026 09:56
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from a9502c4 to d68317e Compare October 29, 2026 10:01
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from 15f6d5b to fbf7a25 Compare October 29, 2026 10:02
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from d68317e to 8b651d6 Compare October 29, 2026 10:09
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from fbf7a25 to ff5782b Compare October 29, 2026 10:09
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from 8b651d6 to 43deba6 Compare October 29, 2026 10:16
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from ff5782b to 07414cd Compare October 29, 2026 10:17
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from 43deba6 to e1356e4 Compare October 29, 2026 10:57
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from 07414cd to b2d4cd2 Compare October 29, 2026 10:57
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from e1356e4 to d094a39 Compare October 29, 2026 11:10
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from b2d4cd2 to f6498f6 Compare October 29, 2026 11:10
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from d094a39 to c5a8128 Compare October 29, 2026 11:25
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from f6498f6 to 89fbcc2 Compare October 29, 2026 11:25
@AzeezIsh
AzeezIsh force-pushed the stack/literal-tool-xml branch from c5a8128 to 7cadd40 Compare October 29, 2026 12:00
@AzeezIsh AzeezIsh closed this Oct 29, 2026
@AzeezIsh
AzeezIsh force-pushed the stack/qsa-aux-kv-budget branch from 89fbcc2 to 7cadd40 Compare October 29, 2026 12:00
@AzeezIsh

Copy link
Copy Markdown
Contributor Author

GitHub closed this PR automatically during a restack. Continued in 254 on the same branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant