git clone https://github.com/FlagOpen/FlagScale.git
cd FlagScale/Create a new conda environment:
conda create -n flagscale-inference python=3.12
conda activate flagscale-inferencecd FlagScale/
pip install ".[cuda-train]"Follow Setup in the vllm-plugin-FL setup guide.
pip install transformers==4.57.0git lfs install
mkdir -p /tmp/models/BAAI/
cd /tmp/models/BAAI/
git clone https://huggingface.co/BAAI/RoboBrain2.5-8B-NVIf you don't have access to the international internet, download from modelscope.
mkdir -p /tmp/models/
cd /tmp/models/
modelscope download --model BAAI/RoboBrain2.5-8B-NV --local_dir BAAI/RoboBrain2.5-8B-NVcd FlagScale/
vim examples/robobrain2_5/conf/inference/8b.yamlChange 2 fields:
- llm.model: change to "/tmp/models/BAAI/RoboBrain2.5-8B-NV".
- generate.prompts: change to your customized input text.
flagscale inference robobrain2_5 --config ./examples/robobrain2_5/conf/inference.yaml
# or
flagscale inference robobrain2_5 -c ./examples/robobrain2_5/conf/inference.yamlcd FlagScale/
tail -f outputs/robobrain2.5_8b/inference_logs/host_0_localhost.outputcd FlagScale/
vim examples/robobrain2_5/conf/serve/8b.yamlChange 1 fields:
- engine_args.model: change to "/tmp/models/BAAI/RoboBrain2.5-8B-NV".
cd FlagScale/
flagscale serve robobrain2_5 --config ./examples/robobrain2_5/conf/serve.yaml
# or
flagscale serve robobrain2_5 -c ./examples/robobrain2_5/conf/serve.yamlcurl http://localhost:9010/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer no-key" \
-d '{
"model": "",
"messages": [
{
"role": "system",
"content":
[{
"type": "text",
"text": "123"
}]
},
{
"role": "user",
"content":
[{
"type": "text",
"text": "123"
}]
}
],
"temperature": 0.0,
"max_completion_tokens": 200,
"stream": true,
"stream_options": {"include_usage": true}, "max_tokens": 4, "n_predict": 200
}'Refer to Qwen3-VL