Update lm_finetuning.py
Browse files- lm_finetuning.py +1 -1
lm_finetuning.py
CHANGED
@@ -191,7 +191,7 @@ def main():
|
|
191 |
trainer.save_model(pj(opt.output_dir, 'best_model'))
|
192 |
best_model_path = pj(opt.output_dir, 'best_model')
|
193 |
else:
|
194 |
-
best_model_path = opt.output_dir
|
195 |
|
196 |
# evaluation
|
197 |
model = AutoModelForSequenceClassification.from_pretrained(
|
|
|
191 |
trainer.save_model(pj(opt.output_dir, 'best_model'))
|
192 |
best_model_path = pj(opt.output_dir, 'best_model')
|
193 |
else:
|
194 |
+
best_model_path = pj(opt.output_dir, 'best_model')
|
195 |
|
196 |
# evaluation
|
197 |
model = AutoModelForSequenceClassification.from_pretrained(
|