oskaralf commited on
Commit
1785e1f
·
1 Parent(s): 14fafef
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,6 +1,11 @@
1
  import torch
 
 
 
 
2
  from unsloth import FastLanguageModel
3
 
 
4
  # Force CPU mode
5
  device = "cpu"
6
 
 
1
  import torch
2
+
3
+ import torch
4
+ torch.cuda.is_available = lambda: False # Force torch to disable CUDA
5
+
6
  from unsloth import FastLanguageModel
7
 
8
+
9
  # Force CPU mode
10
  device = "cpu"
11