Skip to content
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

Merged
merged 13 commits into from
Feb 28, 2025
Merged

⚰️ Deprecate liger-kernel #2949

merged 13 commits into from
Feb 28, 2025

Conversation

qgallouedec
Copy link
Member

@qgallouedec qgallouedec commented Feb 24, 2025

Follows #2940 (comment)

@qgallouedec qgallouedec requested review from kashif, lewtun and edbeeching and removed request for kashif and lewtun February 24, 2025 18:10
Comment on lines 133 to 137
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())
Copy link
Member Author

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?

Copy link
Collaborator

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

@HuggingFaceDocBuilderDev

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.

@BenasdTW
Copy link
Contributor

BenasdTW commented Feb 26, 2025

After this PR is merged, can I still pass a Liger model to SFTTrainer? Do I need to explicitly set use_liger_kernel=True?

@qgallouedec
Copy link
Member Author

Yes you can still pass a liger kernel model, but you will have to pas use_liger_kernel=True

@qgallouedec qgallouedec changed the title Deprecate liger-kernel ⚰️ Deprecate liger-kernel Feb 28, 2025
@qgallouedec qgallouedec merged commit b882f57 into main Feb 28, 2025
14 checks passed
@qgallouedec qgallouedec deleted the deprecated-use-liger branch February 28, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants