Update setup.py
This commit is contained in:
parent
4f7185dc08
commit
95d5d7dbcc
1 changed files with 2 additions and 0 deletions
2
setup.py
2
setup.py
|
|
@ -31,6 +31,8 @@ HAS_TORCH = False
|
|||
HAS_CUDA = False
|
||||
HAS_HIP = False
|
||||
torch = None
|
||||
print(f"Unsloth: Imported torch with CUDA_HOME = {str(CUDA_HOME)}.")
|
||||
print(f"Unsloth: Imported torch with ROCM_HOME = {str(ROCM_HOME)}.")
|
||||
if importlib.util.find_spec("torch") is not None:
|
||||
try:
|
||||
import torch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue