Update setup.py
This commit is contained in:
parent
9c6e27081f
commit
508be34294
1 changed files with 1 additions and 3 deletions
4
setup.py
4
setup.py
|
|
@ -28,11 +28,9 @@ IS_COLAB = "COLAB_" not in "".join(os.environ.keys())
|
|||
|
||||
# Try importing torch
|
||||
HAS_TORCH = False
|
||||
HAS_CUDA = False
|
||||
HAS_CUDA = True
|
||||
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