We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
能否提供一个配置入口能够让用户自定义transformers的Trainer里的compute_loss_func(动态加载自定义的代码)?这个我理解还是一个比较常用的功能
如果觉得有需要的话,我可以贡献pr
No response
The text was updated successfully, but these errors were encountered:
一般来说可以重写这个
LLaMA-Factory/src/llamafactory/train/sft/trainer.py
Lines 102 to 103 in e8a18c1
确实可以加个动态加载函数的机制来读取 loss function,例如 https://github.com/hiyouga/EasyR1/blob/65aad49271849dbe027f4f892fbea924d2fd6e14/verl/workers/reward/function.py#L41-L66
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Reminder
Description
能否提供一个配置入口能够让用户自定义transformers的Trainer里的compute_loss_func(动态加载自定义的代码)?这个我理解还是一个比较常用的功能
Pull Request
如果觉得有需要的话,我可以贡献pr
No response
The text was updated successfully, but these errors were encountered: