Skip to content

Send routed_experts_start_len per turn; merge per-turn deltas positionally - #82

Draft
nightlessbaron wants to merge 36 commits into
prodfrom
feat/routed-experts-delta
Draft

Send routed_experts_start_len per turn; merge per-turn deltas positionally#82
nightlessbaron wants to merge 36 commits into
prodfrom
feat/routed-experts-delta

Conversation

@nightlessbaron

@nightlessbaron nightlessbaron commented Jul 26, 2026

Copy link
Copy Markdown

Companion to LLM360/sglang#45. For return_routed_experts requests the session server now sends routed_experts_start_len = len(checkpoint) - max_trim_tokens - 1, so the engine returns only the expert rows for newly processed tokens. The merge assembles deltas positionally: truncate the buffer at the record's offset, append its rows (offset 0 = legacy full-echo last-wins, so the path is backward compatible). Record compaction preserves the offset field, and the existing full-coverage assert still guards the final tensor.

Effect on rollout throughput (per-task LLM vs env time, before/after):

Note for review: the branch sits on the session-server-side merge stack (earlier commits); the delta change itself is the tip commit.

nightlessbaron and others added 30 commits July 1, 2026 02:55
… samples

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…fetch

Re-tokenizing the full trajectory on the session-server event loop blocks record
retrieval at long context; gate it behind --tito-session-mismatch-sample-rate (default off).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit 759ca30)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…nto feat/validator-allow-removed-zero-mask

# Conflicts:
#	miles/rollout/session/sessions.py
…nto feat/validator-allow-removed-zero-mask
…nto feat/validator-allow-removed-zero-mask
…nto feat/validator-allow-removed-zero-mask
(cherry picked from commit dba65d3)
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.

2 participants