This guide describes how to run moonshotai/Kimi-Linear-48B-A3B-Instruct.
uv venv
source .venv/bin/activate
# Install a stable version (avoid 0.12.0)
uv pip install vllm==0.11.2 --torch-backend autoNote: Regarding Kimi-Linear, vLLM 0.12.0 has a known bug with MLAModules.__init__() missing 1 required positional argument: 'indexer_rotary_emb'. Please avoid this version.
It's easy to run Kimi-Linear. The following snippets assume you have 4 or 8 GPUs on a single node.
vllm serve moonshotai/Kimi-Linear-48B-A3B-Instruct \
--port 8000 \
--tensor-parallel-size 4 \
--max-model-len 1048576 \
--trust-remote-codevllm serve moonshotai/Kimi-Linear-48B-A3B-Instruct \
--port 8000 \
--tensor-parallel-size 8 \
--max-model-len 1048576 \
--trust-remote-codeIf you see OOM, reduce
--max-model-len(e.g. 65536) or increase--gpu-memory-utilization(≤ 0.95).
Once the server is up, test it with:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"moonshotai/Kimi-Linear-48B-A3B-Instruct","messages":[{"role":"user","content":"Hello!"}]}'