1. 用环境变量参数
set CUDA_VISIBLE_DEVICES=0,1 .\webui.bat --medvram
2. 命令行参数
.\webui.bat --medvram --device-id=0,1
两种方案皆可。