-
Notifications
You must be signed in to change notification settings - Fork 63
[QEff.Finetuning] Added support for SFTTrainer class along with tests #660
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
base: ft_experimental
Are you sure you want to change the base?
Conversation
Signed-off-by: Dhiraj Kumar Sah <[email protected]>
Added tests in test_trainer which also check for model integration with trainer class created. Some of the tests can later be moved to end to end integration tests. Signed-off-by: Dhiraj Kumar Sah <[email protected]>
quic-meetkuma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel some redundant tests can be moved to test_model.py. Rest looks fine.
…rs for a model. Signed-off-by: Dhiraj Kumar Sah <[email protected]>
|
PEFT config should be added here in the BaseTrainer class as it is part of training config. trl repo has also added it in the trainer classes. We should not deviate from that. It will make the code reuse difficult at a later stage. Please refer: https://github.com/huggingface/trl/blob/main/trl/trainer/sft_trainer.py Please keep the flexibility to accept PEFT techniques/configuration of various kinds and not just LoRA. |
No description provided.