server: resolve Responses response ids to KV prefixes - #752
Open
perfloop-agent wants to merge 2 commits into
Open
server: resolve Responses response ids to KV prefixes#752perfloop-agent wants to merge 2 commits into
perfloop-agent wants to merge 2 commits into
Conversation
perfloop-agent
force-pushed
the
perfloop-pr-open-f6q95834h9
branch
from
August 13, 2026 14:23
6af2990 to
79a2cc3
Compare
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
/v1/responses. Compatible append-only requests withprevious_response_idrestore the exact KV frontier and parse, render, and tokenize only their new input tail.Test plan
make -B cpu -j2make -B ds4_test -j2 && ./ds4_test --servermake -B tests/responses_replay_bench -j2 && ./tests/responses_replay_bench --turns 171 --iterations 20 --disk-cache-mb 1024 --continued-interval-tokens 8192 --checkpoint-tokens 8198 --checkpoint-bytes 136806400 --expect-checkpoint-savedmake -B tests/responses_replay_bench -j2 && ./tests/responses_replay_bench --turns 171 --iterations 2 --disk-cache-mb 1024 --continued-interval-tokens 8192 --checkpoint-tokens 8198 --checkpoint-bytes 136806400 --restart-check --expect-checkpoint-savedmake -B tests/responses_replay_bench -j2 && ./tests/responses_replay_bench --turns 171 --iterations 2 --disk-cache-mb 64 --continued-interval-tokens 8192 --checkpoint-tokens 8198 --checkpoint-bytes 136806400 --expect-checkpoint-skippedThe benchmark uses the token-only test fixture, so it covers host-side request handling and continuation state rather than model or GPU inference.
Workload:
in-memory steady-state 8k-token Responses response-id host ingresshost_ingress_ns/opGenerated by Perfloop. Human sponsor: Tomas Senart. Measurements and checks.