Slice returned routed_experts at routed_experts_start_len - #45
Draft
nightlessbaron wants to merge 2 commits into
Draft
Slice returned routed_experts at routed_experts_start_len#45nightlessbaron wants to merge 2 commits into
nightlessbaron wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plumbs the existing
routed_experts_start_lenrequest field through chat completions: the tokenizer manager slices the returned expert tensor at the offset, so multi-turn clients that already hold the prefix rows receive only the rows for newly processed tokens. Default 0 keeps the full echo unchanged.Motivation: with 61 layers × topk 8 × int32 the expert echo is 1952 B/token; echoing the full context every turn made TITO responses O(context) (~200MB at 16k ctx for ~110-token turns) and saturated the gateway NIC. Client-side delta merge lands in the companion miles PR.