Environment="PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True"
ExecStart=/root/ComfyUI/venv/bin/python main.py --listen 0.0.0.0 --port 8188 --reserve-vram 2 --disable-smart-memory --disable-cuda-malloc --disable-async-offload
使用以上环境变量和参数启动大概就可以做到视频里面那样不报显存
15秒0.5
10秒0.7