Update setup.py
This commit is contained in:
parent
8253e921cc
commit
843734d296
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
|
@ -38,7 +38,8 @@ if importlib.util.find_spec("torch") is not None:
|
|||
HAS_TORCH = True
|
||||
HAS_CUDA = (torch.version.cuda is not None)
|
||||
HAS_HIP = (torch.version. hip is not None)
|
||||
|
||||
print(f"Unsloth: Imported torch with CUDA_HOME = {str(CUDA_HOME)}.")
|
||||
print(f"Unsloth: Imported torch with ROCM_HOME = {str(ROCM_HOME)}.")
|
||||
except Exception as e:
|
||||
print(f"Unsloth: Importing torch failed with error = {str(e)}.")
|
||||
HAS_TORCH = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue