Repository navigation
Open
Labels
enhancementNew feature or request
Description
Parent RFC: #359
Summary
Establish shared conformance and performance evidence for the native, gRPC, and HTTP inference adapters. Capture the HTTP baseline early and use integrated results to determine migration readiness.
Acceptance criteria
- Run shared Responses/Messages and representative harness scenarios for each declared supported profile, covering streaming/non-streaming output, reasoning, client-executed function calls, built-in tool rounds, continuation, forks, and compaction.
- Verify equivalent model-visible input and public semantics, usage, cancellation, bounded slow-consumer behavior, and failure handling across supported adapters.
- Extend the existing Benchmark KV-affine Responses routing and token artifacts #74 benchmark suite for native-versus-HTTP-versus-gRPC comparisons, including long contexts, concurrent load, tool pauses, event lag, eviction, and worker loss.
- Measure TTFT, end-to-end and tail latency, CPU, memory, queue occupancy, transfer volume, cache reuse, selected endpoints, and recovery/fallback outcomes.
- Separate routing/cache-residency benefits from transport, rendering, and tokenization benefits; report neutral and negative results with reproducible versions/configuration and raw samples.
- Publish supported capability/model/version coverage, material gaps, and migration criteria after integrated validation of Implement native inference using shared vLLM libraries #362-Package and launch the integrated serving modes #366. Keep existing paths available until the agreed criteria are met.
Dependencies
No implementation prerequisite.
Baseline and test-harness work can start immediately. Final acceptance requires #362, #363, #364, #365, and #366; each implementation issue includes its own tests.
Related work and scope
Reuse #74 for KV-routing/token-artifact benchmark methodology and #211 for provider-conformance recordings. Coordinate #314's capability matrix and #110's deployment verification. This issue adds cross-adapter integration and migration evidence instead of starting a competing benchmark framework.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
Measure agentic-api's cost in front of the engine
StevenWang-CY commentedon Oct 22, 2026
I'd like to take the HTTP-baseline part of this. Here is a first baseline from the existing
response_providersuite, run outside the reference setup.Setup
Qwen/Qwen3-4B-Instruct-2507-FP8on one RTX 5060 Ti 16 GB, with--enable-auto-tool-choice --tool-call-parser hermes, priority scheduling and prefix caching. The gateway host reaches it through an SSH local forward (+0.45 ms per small request), and so does the direct arm.response_provider --provider all --seed 20261022on separate cores. All five arms start at one barrier and run at once, so each row below saw the same engine load.Transport workload. 4 tool rounds per turn, 10 turns per session. Per-turn latency, p50 / p95 in ms:
History rehydration (depths 1, 5, 10, 25). With this 4B model every arm fails the recall at turn 2 (success 100 / 40 / 20 / 8%). That is identical across arms, so it confirms equal behavior but says nothing about depth; it needs a larger model.
What this suggests. On this setup the HTTP adapter's latency cost is below the noise even at 50 concurrent tool loops, and the inference server dominates. The comparisons against #362–#366 should therefore look at CPU, memory and queueing under load, and at long contexts, rather than at latency at this scale.
Next (glad to rescope):
The exact script, each run's
summary.mdand the resource analysis are here. The per-turnturns.csvandrun.jsonfiles are available on request, and I can land the runner inscripts/if that helps.benchmark: sweep SESSIONS and sample the gateway's CPU and memory (#478)