Repository navigation
Conversation
Extract rollouts from a run's trace stream and replay them turn by turn at fixed numbers of rollouts in flight, with the recorded completion lengths and tool gaps, to measure steady-state generation throughput, computed vs ideal prefill, prefix-cache hit rate, KV usage and per-request decode speed of an inference deployment.
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio. |
This branch has not been deployed
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.
Adds
benchmarks/rl_replay/, a load generator that replays recorded multi-turn RL rollouts against an inference deployment, to measure what an RL run would get from it at a given number of rollouts in flight.extract.py: reads a run's trace stream (monitors/file/traces) and writes one compact file per rollout: the trace's token tree plus, per model call, the completion length, the tool gap to the next call and the recorded prompt/cached token counts.replay.py: keeps N rollouts in flight per a schedule of levels. Each turn's prompt is the recorded context with earlier completions replaced by what the replay generated, so the prefix cache behaves as in a live rollout; each call generates the recorded length (ignore_eos), then waits the recorded tool gap. Sends the same/inference/v1/generaterequests as the renderer clients (sampling params are a JSON argument) and scrapes every engine's/metrics.summarize.py: steady-state table per level: generated tok/s, computed vs ideal prefill, prefix-cache hit rate, KV usage, preemptions, TTFT, per-request decode tok/s, engine steps/s, speculative acceptance length.