Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,8 @@ training_args = TrainingArguments(
|
|
162 |
#fp16=True,
|
163 |
save_strategy = "no",
|
164 |
optim="adamw_torch",
|
165 |
-
load_best_model_at_end=False,
|
|
|
166 |
#push_to_hub=True,
|
167 |
)
|
168 |
|
@@ -220,8 +221,8 @@ print("Done Eval")
|
|
220 |
#Push to Hub
|
221 |
print("push to hub")
|
222 |
login(token=os.environ["HF_WRITE_TOKEN"])
|
223 |
-
trainer.push_to_hub("alexkueck/li-tis-tuned-1")
|
224 |
-
|
225 |
print("done")
|
226 |
|
227 |
|
|
|
162 |
#fp16=True,
|
163 |
save_strategy = "no",
|
164 |
optim="adamw_torch",
|
165 |
+
#load_best_model_at_end=False,
|
166 |
+
load_best_model_at_end=True
|
167 |
#push_to_hub=True,
|
168 |
)
|
169 |
|
|
|
221 |
#Push to Hub
|
222 |
print("push to hub")
|
223 |
login(token=os.environ["HF_WRITE_TOKEN"])
|
224 |
+
#trainer.push_to_hub("alexkueck/li-tis-tuned-1")
|
225 |
+
tokenizer.push_to_hub("alexkueck/li-tis-tuned-1")
|
226 |
print("done")
|
227 |
|
228 |
|