Update setup.py
This commit is contained in:
parent
b4b75a9ea8
commit
46bc57ce49
1 changed files with 3 additions and 0 deletions
3
setup.py
3
setup.py
|
|
@ -26,6 +26,9 @@ ROOT_DIR = Path(__file__).parent
|
|||
UNSLOTH_TARGET_DEVICE = os.environ.get("UNSLOTH_TARGET_DEVICE", "cuda")
|
||||
IS_COLAB = "COLAB_" not in "".join(os.environ.keys())
|
||||
|
||||
import torch
|
||||
from torch.utils.cpp_extension import CUDA_HOME, ROCM_HOME
|
||||
|
||||
# Try importing torch
|
||||
HAS_TORCH = False
|
||||
HAS_CUDA = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue