Repository navigation
examples: HTTP validation and benchmark harness for PD serving (#240, #248, #263) - #286
Merged
Merged
Conversation
…248, #263) Add opt_prime/examples/pd/http_matrix with the reusable parts of the HTTP work from #243, #252 and #264: - validate.py: HTTP lifecycle validation through serve_batched.build - benchmark.py, benchmark_server.py, atom_server.py: warm native/dp2/pd HTTP benchmark with token parity checks and external-server configs - heldout_quality.py and frozen fixtures for four models (fixtures/) - tests moved to opt_prime/tests so CI collects them Adjustments: atom_server.py module overrides are optional (default to the in-tree modules); heldout_quality.py reads .json.gz fixtures and accepts --model for the request name; the Qwen3-0.6B fixture records the Hub name instead of a local cache path (manifest hash updated; input IDs and per-case hashes unchanged). Run outputs are git-ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 30, 2026
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.
Background
The HTTP validation, benchmark and held-out quality scripts for PD serving were developed on several experiment branches (#243, #252, #264) together with evidence, status files and forked runtime modules. This PR lands only the reusable harness on
optimus-rm(which already has the serving flags from #281), so it can be run against the in-tree serving stack and its pure-Python parts are covered by CI.Changes
New directory
opt_prime/examples/pd/http_matrix/:validate.pyexp/240-gpu-live-pd),opt_prime/examples/pd/http_matrix/validate.py, unchangedbenchmark.py,benchmark_server.pyexp/248-heterogeneous-http), same paths, unchangedatom_server.py--batching,--http-module,--pd-moduleare now optional (default: the in-tree modules) instead of requiredopt_prime/tests/test_benchmark.pyhttp_matrix/test_benchmark.py, moved; importsbenchmark.pyby file path so CI collects it; the CLI test writes intotmp_pathheldout_quality.pyexp/263-heldout-quality), same path;runnow reads.json.gzfixtures directly and takes--modelto set the request model name (input IDs and hashes unchanged)opt_prime/tests/test_heldout_quality.py--modelrunner testfixtures/quality263-{gemma,koni,qwen06b,qwen4b}-fixtures.json.gz,fixtures/fixture-manifest.jsonhttp_matrix/evidence263/, moved. The Qwen3-0.6B file'smodelfield held a local HF cache path; it now readsQwen/Qwen3-0.6B, and the manifest SHA-256 for that file is updated (ed8adc8f...->5fd8133a...). Token IDs and per-caseinput_sha256are unchanged.README.md.gitignoreevidence*/,*.json(exceptfixtures/fixture-manifest.json),*.jsonl,*.logNot included: all
evidence*/outputs,STATUS.md,experiments/,.research/,diagnose_*,trace_*,forced_prefix_*,live_gpu_faults.py,atom_pipeline.py, and any forked copy ofaccel/serve/llmd.py.Every import was checked against
optimus-rm(4dd30cf):opt_prime.accel.serve.llmd.serve_stage,opt_prime.accel.serve.batched.{BatchedOwner,BatchedService},opt_prime.accel.pd.pd_batching.SubprocessPrefillWorker,opt_prime.accel.platforms.atom.engine.AtomRblnEngineandexamples/pd/serve_batched.buildexist, and theSimpleNamespaceinvalidate.pycovers every attributebuildreads.optimum-rbln(ATOM) andtransformersare imported lazily insidemain()where they are only needed at run time.Verification
python3 examples/pd/http_matrix/atom_server.py --helpruns on a host without ATOM.fixture-manifest.json, and every case'sinput_sha256matches its token IDs (checked by the new test).Compatibility and limits
validate.py,benchmark.pyneed CUDA GPUs (benchmark.py --mode pd/dp2assumescuda:0andcuda:1);atom_server.pyneedsoptimum-rblnand exactly one visible/dev/rbln*device.local_files_only=True.model, sorunneeds--model <served name>.heldout_quality.pymeasures structured-answer adherence on 36 synthetic cases per model, not general quality.Related Issue
Closes #240, Closes #263
Refs #211, #248
Supersedes the harness parts of #213, #216, #243, #251, #252, #264 (those PRs are left open and unchanged).
🤖 Generated with Claude Code