-
Notifications
You must be signed in to change notification settings - Fork 359
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
Support Low Rank Adaptation (LoRA). #745
Conversation
e1eb2bb
to
9d9c20a
Compare
Generally LGTM! |
SCOPE_EX_OUTPUT_PROJ = 'exclude_output_proj' | ||
SCOPE_EX_MLP = 'exclude_mlp' | ||
|
||
assert scope in [ |
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 noticed that the low_rank_adaptation_scope is expected to be a string. That would make users confuse to use None
or string 'None'
. It would be better to enhance the handle of None
. Either accepting None
and converting it to string 'None'
or showing an error message to let user pass string 'None'
is okay.
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 a good point. Thank you for bringing this up. Added the handle to None
.
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
e5ccefb
to
c7f570b
Compare
/te-ci jax |
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.
LGTM!
When could this get merged? I will cherry-pick this into the JAX 24.04 NGC release once it is merged into TE. |
@yhtang Just merged. Thanks for the heads up! |
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
TransformerLayer
andMultiHeadAttention
.