Intern-S1 is a vision-language model that is developed by Shanghai AI Laboratory. Latest vLLM already supports Intern-S1. You can install it using the following method:
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/rocm700vllm serve internlm/Intern-S1 \
--trust-remote-code \
--tensor-parallel-size 8 \
--enable-auto-tool-choice \
--reasoning-parser deepseek_r1 \
--tool-call-parser internlmvllm serve internlm/Intern-S1-FP8 \
--trust-remote-code \
--tensor-parallel-size 4 \
--enable-auto-tool-choice \
--reasoning-parser deepseek_r1 \
--tool-call-parser internlmexport VLLM_ROCM_USE_AITER=1
export VLLM_ROCM_USE_AITER_MOE=0
vllm serve internlm/Intern-S1-FP8 \
--trust-remote-code \
--tensor-parallel-size 8 \
--enable-auto-tool-choice \
--reasoning-parser deepseek_r1 \
--tool-call-parser internlm- You can also reduce the nubmer of GPUs to 4 with
--tensor-parallel-size 4 - You can set
export VLLM_ROCM_USE_AITER=1for Better Performance on AMD GPUs. The default isexport VLLM_ROCM_USE_AITER=0 - Please turn off AITER MOE on MI300x/MI325x by
export VLLM_ROCM_USE_AITER_MOE=0
export VLLM_ROCM_USE_AITER=1
vllm serve internlm/Intern-S1-FP8 \
--trust-remote-code \
--tensor-parallel-size 8 \
--enable-auto-tool-choice \
--reasoning-parser deepseek_r1 \
--tool-call-parser internlm- You can also reduce the nubmer of GPUs to 4 with
--tensor-parallel-size 4 - You can set
export VLLM_ROCM_USE_AITER=1for Better Performance on AMD GPUs. The default isexport VLLM_ROCM_USE_AITER=0
Configure through
extra_body={
"chat_template_kwargs": {"enable_thinking": False}
}Sample code
from openai import OpenAI
client = OpenAI(api_key='YOUR_API_KEY', base_url='http://0.0.0.0:8000/v1')
model_name = client.models.list().data[0].id
response = client.chat.completions.create(
model=model_name,
messages=[{
'role':
'user',
'content': [{
'type': 'text',
'text': '9.11 and 9.8, which is greater?',
}],
}],
temperature=0.8,
top_p=0.8,
extra_body={
"chat_template_kwargs": {"enable_thinking": False}
}
)
print(response)If you encounter ValueError: No available memory for the cache blocks., try adding the --gpu-memory-utilization 0.95 flag to your vllm serve command.