-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
⚰️ Deprecate liger-kernel #2949
Conversation
trl/trainer/gkd_trainer.py
Outdated
elif hasattr(teacher_model, "get_base_model") and isinstance( | ||
teacher_model.get_base_model(), PreTrainedModel | ||
): | ||
# Patch the base model with liger kernels where model is a PeftModel. Use the default kernel configurations. | ||
_apply_liger_kernel_to_instance(model=teacher_model.get_base_model()) |
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.
This is when teacher model is a peft model. Do we need it @kashif?
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 dont think we need it... as it is not supported currently... let me double check
…/trl into deprecated-use-liger
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
After this PR is merged, can I still pass a Liger model to |
Yes you can still pass a liger kernel model, but you will have to pas |
Follows #2940 (comment)