Spaces:
Runtime error
Runtime error
phuong-d-h-nguyen
commited on
Commit
•
803bee2
1
Parent(s):
8fbcc74
Upload folder using huggingface_hub
Browse files- finetuning.py +2 -2
finetuning.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
from trl import SFTTrainer
|
|
|
|
|
2 |
from transformers import TrainingArguments
|
3 |
import json
|
4 |
import torch
|
5 |
-
import os
|
6 |
|
7 |
-
os.environ["TRANSFORMERS_CACHE"] = "./cache"
|
8 |
|
9 |
with open("finetuning_set_v1.0.json") as f:
|
10 |
dataset = json.load(f)
|
|
|
1 |
from trl import SFTTrainer
|
2 |
+
import os
|
3 |
+
os.environ["TRANSFORMERS_CACHE"] = "./cache"
|
4 |
from transformers import TrainingArguments
|
5 |
import json
|
6 |
import torch
|
|
|
7 |
|
|
|
8 |
|
9 |
with open("finetuning_set_v1.0.json") as f:
|
10 |
dataset = json.load(f)
|