1
This commit is contained in:
@@ -20,8 +20,8 @@ services:
|
|||||||
reservations:
|
reservations:
|
||||||
devices:
|
devices:
|
||||||
- driver: nvidia
|
- driver: nvidia
|
||||||
count: all # 使用所有可用GPU,也可指定数量如count: 1
|
|
||||||
capabilities: [ gpu, compute, video ]
|
capabilities: [ gpu, compute, video ]
|
||||||
|
device_ids: [ '1' ]
|
||||||
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())' &&
|
||||||
|
|||||||
Reference in New Issue
Block a user