-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
训练过程中定时验证 #952
Comments
你好, 我们代码的训练逻辑使用了Transformers库中的Trainer实现,但是还没有添加验证集的逻辑,如果你想实现对应的需求,可以参考:https://huggingface.co/docs/transformers/v4.49.0/en/main_classes/trainer#transformers.Trainer.eval_dataset |
他们的实现中自定义了'pad_data_collator','concat_pad_data_collator'等方法,所以不能直接从Trainer中修改,得和train_dataset保持一致,可以参考我的实现运行,记得调整--per_device_eval_batch_size,不然默认为训练的4倍,会爆显存
eval_dataset = build_datasets1( |
请问现在的代码在lora训练的过程中,可以对额外单独的验证集进行定期验证吗?并保存在训练过程中在验证集上效果最好的权重
The text was updated successfully, but these errors were encountered: