Repository navigation
Conversation
ryanolson
had a problem deploying
to
external_collaborator
November 22, 2026 05:52 — with
GitHub Actions
Failure
… record With the 2 ms window and no early write, a stream alone on its lane waits out the whole window for each record, so every request's first token arrived about 3.1 ms later than on the tcp plane. AutoFlush's on_complete flushes once every live slot on the lane has data, subject to the lane's spacing from the last data write, and keeps the window for lanes that carry several streams. Signed-off-by: Ryan Olson <[email protected]>
ryanolson
force-pushed
the
velo-response-on-complete
branch
from
November 22, 2026 06:07
ba9b6cb to
f69e935
Compare
ryanolson
had a problem deploying
to
external_collaborator
November 22, 2026 06:07 — with
GitHub Actions
Failure
This branch had an error being 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.
Draft.
With
DYN_RESPONSE_PLANE=velo, the response mux holds each batch for its 2 ms window. A stream alone on its lane waits out the whole window for each record, so each request's first token arrives about 3.1 ms later than on the tcp plane.This sets
AutoFlush::on_completewith the 2 ms window. Completion flush can still wait: a batch flushes once every live slot on the lane has data, subject to the lane's spacing from the last data write. Two schedules show the boundary:Both schedules passed the pinned Velo 0.22.1 gate. The measured first-token case is the lone stream, and its trip falls from 3,209 to 79 µs.
Measured on one GB300 node (dynamo frontend, 4 mocker workers, aiperf, ISL 1024 / OSL 256, median of 2-3 runs):
The p99 and frontend rows are the medians of the two speedup-10 runs in the window (
w_E). The old text rounded the p99 to 58 / 40 / 58; the raw medians are 58.4 / 40.4 / 57.7. The frontend baseline medians are 27.54 and 26.49 µs/token, not 27.7 and 26.7. TTFT p50 at speedup 1 is the median of three runs (w_C).Rejected:
DYN_VELO_RESPONSE_BATCH_MS=0also removes the wait, but at speedup 10, c=64 frontend CPU per token rises from 27.5 to 54.2 µs, because the frontend receives 9.1 times more batches. At c=256 the multiplier is 12 times, and frontend CPU is 43.2 µs against 45.7 for tcp.The packing table answers what the rejected alternative raised: completion flush keeps most of the packing.
Completion raised received batches per token by 13% at c=64 and 18% at c=256, not by 9x or 12x.
Test:
cargo test -p dynamo-runtime --lib -- pipeline::network::velo_response::tests::response_batch_policyfails without the change and passes with it. A T3 review (gpt-6.2-sol high) reproduced that: reverting onlyon_completefailed the default row, and forcingbatch_ms = 0failed too.cargo test -p dynamo-runtime --lib931 passed, 2 ignored; clippy-D warningsand fmt clean for the root workspace.State: rebased onto upstream main at
666bc9d7d1, which already carries velo 0.22.1. Head isf69e935c10. The only conflict was the test literal: main spells outon_complete: false, at_bytes: None; the resolution keepsat_bytes: Noneand takeson_completefrom each row. The review's two schedules and the packing table are above.Base is
base/1434-666bc9d7d1, current upstream main, not forkmain(pinned at7c195fd1a7for thegdl/portfollow-along PR #3). The velo 0.22.1 bump is already upstream in ai-dynamo#17885; the stack's first PR is kept only for the record.T3 review verdict: code passes. The reviewer reproduced the upstream test conflict and confirmed the test fails when
on_completeis reverted or whenbatch_ms = 0is forced.