-
Notifications
You must be signed in to change notification settings - Fork 201
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
fix convergence test, phi3 import and update benchmark #155
Conversation
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.
Line 33 in c3c56e7
"transformers>=4.41.0", |
btw, we actually bump transformers to >= 4.41.0
@@ -268,6 +267,8 @@ def apply_liger_kernel_to_phi3( | |||
if cross_entropy: | |||
modeling_phi3.CrossEntropyLoss = LigerCrossEntropyLoss | |||
if fused_linear_cross_entropy: | |||
from liger_kernel.transformers.model.phi3 import lce_forward as phi3_lce_forward |
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.
maybe we can move this back. we don't want to support too old transformers
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.
oh! apparently my mind swapped the 0
and 1
in the version, lemme revert these phi3 related stuff
3648716
to
573094e
Compare
Summary
transformers
version doesn't carry phi3 source code (testing on 4.40.1), since we claim support for >= 4.40.1, change the import a bit so things still work on older HF verTesting Done
make test
to ensure correctnessmake checkstyle
to ensure code stylemake test-convergence
to ensure convergence