Amazon Ergo vLLM Benchmark: Test Fixed and Adaptive DSpark Verification
Run an Amazon Ergo vLLM benchmark on eight B300 GPUs, compare fixed and adaptive DSpark at two request rates, and verify that rollback restores the baseline.
Your coding service needs to start streaming promptly when a developer asks for help and keep generating when many developers submit work together. A server can emit more tokens per second under load while leaving some users waiting longer for their first token. This Amazon Ergo vLLM benchmark tests whether adaptive DSpark verification improves aggregate output throughput while meeting your first-token and decode-latency budgets.
You need an isolated node with eight NVIDIA B300 GPUs, permission to restart the test server, access to the vllm/vllm-openai:amazon-fmr-ergo image and access to both model checkpoints. The launch commands run inside the serving container. Use a second shell that can reach the server at 127.0.0.1:8000, such as another shell inside the same container. Keep the resolved image, target and draft snapshots, tokenizer and client build consistent throughout the comparison. vLLM Ergo deployment recipe
The test exercises streamed text completions with short synthetic inputs. The result is four benchmark files that compare verification modes at two arrival rates, plus a fifth file that checks recovery to the fixed setting. Engineers working with hosted Ergo can test model selection separately. Test a Second Model in the Same AgentCore Session
Set the two request rates and the acceptance rule
- Use 2 requests per second for the low-rate sample and 60 requests per second for the higher-rate sample. Each cell schedules 300 measured requests. Use the random dataset with seed 42, nominal input length 1,024, requested output length 256, zero length variation and zero added shared-prefix tokens. Reusing the seed on the same client build keeps the synthetic dataset comparable across launches. Check the actual token counts in the results because the fixture specifies lengths at the client and the server receives and tokenizes the text it is sent. vLLM bench serve argument reference
- Set the acceptance thresholds before seeing the results. In this example, adaptive must stay at or below 300 ms P99 time to first token (TTFT) and 12 ms/token P99 time per output token (TPOT) at 2 requests per second. At 60 requests per second, the limits are 1,500 ms and 35 ms/token. Require 300 successes in each cell and comparable token counts within each pair. At the higher rate, require at least 8% more output tokens per second than fixed. At the low rate, allow at most a 10% increase in either latency percentile and a 5% drop in output throughput. Use these thresholds to follow the example, then substitute your service budgets before running your own comparison.
- Interpret each offered rate in terms of the work it schedules. With 256 generated tokens per request, 2 requests per second offers about 512 output tokens per second. If both servers keep pace, elapsed throughput can be similar even when one serves requests faster. The low-rate latency columns can show that difference. At 60 requests per second, nominal output demand is 15,360 tokens per second. The measured run has a finite arrival window and includes the time it takes for the last requests to finish. Use the higher rate to test a burst. The number of concurrent requests depends on when requests arrive and how long they remain outstanding. vLLM Benchmark CLI load patterns
DSpark proposes eight candidate tokens per pass using a separate draft checkpoint. The target verifies the proposed continuation. Adaptive verification can trim low-confidence tail tokens when batches become compute-bound. Both launches retain the eight-token draft setting. The highlighted tail in the masthead shows one possible shorter verification span. If you still need to choose a speculative drafting method for local serving, that is a separate comparison. Amazon FMR DSpark model card · llama.cpp Speculative Decoding for Local Coding Models
In its December 1, 2026 serving post, vLLM reported 12,590 output tokens per second with fixed verification and 14,368 with adaptive at concurrency 256 on SPEED-Bench Qualitative, using eight B300s and the MXFP4 target. At concurrency one, the reported per-user decode speeds were 300.9 and 301.9 tokens per second. These figures describe the publisher’s workload and concurrency settings. The local benchmark schedules arrivals at fixed target rates and uses different prompts. Evaluate its own throughput, P99 TTFT and P99 TPOT against the budgets above. vLLM’s December 1 Ergo serving post

Launch both modes with the same B300 recipe
- Connect to the dedicated Ergo container with all eight B300s available. Run the fixed command in the foreground and retain its launch output. The B300 recipe runs attention with tensor parallelism across eight GPUs and distributes routed experts across those same GPUs. The target is the released MXFP4
Amazon-FMR/Ergocheckpoint. Keep the selective FP8 KV cache settings and--draft-kv-poolin both commands so the draft layers retain the separate KV cache pool specified by the recipe. vLLM B300 recipe and checkpoint notes
export VLLM_USE_RUST_FRONTEND=1
vllm serve Amazon-FMR/Ergo \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--moe-backend deep_gemm_mega_moe \
--attention-backend FLASHINFER \
--attention-config '{"disable_flashinfer_q_quantization":true,"use_trtllm_attention":true,"flashinfer_balanced_decode":true,"flash_attn_balanced_decode":true}' \
--kv-cache-dtype fp8 \
--kv-cache-dtype-skip-layers sliding_window \
--draft-kv-pool \
--enable-batch-sharded-sampling \
--reasoning-parser ergo \
--tool-call-parser ergo --enable-auto-tool-choice \
--speculative-config '{"method":"dspark","model":"Amazon-FMR/Ergo-dspark","num_speculative_tokens":8,"attention_backend":"FLASH_ATTN","draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
- Use the adaptive command after the two fixed measurements. Stop the foreground server with Ctrl+C and give its workers time to exit before starting the next process. The adaptive command adds
enable_adaptive_verificationto the same speculative configuration. vLLM uses fixed K=8 in its default recipe to keep FlashInfer balanced decode active for mixed-length serving with contexts up to one million tokens. Here, both commands request the same attention settings, so the comparison covers the effect of the adaptive opt-in on this recipe, including any change in runtime behavior it causes. vLLM adaptive opt-in and default recipe
export VLLM_USE_RUST_FRONTEND=1
vllm serve Amazon-FMR/Ergo \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--moe-backend deep_gemm_mega_moe \
--attention-backend FLASHINFER \
--attention-config '{"disable_flashinfer_q_quantization":true,"use_trtllm_attention":true,"flashinfer_balanced_decode":true,"flash_attn_balanced_decode":true}' \
--kv-cache-dtype fp8 \
--kv-cache-dtype-skip-layers sliding_window \
--draft-kv-pool \
--enable-batch-sharded-sampling \
--reasoning-parser ergo \
--tool-call-parser ergo --enable-auto-tool-choice \
--speculative-config '{"method":"dspark","model":"Amazon-FMR/Ergo-dspark","num_speculative_tokens":8,"attention_backend":"FLASH_ATTN","draft_sample_method":"probabilistic","rejection_sample_method":"block","enable_adaptive_verification":true}'
- Wait for initialization and tie each result file to the launch that produced it. An exited process or a startup exception leaves the cell without a result. If you see an address-in-use error, check whether the previous server is still responding before you retry. A successful probe alone cannot establish which launch served it. Save the foreground output and any effective configuration the server logs. If fixed fails too, check image identity, GPU availability and checkpoint access. If only adaptive fails, keep the exact error, restore fixed and run the recovery cell below. vLLM release launch instructions
The benchmark uses the vllm client backend with /v1/completions. The server commands retain the recipe’s chat reasoning and tool-call parser settings. Services that rely on structured tool calls can verify those behaviors with a separate functional test. vLLM Benchmark CLI online serving example · Verify vLLM Tool Calling Before Connecting a Coding Agent
Run one benchmark cell per server start
- In the client shell, work from a writable directory for this attempt and define the function below. Check the local help first. The dedicated server image and the online benchmark reference can follow different release schedules. If the bundled client lacks a required option, use a compatible client build with the documented syntax in an environment that can reach the endpoint. Keep that build and its tokenizer consistent for all five invocations. vLLM bench serve argument reference
vllm bench serve --help
ergo_bench() {
vllm bench serve \
--backend vllm --host 127.0.0.1 --port 8000 \
--endpoint /v1/completions --model Amazon-FMR/Ergo \
--dataset-name random --seed 42 \
--random-input-len 1024 --random-output-len 256 \
--random-range-ratio 0 --random-prefix-len 0 --ignore-eos \
--num-prompts "$2" --request-rate "$1" --burstiness 1 \
--ready-check-timeout-sec 600 --num-warmups 5 \
--percentile-metrics ttft,tpot --metric-percentiles 99 \
--save-result --save-detailed --result-filename "$3"
}
- Start fixed and run
ergo_bench 2 300 fixed-low.json. Wait for the summary and record the JSON filename. Stop the server, start fixed again and runergo_bench 60 300 fixed-high.json. Both invocations use the readiness probe and five warmups before the measured requests. If restarting the service takes the client shell with it, start a new shell, redefine the function and use the same results location with the earlier files intact. vLLM bench serve readiness, warmup and result options - Stop fixed and start adaptive. Run
ergo_bench 2 300 adaptive-low.json, then restart adaptive and runergo_bench 60 300 adaptive-high.json. The function leaves client concurrency uncapped so the client can continue offering work when requests queue on the server. Finite rate and--burstiness 1select Poisson arrivals. Use identical rate and burstiness settings within each pair. The actual dispatch and completion times can vary. vLLM Benchmark CLI load patterns - Check
Successful requests,Benchmark duration (s), total input and generated tokens, output token throughput, P99 TTFT and P99 TPOT in the summary. The command asks the backend to ignore EOS and generate up to the requested length. At 300 requests and 256 output tokens each, a full-length cell would generate 76,800 tokens. Use that figure as a cross-check, then inspect the actual request lengths and errors in the detailed JSON. A fast cell that did substantially less work needs diagnosis before it can be compared with its partner. vLLM Benchmark CLI output example · vLLM bench serve sampling and detailed output options
A fresh server process keeps prompts from previous measured cells out of its in-memory prefix cache. With a repeated seed, reusing a process could give the later mode an artificial prefill advantage. The readiness probe and warmups themselves use the first request with unique cache salts according to the CLI reference. The readiness probe falls back to an unsalted request on HTTP 400 or 422. Warmups fall back when none succeeds and at least one request gets one of those validation errors. Check the client output for this behavior and use the same startup and warmup routine for both modes. If only one mode falls back and the cache states differ at measurement time, repeat the pair under equivalent conditions before attributing the TTFT difference to verification. vLLM prefix-cache guidance · vLLM readiness and warmup arguments
Within a measured cell, prefix reuse can still occur. If the build exposes vllm:prefix_cache_hits and vllm:prefix_cache_queries, compare changes over equivalent intervals within each process. These counters count cached and queried tokens respectively. A cumulative reading can also include startup probes and warmups, so use a pre-measurement sample where available or compare the corresponding window in your metrics timeline. A filesystem cache can remain warm across server restarts. Keep both sets of weights staged throughout and track initialization time separately from the request benchmark. vLLM production metrics
Read the tail and identify saturation
- Compare each adaptive result with fixed at the same offered rate. TTFT runs from sending the request to receiving the first streamed output. Queueing and prefill can both increase it. TPOT is calculated per request by subtracting TTFT from end-to-end latency and dividing the remainder by the number of output tokens after the first. It measures decode time amortized over output tokens. A single DSpark stream event can carry several accepted tokens, so time between stream events measures a different quantity. vLLM Benchmark CLI latency definitions
- If the higher-rate cell takes a long time to finish after arrivals stop, look at server queue depth during arrivals. Use
curl http://127.0.0.1:8000/metricsfrom the same network namespace, or use an existing metrics dashboard. Look forvllm:num_requests_runningandvllm:num_requests_waitingif the image exposes them. Sustained growth in waiting requests, together with rising TTFT and a long drain, supports a saturation diagnosis. An isolated spike can reflect an arrival burst. Look for changes invllm:num_preemptionsand highvllm:kv_cache_usage_percto investigate whether cache pressure contributes to the backlog. The queue readings alone cannot identify the limiting resource. vLLM production metrics - Keep the finite-burst result tied to the conditions of the run. At 60 requests per second, 300 arrivals span roughly five seconds on average, so take queue observations while the client is sending requests. Post-run snapshots can miss the backlog. If the queue builds throughout that window, 300 completions still allow a comparison of how quickly the two modes finish the same burst. To test a lower operating point, run
ergo_bench 45 300 fixed-45.jsonandergo_bench 45 300 adaptive-45.jsonon fresh processes in their respective modes. Watch whether the waiting gauge stabilizes and apply the latency limits appropriate to that rate. vLLM Benchmark CLI load patterns - If the client reports fewer than 300 successes, use the detailed JSON and foreground logs to identify the failure. A rejected launch is a configuration failure. A healthy launch followed by failed completions needs request-path diagnosis. For example, check whether the recorded errors indicate request validation failures or dropped connections, and whether failures occur immediately or only after the queue builds. Preserve the incomplete result with its error details before retrying under a new filename. vLLM bench serve detailed results · You Can’t Replay What You Can’t See
Suppose adaptive completes the same output work 10% faster in aggregate but its P99 TTFT reaches 1,700 ms. The higher-rate cell misses the example’s 1,500 ms limit even if P99 TPOT improves. If TTFT improves and TPOT stays nearly flat, check the waiting gauge. A shorter queue can explain a better streaming start without a comparable change in per-request decode time. Record that distinction alongside the result so the decision reflects the delay users experience.
Calculate the gain and rehearse the return to fixed
The results below are illustrative. Throughput is output tokens divided by elapsed benchmark seconds. All measurements and the recovery outcome are hypothetical. The higher-rate rows represent the same offered rate and the same full output-token count. At 76,800 generated tokens per row, the example implies about 6.98 seconds for fixed and 6.35 seconds for adaptive, including the drain.
| Input | Action | Expected result |
|---|---|---|
task:ergo-dspark-01 fixed low, seed 42, 300 prompts, 2 req/s |
Start fixed fresh and run ergo_bench 2 300 fixed-low.json. |
Illustrative 300/300 successful, 500 output tok/s, P99 TTFT 180 ms, P99 TPOT 8.0 ms/token. |
task:ergo-dspark-01 adaptive low, identical fixture and rate |
Start adaptive fresh and run ergo_bench 2 300 adaptive-low.json. |
Illustrative 300/300 successful, 501 output tok/s, P99 TTFT 189 ms, P99 TPOT 8.2 ms/token. Both latency increases stay within 10% and both absolute limits pass. |
task:ergo-dspark-01 fixed high, seed 42, 300 prompts, 60 req/s |
Start fixed fresh and run ergo_bench 60 300 fixed-high.json. |
Illustrative 300/300 successful, 76,800 output tokens at 11,000 output tok/s, P99 TTFT 1,200 ms, P99 TPOT 9.0 ms/token. |
task:ergo-dspark-01 adaptive high, identical fixture and rate |
Start adaptive fresh and run ergo_bench 60 300 adaptive-high.json. |
Illustrative 300/300 successful, 76,800 output tokens at 12,100 output tok/s, P99 TTFT 1,050 ms, P99 TPOT 8.5 ms/token. Gain is 10% and both absolute limits pass. |
task:ergo-dspark-01 fixed recovery, seed 42, 300 prompts, 2 req/s |
Stop adaptive, launch the original fixed command and run ergo_bench 2 300 fixed-recovery.json. |
Illustrative 300/300 successful, 498 output tok/s, P99 TTFT 184 ms, P99 TPOT 8.1 ms/token. Each measure is within 10% of the first fixed low-rate run. |
- Calculate the higher-rate gain as
(adaptive / fixed − 1) × 100. The filled example gives(12,100 / 11,000 − 1) × 100 = 10%. Low-rate throughput rises by 0.2%. Low-rate TTFT rises by 5% and TPOT by 2.5%. With comparable token counts, all four cells meet the example criteria. If your higher-rate adaptive result misses either latency limit or your low-rate comparison exceeds a guardrail, keep fixed pending diagnosis even when the throughput calculation looks favorable. - Repeat the four cells with new filenames and reverse the mode order within each rate to see whether the result follows the mode or the run order. Keep fresh starts, identical inputs and the same warmup treatment. Compare the pairs independently. With 300 observations, the slowest few requests can move P99 enough to change a borderline decision. Inspect those requests in the saved details and require the gain and guardrails to hold in both comparisons before advancing to a representative coding workload. vLLM bench serve detailed result options
- Verify recovery on your node even if adaptive won. Stop the adaptive process and start the original fixed command with its original JSON. Run
ergo_bench 2 300 fixed-recovery.jsonon the restored server. The example calls for 300 successes, both absolute low-rate latency budgets and all three measurements within 10% of the original fixed low-rate run. With the table’s baseline, that means 450–550 output tok/s, 162–198 ms P99 TTFT and 7.2–8.8 ms/token P99 TPOT. If the restored server responds but misses the band, check the running configuration, client build and other traffic before repeating recovery on a fresh process. vLLM fixed DSpark configuration
Keep the selected mode with the two launch commands, measured files, fixture settings and recovery result. If adaptive earns a follow-up, use representative coding requests in both modes and include the repeated repository prefixes and context lengths that drive your service’s load. The short random fixture controls lengths and repeatability, while a coding workload can reveal how the modes behave with different cache hit rates and draft acceptance. For deployment decisions about cost or developer productivity, measure completed coding tasks separately from output tokens. vLLM Benchmark CLI dataset guidance · Cost per Completed Task

