Download python_embeded/Lib/site-packages/bitsandbytes/triton/triton_utils.py from hxrron/VTONmodels: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/hxrron/VTONmodels/resolve/main/python_embeded/Lib/site-packages/bitsandbytes/triton/triton_utils.py
- Command line
-
hf download hf://hxrron/VTONmodels/python_embeded/Lib/site-packages/bitsandbytes/triton/triton_utils.py
-
curl -L -o triton_utils.py https://huggingface.co/hxrron/VTONmodels/resolve/main/python_embeded/Lib/site-packages/bitsandbytes/triton/triton_utils.py
350 Bytes
| import functools | |
| def is_triton_available(): | |
| try: | |
| # torch>=2.2.0 | |
| from torch.utils._triton import has_triton, has_triton_package | |
| return has_triton_package() and has_triton() | |
| except ImportError: | |
| from torch._inductor.utils import has_triton | |
| return has_triton() | |