1
This commit is contained in:
@@ -20,10 +20,12 @@ services:
|
|||||||
reservations:
|
reservations:
|
||||||
devices:
|
devices:
|
||||||
- driver: nvidia
|
- driver: nvidia
|
||||||
capabilities: [ gpu, compute, video ]
|
device_ids: [ '0' ]
|
||||||
device_ids: [ '1' ]
|
capabilities: [ gpu, compute, utility ] # 移除 video(非必需,减少兼容问题)
|
||||||
command: >
|
command: >
|
||||||
bash -c "
|
bash -c "
|
||||||
/opt/conda/envs/trellis/bin/python -c 'import torch; print(torch.__version__, torch.cuda.is_available())' &&
|
/opt/conda/envs/trellis/bin/python -c 'import torch; print(torch.__version__, torch.cuda.is_available())' &&
|
||||||
/opt/conda/envs/trellis/bin/python server.py
|
/opt/conda/envs/trellis/bin/python server.py
|
||||||
"
|
"
|
||||||
|
# /opt/conda/envs/trellis/bin/python server.py
|
||||||
|
# tail -f /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user