Spaces:
Build error
Build error
Download src/list_devices.py from jailen/tortoise-base: direct link, hf CLI and curl.
- Browser
- Download file 134 Bytes
-
https://huggingface.co/spaces/jailen/tortoise-base/resolve/main/src/list_devices.py
- Command line
-
hf download hf://spaces/jailen/tortoise-base/src/list_devices.py
-
curl -L -o list_devices.py https://huggingface.co/spaces/jailen/tortoise-base/resolve/main/src/list_devices.py
134 Bytes
| import torch | |
| devices = [f"cuda:{i} => {torch.cuda.get_device_name(i)}" for i in range(torch.cuda.device_count())] | |
| print(devices) |