[tinker] Load harness for the API server's sampling path at 131k concurrency - #17
Closed
avigyabb wants to merge 1 commit into
Closed
[tinker] Load harness for the API server's sampling path at 131k concurrency#17avigyabb wants to merge 1 commit into
avigyabb wants to merge 1 commit into
Conversation
This was referenced Sep 4, 2026
avigyabb
force-pushed
the
avi/stack-6-simdjson-decode
branch
from
September 4, 2026 01:24
732875e to
bb93330
Compare
avigyabb
force-pushed
the
avi/stack-7-load-harness
branch
from
September 4, 2026 01:24
b47c914 to
82b5f06
Compare
…urrency skyrl/benchmarks/load_test_tinker_sampling.py isolates the Tinker API server (FastAPI/uvicorn, SQLite, in-memory future store, forwarding client) from the engine, CPU only: the real skyrl.tinker.api app under uvicorn configured as the non-colocated megatron server with the engine subprocess stubbed and the router URL seeded into EngineStateDB; a fake vLLM router (barrier or fixed-latency mode, optionally multi-process); and a load client that behaves like the Tinker SDK (400 concurrent submits, sample_max_concurrent_requests cap, 45s re-polls, 16 connection retries with backoff) or drives the real SDK. Workers bind distinct loopback source IPs so one IP's ~28k ephemeral ports do not cap the run. Reports completed/failed by class, latency percentiles, the router's peak in-flight count, and the server's peak RSS, fds and /healthz latency; TINKER_LOADTEST_PROFILE=<path> cProfiles the server. Structure follows Chuck Tang's SQLite QueuePool repro gist (https://gist.github.com/j316chuck/f44f35572ffb8584519d13b943f99ef8). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Avi Basnet <avigyabb@stanford.edu>
avigyabb
force-pushed
the
avi/stack-6-simdjson-decode
branch
from
September 4, 2026 18:04
bb93330 to
0a6693d
Compare
avigyabb
force-pushed
the
avi/stack-7-load-harness
branch
from
September 4, 2026 18:04
82b5f06 to
aaa1b1a
Compare
Owner
Author
|
Moved upstream: NovaSky-AI#2166 |
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.
Stack 7/7. The harness that produced every number in stacks 1-6.
skyrl/benchmarks/load_test_tinker_sampling.pyisolates the Tinker API server (FastAPI/uvicorn, SQLite, in-memory future store, forwarding client) from the engine, CPU only: the realskyrl.tinker.apiapp under uvicorn configured as the non-colocated megatron server with the engine subprocess stubbed and the router URL seeded intoEngineStateDB; a fake vLLM router (barrier or fixed-latency mode, optionally multi-process for multi-MB results); and a load client that behaves like the Tinker SDK (400 concurrent submits,sample_max_concurrent_requestscap, 45 s re-polls, 16 connection retries with backoff) or drives the real SDK (--client sdk). Workers bind distinct loopback source IPs so one IP's ~28k ephemeral ports do not cap the run. Reports completed/failed by class, latency percentiles, the router's peak in-flight count, and the server's peak RSS, fds and/healthzlatency;TINKER_LOADTEST_PROFILE=<path>cProfiles the server process.uv run --extra tinker python skyrl/benchmarks/load_test_tinker_sampling.py \ --num-requests 131072 --forwarding-max-connections 2048 # realistic engine queueing, long outputs, SDK cap uv run --extra tinker python skyrl/benchmarks/load_test_tinker_sampling.py \ --num-requests 131072 --max-tokens 8192 --proto --forwarding-max-connections 2048 \ --vllm-mode latency --max-num-seqs 2048 --gen-seconds 5 --max-outstanding 16384 # against a real server with the public SDK uv run --extra tinker python skyrl/benchmarks/load_test_tinker_sampling.py \ --role load --client sdk --url http://HOST:8000 --num-requests 4096Structure follows Chuck Tang's SQLite QueuePool repro gist (https://gist.github.com/j316chuck/f44f35572ffb8584519d13b943f99ef8). Run against pre-NovaSky-AI#2097
main(59d4daed) with 262k-token results it reproduces his 32x64 collapse: 18 of 2048 completed in 39 min with 4218QueuePoolerrors.What it does not model: real generation time (production is far gentler on the server than the harness), engine and weight-sync stalls, training traffic on the same SQLite file, and a real network between SDK and server.
Stack
🤖 Generated with Claude Code