microsoft / DeepSpeed-MII

MII makes low-latency and high-throughput inference possible, powered by DeepSpeed.
Apache License 2.0
1.91k stars 175 forks source link

How do I launch the api on a graphics card other than cuda: 0 #460

Open Stark-zheng opened 7 months ago

Stark-zheng commented 7 months ago

1、deepspeed --include localhost:4 api.py

2、CUDA_VISIBLE_DEVICES=4 python api.py

Neither method can specify cuda to use, so cuda: 0 is used by default

How do I set it?

zhjunqin commented 6 months ago

same question, CUDA_VISIBLE_DEVICES not working