Skip to content

Validate a parallel deployment ​

Complete these checks before benchmarking so that process placement, API readiness, inference correctness, and the recorded configuration provide a reliable basis for performance results.

Prerequisites ​

  • Start every node and rank in the deployment.
  • Install curl on the host where you run the HTTP checks.
  • Determine the client-facing HTTP address. Use the regular server address, node 0 for a multi-node server, or the gateway address for prefill/decode disaggregation. Headless engine roles do not expose a client endpoint.
  • Identify the served model name and the expected values of --world-size and --nprocs-per-node.

Check rank and GPU placement ​

  1. On each node, list the scheduler processes:

    bash
    ps -eo pid,args | grep '[t]okenspeed::scheduler_'

    Confirm that the local process count matches --nprocs-per-node and that the total across nodes matches --world-size. Check the zero-based tp, ep, dp, kvp, and pp rank suffixes against the configured layout. For the suffix rules, see Identify scheduler ranks.

  2. Match those process IDs to the intended GPUs. On NVIDIA systems, run:

    bash
    nvidia-smi

    On AMD systems, run:

    bash
    rocm-smi --showpids

    Confirm that every worker PID appears on the intended GPU and that each node uses the GPU visibility and process placement assigned to it. Resolve any missing ranks or unexpected GPU assignments before benchmarking.

Check HTTP readiness ​

  1. Replace 127.0.0.1:8000 if you configured a different client-facing host or port, and then query the existing readiness endpoint:

    bash
    curl --silent --show-error --fail http://127.0.0.1:8000/readiness

    A ready server returns HTTP 200 OK, and curl exits with status 0. On a disaggregated deployment, readiness succeeds after every engine registers. If the request fails, wait for startup to finish and inspect the server logs; do not send benchmark traffic yet.

Send one inference request ​

  1. Replace <model> with the served model ID, or with the value of --served-model-name when you set that option. Send a deterministic chat completion request to the existing OpenAI-compatible endpoint:

    bash
    curl --silent --show-error --fail \
      http://127.0.0.1:8000/v1/chat/completions \
      -H 'Content-Type: application/json' \
      -d '{
        "model": "<model>",
        "messages": [
          {"role": "user", "content": "What is 2 + 2? Reply with just the number."}
        ],
        "temperature": 0,
        "max_tokens": 32
      }'

    A successful request returns HTTP 200 OK and a JSON response containing generated text in choices[0].message.content.

Judge output correctness ​

  1. Confirm that choices[0].message.content answers the arithmetic prompt with 4. HTTP 200 OK and a nonempty response confirm that inference completed, but do not by themselves establish output correctness.
  2. Before tuning throughput, compare a fixed set of representative prompts and sampling settings against a known-good configuration of the same model. Investigate unexpected output differences before using performance results.
  3. Keep the full launch command, HTTP configuration, and validation responses with the benchmark results.

TokenSpeed documentation