Skip to content

Start with tensor parallelism ​

TokenSpeed exposes familiar --tensor-parallel-size and --tp entry points plus additional split parallelism controls for attention, dense, and MoE layers.

Prerequisites ​

Identify the model ID or local path to replace <model>, and confirm that the server has the number of GPUs that you plan to assign to the tensor-parallel group.

Start the server ​

When the same tensor-parallel group is acceptable for the model, start the server with --tensor-parallel-size:

  1. Replace <model> with your model ID or local path, and then start an eight-way tensor-parallel deployment:

    bash
    tokenspeed serve <model> \
      --tensor-parallel-size 8

    --tensor-parallel-size maps to TokenSpeed attention tensor parallelism, and you cannot combine it with --attn-tp-size.

  2. Validate the parallel deployment before sending benchmark traffic. Every rank must start and join the distributed group, and the API must respond.

TokenSpeed documentation