Skip to content

feat(streaming): GPU-side routed-expert slot remap + residency shed - #22

Merged
asher merged 2 commits into
mainfrom
gpu-dispatch
Jul 30, 2026
Merged

feat(streaming): GPU-side routed-expert slot remap + residency shed#22
asher merged 2 commits into
mainfrom
gpu-dispatch

Conversation

@asher

@asher asher commented Jul 30, 2026

Copy link
Copy Markdown
Owner

No description provided.

asher added 2 commits July 29, 2026 17:17
…op (gpu-dispatch Tier 2 front end)

kq.route_shed(indices, scores, slot_table) -> (slots, mix, miss_ids,
miss_scores): remaps routed ids to arena slots on GPU, sheds every
non-resident expert (lazy graphs cannot demand-read disk), renormalizes
kept gate weights mass-preserving, reports misses front-packed
descending-score for between-token prestage. Shed entries reuse the
row's first kept slot with zero mix weight so downstream gather kernels
need no changes. CPU eval mirrors the kernel's f32 accumulation order
bit-for-bit; GPU parity tests gated on Metal (deferred while a decode
run holds the box).

Claude-Session: https://claude.ai/code/session_01Szxi6DtQUJcrCgTFUmWcfR
@asher
asher merged commit d6d3983 into main Jul 30, 2026
7 checks passed
@asher
asher deleted the gpu-dispatch branch July 30, 2026 00:31
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