We’re reproducing a public InferenceX / SemiAnalysis-style agentic recipe for deepseek-ai/DeepSeek-V4-Pro-0813 on 8× B300

B300×8 DeepSeek-V4-Pro-0813 (TP1×DP8+EP+DSpark): AgentX ITL ~11 ms @ C1 but ~33–39 ms @ C32/C96 — looking for load-path guidance

Summary

We’re reproducing a public InferenceX / SemiAnalysis-style agentic recipe for deepseek-ai/DeepSeek-V4-Pro-0813 on 8× B300.

  • At aiperf concurrency 1, ITL is ~11.4 ms (good).
  • At C32 / C96, ITL is ~39 / ~33 ms.
  • Published SA-style AgentX numbers on a similar recipe are ~14.6 ms ITL @ C128.

So this does not look like “base decode kernels are 2× slow.” It looks like a concurrency / load-path regression (graphs, DP/EP, batching, or speculative accept under load). Seeking maintainers’ perspective on where to dig next, or whether I’m looking in the wrong direction altogether.


Hardware / software

Item Value
GPUs 8× NVIDIA B300 SXM6 AC, 275040 MiB each
Driver 580.178.04
Image vllm/vllm-openai:nightly-dev-x86_64-cu13.0.1-20ebb28
Image digest sha256:dfdee3dbba3d8d30554d90f723a3a18dac562f8442f2c2e8f81804acd1ec673f
Reported version 0.17.2rc1.dev6312+g20ebb2850 (approx from tag)
Model deepseek-ai/DeepSeek-V4-Pro-0813
Recipe reference InferenceX dsv4/vllm/b300-fp4-mtp/agentic.yaml (zip_override_dep8)

Engine docker run (main A/B baseline: numa + NVLS, C96-shaped)

This is the serve we used for the C1/C4/C32 AgentX curve below.

export HF_TOKEN=...   # required
export VLLM_IMAGE=vllm/vllm-openai:nightly-dev-x86_64-cu13.0.1-20ebb28
NAME=dsv4-b300-vllm-dep8-c96-numa-nvls
docker rm -f "$NAME" 2>/dev/null || true

docker run -d --name "$NAME" \
  --gpus all --ipc=host --network host \
  --cap-add SYS_NICE \
  -v "$HOME/.cache/huggingface:/hf_hub_cache" \
  -e HF_HOME=/hf_hub_cache -e HF_TOKEN="${HF_TOKEN}" \
  -e VLLM_USE_V2_MODEL_RUNNER=1 \
  -e VLLM_ENGINE_READY_TIMEOUT_S=7200 \
  -e VLLM_PREFIX_CACHE_RETENTION_INTERVAL=32768 \
  -e VLLM_DSV4_MEGA_FP8_COMBINE=1 \
  -e NCCL_NVLS_ENABLE=1 \
  -e VLLM_USE_RUST_FRONTEND=1 \
  -e TORCH_CUDA_ARCH_LIST=10.0 \
  -e PYTHONNOUSERSITE=1 \
  -e VLLM_FLOAT32_MATMUL_PRECISION=high \
  -e PYTORCH_ALLOC_CONF=expandable_segments:True \
  -e PYTHONHASHSEED=42 \
  --ulimit memlock=-1 --ulimit stack=67108864 \
  "$VLLM_IMAGE" \
  deepseek-ai/DeepSeek-V4-Pro-0813 \
  --served-model-name deepseek-ai/DeepSeek-V4-Pro-0813 \
  --host 0.0.0.0 --port 8888 \
  --numa-bind \
  --tensor-parallel-size 1 --data-parallel-size 8 \
  --enable-expert-parallel --enable-ep-weight-filter \
  --moe-backend deep_gemm_amxf4_mega_moe \
  --trust-remote-code \
  --no-enable-flashinfer-autotune --no-disable-hybrid-kv-cache-manager \
  --kv-cache-dtype fp8 --block-size 256 --max-model-len 1048576 \
  --gpu-memory-utilization 0.92 --kv-cache-memory-bytes 105000000000 \
  --max-num-seqs 24 --max-num-batched-tokens 8360 \
  --prefill-schedule-interval 16 --long-prefill-token-threshold 512 \
  --attention-config '{"indexer_kv_dtype":"mxfp4","backend":"FLASHINFER_MLA_SPARSE_DSV4","use_prefill_query_quantization":true}' \
  --speculative-config '{"method":"dspark","num_speculative_tokens":6,"draft_sample_method":"probabilistic"}' \
  --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[6,7,12,14,18,21,24,28,30,35,36,42,48,49,54,56,60,63,66,70,72,77,78,84,90,91,96,98,102,105,108,112,114,119,120,126,132,133,138,140,144,147,154,161,168]}' \
  --kv-transfer-config '{"kv_connector":"SimpleCPUOffloadConnector","kv_role":"kv_both","kv_connector_extra_config":{"cpu_bytes_to_use_per_rank":356125000000,"enable_cross_layers_blocks":"true","lazy_offload":false}}' \
  --tokenizer-mode deepseek_v4 --tool-call-parser deepseek_v4 \
  --enable-auto-tool-choice --reasoning-parser deepseek_v4 \
  --disable-uvicorn-access-log

Notes from bring-up logs (may be relevant):

  • SimpleCPUOffloadConnector comes up in eager mode, ~331.67 GB/rank CPU KV.
  • We’ve seen CUDASymmetricMemory / multicast init warnings on ranks on this host (NVLS path historically flaky until fabric/multicast was healthy).

Frontend (vLLM router for intra-node DP affinity)

AgentX traffic hits :8000 (router) → engine :8888 with DP=8 sticky affinity.

docker rm -f dsv4-b300-vllm-router-dep8 2>/dev/null || true

docker run -d --name dsv4-b300-vllm-router-dep8 \
  --network host \
  --restart unless-stopped \
  python:3.12-slim-bookworm \
  bash -lc '
    set -euo pipefail
    pip install --quiet --no-cache-dir "vllm-router==0.1.14"
    exec vllm-router \
      --host 0.0.0.0 \
      --port 8000 \
      --worker-urls http://127.0.0.1:8888 \
      --policy consistent_hash \
      --intra-node-data-parallel-size 8 \
      --api-key dp-affinity \
      --prometheus-host 127.0.0.1 \
      --prometheus-port 18000 \
      --request-timeout-secs 14400 \
      --disable-retries
  '

We previously verified engine-direct :8888 ITL ≈ router :8000 ITL, so this does not look like a sticky-router tax.


Benchmark client (aiperf AgentX)

  • Scenario: inferencex-agentx-mvp
  • Dataset: semianalysis_cc_traces_weka_062126

Exact CLI used for the concurrency curve (C1 example; change --concurrency / --benchmark-duration):

aiperf profile \
  --scenario inferencex-agentx-mvp \
  --url http://127.0.0.1:8000 \
  --endpoint /v1/chat/completions \
  --endpoint-type chat \
  --streaming \
  --model deepseek-ai/DeepSeek-V4-Pro-0813 \
  --tokenizer deepseek-ai/DeepSeek-V4-Pro-0813 \
  --tokenizer-trust-remote-code \
  --concurrency 1 \
  --benchmark-duration 600 \
  --stats-interval 30 \
  --random-seed 42 \
  --failed-request-threshold 0.1 \
  --trajectory-start-min-ratio 0.25 \
  --trajectory-start-max-ratio 0.75 \
  --warmup-requests-per-lane 10 \
  --agentic-warmup-grace-period 3600 \
  --unsafe-override \
  --trace-idle-gap-cap-seconds 300 \
  --use-server-token-count \
  --no-gpu-telemetry \
  --num-dataset-entries 393 \
  --slice-duration 1.0 \
  --server-metrics http://127.0.0.1:8000/metrics \
  --output-artifact-dir ./aiperf_artifacts_c1 \
  --public-dataset semianalysis_cc_traces_weka_062126 \
  --warmup-concurrency-ramp-duration 120

Scenario auto-injects (from aiperf logs):

  • timing_mode=agentic_replay
  • extra_inputs.ignore_eos=true
  • --cache-bust=first_turn_prefix
  • --system-idle-gap-cap-seconds=10

Caveat: for C1/C4 we used 600s; the scenario warns duration should be ≥900s for steady state / KV offload. C32 used 900s. The high-concurrency scoreboard runs we care about are typically C96/C128 @ ≥900–1800s.

Metric source: profile_export_aiperf.json → inter_token_latency.avg, output_token_throughput_per_user.avg.


Results (same engine recipe as the docker run above)

Conc Duration ITL avg ITL p50 tok/s/user TTFT avg Notes
1 600s 11.36 ms 11.44 ms 97.8 ~7.9 s peak_open=1; ~29 reqs
4 600s 18.43 ms — 88.4 ~5.5 s
32 900s 39.19 ms — 38.0 ~16.0 s
96 ~30 min prior run 32.73 ms — 36.0 ~18 s numa+NVLS A/B cell
SA published (similar recipe) C128 ~14.6 ms — ~70 — target

Interpretation: C1 is already better than SA’s high-concurrency ITL. The gap opens as concurrency rises → prioritize load-path, not single-stream kernel speed.


A/Bs already tried (small or ruled out)

Change Effect on AgentX ITL
Omit SimpleCPUOffloadConnector (HBM-only) ~3–4 ms improvement (still ~33 ms) — not the gap
Enable --numa-bind small
Enable NCCL_NVLS_ENABLE=1 (after host multicast healthy) ~5 ms total vs pre-flag baseline (~35 → ~33) — not the gap
Disable DSpark AgentX unusable (ITL blows up / tok/s/user collapses) — required
Router vs engine-direct ≈ same ITL

Toy microbench (streaming chat, short count prompt, thinking on/off) on the same DEP8 engine was ~29–39 ms even at C1/C4 — not interchangeable with AgentX C1 (AgentX C1 is much better). Prefer the AgentX numbers for this discussion.


Currently in flight: default CUDA graphs

Hypothesis: the long explicit cudagraph_capture_sizes list is a poor fit for real AgentX batch shapes under load.

Diff vs baseline:

  • --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' (no cudagraph_capture_sizes)
  • C128-shaped: --max-num-seqs 32 --max-num-batched-tokens 8416
  • This cell currently has NCCL_NVLS_ENABLE=0 / no --numa-bind — noted as a purity caveat

AgentX C128 on that serve was running when this post was drafted.

# graphs-default serve (abridged diff from baseline)
docker run -d --name dsv4-b300-vllm-dep8-c128-graphs-default \
  --gpus all --ipc=host --network host \
  -v "$HOME/.cache/huggingface:/hf_hub_cache" \
  -e HF_HOME=/hf_hub_cache -e HF_TOKEN="${HF_TOKEN}" \
  -e VLLM_USE_V2_MODEL_RUNNER=1 \
  -e VLLM_ENGINE_READY_TIMEOUT_S=7200 \
  -e VLLM_PREFIX_CACHE_RETENTION_INTERVAL=32768 \
  -e VLLM_DSV4_MEGA_FP8_COMBINE=1 \
  -e NCCL_NVLS_ENABLE=0 \
  -e VLLM_USE_RUST_FRONTEND=1 \
  -e TORCH_CUDA_ARCH_LIST=10.0 \
  -e PYTHONNOUSERSITE=1 \
  -e VLLM_FLOAT32_MATMUL_PRECISION=high \
  -e PYTORCH_ALLOC_CONF=expandable_segments:True \
  -e PYTHONHASHSEED=42 \
  --ulimit memlock=-1 --ulimit stack=67108864 \
  vllm/vllm-openai:nightly-dev-x86_64-cu13.0.1-20ebb28 \
  deepseek-ai/DeepSeek-V4-Pro-0813 \
  --served-model-name deepseek-ai/DeepSeek-V4-Pro-0813 \
  --host 0.0.0.0 --port 8888 \
  --tensor-parallel-size 1 --data-parallel-size 8 \
  --enable-expert-parallel --enable-ep-weight-filter \
  --moe-backend deep_gemm_amxf4_mega_moe \
  --trust-remote-code \
  --no-enable-flashinfer-autotune --no-disable-hybrid-kv-cache-manager \
  --kv-cache-dtype fp8 --block-size 256 --max-model-len 1048576 \
  --gpu-memory-utilization 0.92 --kv-cache-memory-bytes 105000000000 \
  --max-num-seqs 32 --max-num-batched-tokens 8416 \
  --prefill-schedule-interval 16 --long-prefill-token-threshold 512 \
  --attention-config '{"indexer_kv_dtype":"mxfp4","backend":"FLASHINFER_MLA_SPARSE_DSV4","use_prefill_query_quantization":true}' \
  --speculative-config '{"method":"dspark","num_speculative_tokens":6,"draft_sample_method":"probabilistic"}' \
  --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' \
  --kv-transfer-config '{"kv_connector":"SimpleCPUOffloadConnector","kv_role":"kv_both","kv_connector_extra_config":{"cpu_bytes_to_use_per_rank":356125000000,"enable_cross_layers_blocks":"true","lazy_offload":false}}' \
  --tokenizer-mode deepseek_v4 --tool-call-parser deepseek_v4 \
  --enable-auto-tool-choice --reasoning-parser deepseek_v4 \
  --disable-uvicorn-access-log


Spec decode (earlier scrape on this recipe family)

Prometheus vllm:spec_decode_*_total (after traffic): roughly accept_len ~4.6 / 6, ~76% token accept — so DSpark is alive. We have not yet fully correlated accept rate vs concurrency for the C1→C32 cliff; that’s on our list.


Questions for vLLM / anyone tuning this stack

  1. For TP1×DP8+EP + DSpark + FULL_AND_PIECEWISE on Blackwell, what typically dominates per-user ITL growth from C1→C32→C128 — CUDA graph capture-size mismatch, DP/EP collectives, scheduler batching (max-num-seqs / max-num-batched-tokens), or speculative accept drop under load?
  2. Is the long InferenceX cudagraph_capture_sizes list still recommended for AgentX, or should we prefer engine defaultcapture sizes?
  3. Known impact of CUDASymmetricMemory / multicast init failures on DP decode latency on B300?
  4. Recommended signals to distinguish graph thrash vs DP sync vs spec accept drop (specific vLLM metrics / log lines / Nsight views)?
  5. Anything to verify about the public 20ebb28 digest vs the binaries used for published B300 AgentX numbers?
  6. For DP=8 AgentX, is vllm-router consistent_hash + intra-node DP still the recommended front door, or is there a better affinity path in-tree?

Happy to share full profile_export_aiperf.json, server metrics exports, and container logs. Thanks for your support!

Your ITL increase from ~11 ms (C1) to ~33–39 ms (C32/C96) on B300×8 with TP1×DP8+EP+DSpark is most likely due to data parallel (DP) and expert parallel (EP) collective communication overhead, not base kernel speed or speculative acceptance rate. At high concurrency, DP/EP collectives (especially all-reduce/all-to-all) can dominate decode step time, and CUDA graph capture-size mismatches can further degrade performance if batch shapes under load diverge from captured sizes. Published AgentX numbers (~14.6 ms ITL @ C128) likely reflect a more optimal DP/EP communication path or better CUDA graph coverage for real batch shapes. The long explicit cudagraph_capture_sizes list is not always optimal; engine defaults often adapt better to real-world batch distributions, especially for AgentX-style workloads.

To distinguish between graph thrash, DP/EP sync, and speculative accept drop, use vLLM’s Prometheus metrics: vllm:spec_decode_num_accepted_tokens_total (spec acceptance), vllm:request_decode_time_seconds (decode phase), and vllm:inter_token_latency_seconds (ITL). For DP/EP bottlenecks, look for high collective kernel occupancy in Nsight or torch profiler traces, and check for DP/EP-related warnings or errors in logs (e.g., CUDASymmetricMemory/multicast issues). For affinity, vllm-router with consistent_hash and intra-node-data-parallel-size is still recommended for DP=8. For further tuning, consider increasing max-num-seqs/max-num-batched-tokens only if memory allows, and prefer engine-default CUDA graph settings unless you have evidence that custom sizes match your batch shapes better.

Would you like a step-by-step breakdown of how to profile and isolate each bottleneck?

Sources:

Hint: Mention @Herald in the post for followups.