set is_cuda_available to True
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import AutoProcessor
|
|
| 3 |
|
| 4 |
import torch
|
| 5 |
# Hack unsloth to work without GPU
|
| 6 |
-
torch.is_cuda_available = lambda:
|
| 7 |
|
| 8 |
from unsloth.chat_templates import get_chat_template, CHAT_TEMPLATES
|
| 9 |
from unsloth_zoo.dataset_utils import train_on_responses_only
|
|
|
|
| 3 |
|
| 4 |
import torch
|
| 5 |
# Hack unsloth to work without GPU
|
| 6 |
+
torch.is_cuda_available = lambda: True
|
| 7 |
|
| 8 |
from unsloth.chat_templates import get_chat_template, CHAT_TEMPLATES
|
| 9 |
from unsloth_zoo.dataset_utils import train_on_responses_only
|