Experiment: add offline residency simulator - #902
Merged
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.
Summary
This is the self-contained Phase 0 offline residency experiment requested in PR #893 review. It adds no runtime behavior, backend changes, routing changes, or prefetch.
It provides a reproducible simulator for the question raised by #884: under a fixed expert-residency byte budget, can admission/frequency policies reduce predicted critical-path felt wait without overfitting?
Included
ROUTE_TRACEparsing and contiguous call/batch validation.PROF=1calibration parsing.Real-trace context
The H200 pilot used 13 GLM-5.2 traces collected before this split: 8 training and 5 held-out across coding, chat, reasoning, multilingual, and long-context prompts. The offline results were:
These are simulator predictions, not runtime speedup claims. The pilot also showed that hit rate alone is insufficient:
RAM_GB=120, PIPE=0measured 1.66 tok/s at 57.2% hit, whileRAM_GB=120, PIPE=1measured 2.00 tok/s at the same hit rate.Related issue
This is the simulator half of #893 and supports #884. It is intentionally independent of the placement/backend issues in #887, #892, #813, #585, #759, #766, #767, #687, #856, #885, #848, #662, and #783.
Verification
407 passed, 57 skipped.29 passed.The next step is a separate runtime policy PR only after maintainers accept the methodology and held-out gate.