Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -7,11 +7,10 @@ import spaces
|
|
7 |
import torch
|
8 |
from transformers import BitsAndBytesConfig
|
9 |
|
10 |
-
@spaces.GPU
|
11 |
def setGPU():
|
12 |
torch.cuda.empty_cache()
|
13 |
-
os.environ["CUDA_VISIBLE_DEVICES"] = "3,4"
|
14 |
-
os.environ['CUDA_LAUNCH_BLOCKING'] = '1'
|
15 |
|
16 |
if torch.cuda.is_available():
|
17 |
print(f"Numero di GPU disponibili: {torch.cuda.device_count()}")
|
|
|
7 |
import torch
|
8 |
from transformers import BitsAndBytesConfig
|
9 |
|
|
|
10 |
def setGPU():
|
11 |
torch.cuda.empty_cache()
|
12 |
+
#os.environ["CUDA_VISIBLE_DEVICES"] = "3,4"
|
13 |
+
#os.environ['CUDA_LAUNCH_BLOCKING'] = '1'
|
14 |
|
15 |
if torch.cuda.is_available():
|
16 |
print(f"Numero di GPU disponibili: {torch.cuda.device_count()}")
|