Zeel commited on
Commit
85de5ff
·
1 Parent(s): 7145796

set is_cuda_available to True

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: False
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