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 vendor | Checkpoint | Supported hardware |
|---|---|---|
| NVIDIA | thinkingmachines/Inkling-NVFP4 | B200, GB200, B300, or GB300 |
| AMD | lightseekorg/Inkling-MXFP4 | MI350X 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 servecommand. curlfor 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:
docker pull lightseekorg/tokenspeed:latestAMD
Pull the AMD container image:
docker pull lightseekorg/tokenspeed-amd:latestAfter 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
In your NVIDIA TokenSpeed environment, start the NVFP4 checkpoint with FA4 attention and the FlashInfer TRT-LLM MoE backend:
bashts 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 4From the environment where the server is running, check its readiness:
bashcurl --fail http://127.0.0.1:8000/readinessA ready server returns an HTTP
200 OKstatus code.
AMD
In your AMD TokenSpeed environment, start the MXFP4 checkpoint:
bashts 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 4From the environment where the server is running, check its readiness:
bashcurl --fail http://127.0.0.1:8000/readinessA ready server returns an HTTP
200 OKstatus code.