-
Notifications
You must be signed in to change notification settings - Fork 63
Upgrading transformers version to latest 4.50 #331
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
Conversation
d194e98 to
492ef1f
Compare
7980900 to
6b06ea2
Compare
vbaddi
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.
LGTM, Thanks :)
6e855e3 to
1f37b82
Compare
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
1f37b82 to
707e18a
Compare
Removed unnecessary import Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
707e18a to
014f02c
Compare
|
ochougul
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.
most of the comments apply to multiple files. please change the code in all files that follow same structure
QEfficient/transformers/quantizers/quantizer_compressed_tensors.py
Outdated
Show resolved
Hide resolved
|
Key Note of this PR-
|
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
|
The further code cleaning of attention class and unused parameters will be done in upcoming PR. |
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
ochougul
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.
Approving now. But few things need to be addressed.
- don't use if condition on
attention_maskandpast_key_valuebecause we know their default values - remove unused params from forward or raise warning
- change year to 2025 on top
|
Thanks @ochougul, all the suggested and pending changes will be addressed in upcoming PR. |
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com>
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com>
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com>
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com>
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com> Signed-off-by: eplatero <quic_eplatero@quicinc.com>
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com> Signed-off-by: eplatero <quic_eplatero@quicinc.com>
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com> Signed-off-by: eplatero <quic_eplatero@quicinc.com>
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com> Signed-off-by: eplatero <quic_eplatero@quicinc.com>
1. Upgrading transformers version to latest 4.50 2. Code cleaned 3. Fixed issue of `DynamicCache` --------- Signed-off-by: Amit Raj <quic_amitraj@quicinc.com> Signed-off-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com> Signed-off-by: Rishin Raj <quic_rishinr@quicinc.com> Co-authored-by: Dipankar Sarkar <quic_dipankar@quicinc.com> Co-authored-by: asmigosw <quic_asmigosw@quicinc.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com> Signed-off-by: eplatero <quic_eplatero@quicinc.com>
DynamicCache