Spaces:
Runtime error
Runtime error
phuong-d-h-nguyen
commited on
Commit
•
0dcea97
1
Parent(s):
2414d77
Upload folder using huggingface_hub
Browse files- finetuning.py +2 -2
finetuning.py
CHANGED
@@ -6,8 +6,8 @@ import torch
|
|
6 |
with open("finetuning_set_v1.0.json") as f:
|
7 |
dataset = json.load(f)
|
8 |
|
9 |
-
torch.cuda.empty_cache()
|
10 |
-
torch.cuda.set_per_process_memory_fraction(0.9)
|
11 |
|
12 |
args = TrainingArguments(
|
13 |
per_device_train_batch_size=1,
|
|
|
6 |
with open("finetuning_set_v1.0.json") as f:
|
7 |
dataset = json.load(f)
|
8 |
|
9 |
+
# torch.cuda.empty_cache()
|
10 |
+
# torch.cuda.set_per_process_memory_fraction(0.9)
|
11 |
|
12 |
args = TrainingArguments(
|
13 |
per_device_train_batch_size=1,
|