Skip to content

Serve Inkling on NVIDIA or AMD ​

Serve Inkling with its native NVFP4 checkpoint on NVIDIA GPUs or its MXFP4 checkpoint on AMD GPUs. Both launch commands use four-way attention and mixture-of-experts (MoE) tensor parallelism, prefix caching, and three-step multi-token prediction (MTP).

For architecture, kernel, and performance details, see TML Inkling at Day 0: FP4 Inference on NVIDIA and AMD with TokenSpeed.

Prerequisites ​

Choose the checkpoint and hardware for your GPU vendor:

GPU vendorCheckpointSupported hardware
NVIDIAthinkingmachines/Inkling-NVFP4B200, GB200, B300, or GB300
AMDlightseekorg/Inkling-MXFP4MI350X or MI355X

Before you begin, make sure you have:

  • Four compatible GPUs for the selected configuration.
  • Access to the selected checkpoint.
  • Docker with GPU support to use the provided container image, or an existing TokenSpeed environment that provides the ts serve command.
  • curl for the readiness checks.

Pull the Docker image ​

If you use a container, pull the image for your GPU vendor. Otherwise, use your existing TokenSpeed environment and continue to Launch the server.

NVIDIA ​

Pull the NVIDIA container image:

bash
docker pull lightseekorg/tokenspeed:latest

AMD ​

Pull the AMD container image:

bash
docker pull lightseekorg/tokenspeed-amd:latest

After you pull the image, start a container from it with access to the four GPUs and the serving port, and open a shell in that container. Run the launch and readiness commands in that shell.

Launch the server ​

The commands use the published checkpoint IDs directly, so you don't need to replace any placeholders.

NVIDIA ​

  1. In your NVIDIA TokenSpeed environment, start the NVFP4 checkpoint with FA4 attention and the FlashInfer TRT-LLM MoE backend:

    bash
    ts serve \
        --model thinkingmachines/Inkling-NVFP4 \
        --attn-tp-size 4 \
        --moe-tp-size 4 \
        --max-model-len 81920 \
        --max-num-seqs 16 \
        --max-prefill-tokens 8192 \
        --chunked-prefill-size 8192 \
        --disable-cuda-graph-padding \
        --trust-remote-code \
        --attention-backend fa4 \
        --moe-backend flashinfer_trtllm \
        --enable-prefix-caching \
        --disable-kvstore \
        --speculative-algorithm MTP \
        --speculative-num-steps 3 \
        --speculative-eagle-topk 1 \
        --speculative-num-draft-tokens 4
  2. From the environment where the server is running, check its readiness:

    bash
    curl --fail http://127.0.0.1:8000/readiness

    A ready server returns an HTTP 200 OK status code.

AMD ​

  1. In your AMD TokenSpeed environment, start the MXFP4 checkpoint:

    bash
    ts serve \
        --model lightseekorg/Inkling-MXFP4 \
        --attn-tp-size 4 \
        --moe-tp-size 4 \
        --max-model-len 81920 \
        --max-num-seqs 16 \
        --max-prefill-tokens 8192 \
        --chunked-prefill-size 8192 \
        --disable-cuda-graph-padding \
        --trust-remote-code \
        --enable-prefix-caching \
        --disable-kvstore \
        --speculative-algorithm MTP \
        --speculative-num-steps 3 \
        --speculative-eagle-topk 1 \
        --speculative-num-draft-tokens 4
  2. From the environment where the server is running, check its readiness:

    bash
    curl --fail http://127.0.0.1:8000/readiness

    A ready server returns an HTTP 200 OK status code.

TokenSpeed documentation