This guide describes how to run Ring-1T-FP8.
uv venv
source .venv/bin/activate
uv pip install -U vllm --torch-backend autouv pip install vllm --extra-index-url https://wheels.vllm.ai/rocm/0.14.1/rocm700This guide covers the simplest way to run the model, using pure tensor parallel across 8 GPUs.
# Start server with FP8 model on 8 GPUs
vllm serve inclusionAI/Ring-1T-FP8 \
--trust-remote-code \
--tensor-parallel-size 8 \
--gpu-memory-utilization 0.97 \
--max-num-seqs 32 \
--kv-cache-dtype fp8 \
--compilation-config '{"use_inductor": false}' \
--served-model-name Ring-1T-FP8- You can set
--max-model-lento preserve memory.--max-model-len=65536is usually good for most scenarios. - You can set
--max-num-batched-tokensto balance throughput and latency, higher means higher throughput but higher latency.--max-num-batched-tokens=32768is usually good for prompt-heavy workloads. But you can reduce it to 16384 and 8192 to reduce activation memory usage and decrease latency. - In the example, 97% of the total memory is used for this model, you can reduce it to a smaller number if an Out-Of-Memory (OOM) error occurs.
# Start server with FP8 model on 8 GPUs
export VLLM_ROCM_USE_AITER=1
vllm serve inclusionAI/Ring-1T-FP8 \
--trust-remote-code \
--tensor-parallel-size 8 \
--gpu-memory-utilization 0.9 \
--max-num-seqs 32 \
--kv-cache-dtype fp8 \
--served-model-name Ring-1T-FP8- You can set
export VLLM_ROCM_USE_AITER=1for Better Performance on AMD GPUs. The default isexport VLLM_ROCM_USE_AITER=0
You can send a request like the following to quickly verify the deployment.
curl http://localhost:8000/v1/chat/completions
-H "Content-Type: application/json" \
-d '{
"model": "Ring-1T-FP8",
"messages": [
{
"role": "user",
"content": "9.11 and 9.8, which is greater?"
}
]
}'