Skip to content

GLM 5.3 ​

Serve GLM-5.3 with multi-token prediction (MTP) on NVIDIA or AMD GPUs. GLM-5.3 follows the GLM-5.2 DeepSeek Sparse Attention serving path. Its base checkpoint includes the NextN draft layer, so MTP does not require a separate draft checkpoint.

Prerequisites ​

  • Complete the TokenSpeed environment setup and make the ts command available.
  • Make the curl command available to verify server readiness.
  • Provide eight NVIDIA GPUs for the NVIDIA command, or eight AMD MI350X/MI355X (gfx950) GPUs for the AMD command.
  • Make sure that you can access the checkpoint for your platform: zai-org/GLM-5.3 on NVIDIA, or the AMD Quark MXFP4 checkpoint on AMD.

Serve on NVIDIA ​

  1. Start the server with the base checkpoint. This command serves the model as glm-5.3 and uses the base checkpoint's NextN draft layer for MTP:

    bash
    ts serve zai-org/GLM-5.3 \
      --served-model-name glm-5.3 \
      --trust-remote-code \
      --tensor-parallel-size 8 \
      --enable-expert-parallel \
      --moe-backend flashinfer_trtllm \
      --kv-cache-dtype fp8 \
      --max-model-len 262144 \
      --max-num-seqs 128 \
      --draft-model-path-use-base \
      --speculative-algorithm MTP \
      --speculative-num-steps 3
  2. Confirm that the engine has registered with the gateway. If you changed the server's port, replace 8000 with that port:

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

    The request returns HTTP 200 OK when the server is ready.

Serve on AMD ​

On MI350X/MI355X (gfx950), the AMD Quark MXFP4 checkpoint stores the MLPs and experts in MXFP4 and the attention projections in block FP8. Use --quantization mxfp4 and disable expert parallelism with --ep-size 1. Keep --sampling-backend triton: without it, AMD defaults to greedy sampling, which ignores per-request temperature, top_p, and top_k.

  1. Start the server with the AMD checkpoint. This command serves the model as glm-5.3 and uses the base checkpoint's NextN draft layer for MTP:

    bash
    ts serve amd/GLM-5.3-Quark-MXFP4-AttnFP8 \
      --served-model-name glm-5.3 \
      --trust-remote-code \
      --quantization mxfp4 \
      --tensor-parallel-size 8 \
      --ep-size 1 \
      --kv-cache-dtype fp8 \
      --max-model-len 262144 \
      --max-num-seqs 128 \
      --sampling-backend triton \
      --draft-model-path-use-base \
      --speculative-algorithm MTP \
      --speculative-num-steps 3
  2. Confirm that the engine has registered with the gateway. If you changed the server's port, replace 8000 with that port:

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

    The request returns HTTP 200 OK when the server is ready.

TokenSpeed documentation