Skip to content

Commit

Permalink
update vllm setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Apr 29, 2024
1 parent 850cc9b commit 22d550e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/distributed_simulation/start_vllm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ mkdir -p log

for ((i=0; i<8; i++)); do
port=$((base_port + i))
export CUDA_VISIBLE_DEVICES=$i && /usr/bin/python -m vllm.entrypoints.openai.api_server --model "${model_path}" --port ${port} --enforce-eager > log/vllm-${port}.log 2>&1 &
export CUDA_VISIBLE_DEVICES=$i
python -m vllm.entrypoints.openai.api_server --model "${model_path}" --port ${port} --enforce-eager > log/vllm-${port}.log 2>&1 &
echo $! >> .vllm_pid
echo "Started vllm server on port ${port} with PID $!"
done
Expand Down

0 comments on commit 22d550e

Please sign in to comment.