Skip to content

Conversation

@quic-amitraj
Copy link
Contributor

@quic-amitraj quic-amitraj commented Mar 27, 2025

  1. Upgrading transformers version to latest 4.50
  2. Code cleaned
  3. Fixed issue of DynamicCache

@quic-amitraj quic-amitraj added the wip Work in progress label Mar 27, 2025
@quic-amitraj quic-amitraj self-assigned this Mar 27, 2025
@quic-amitraj quic-amitraj force-pushed the tf_upgrade_4.50 branch 3 times, most recently from d194e98 to 492ef1f Compare April 1, 2025 05:06
@quic-amitraj quic-amitraj requested a review from vbaddi April 2, 2025 08:42
@quic-amitraj quic-amitraj marked this pull request as ready for review April 2, 2025 08:43
@quic-amitraj quic-amitraj removed the wip Work in progress label Apr 2, 2025
@quic-amitraj quic-amitraj force-pushed the tf_upgrade_4.50 branch 2 times, most recently from 7980900 to 6b06ea2 Compare April 8, 2025 04:40
Copy link
Contributor

@vbaddi vbaddi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks :)

@qcdipankar qcdipankar self-assigned this Apr 10, 2025
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>
quic-rishinr and others added 3 commits April 11, 2025 12:23
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>
Removed unnecessary import

Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
@ochougul
Copy link
Contributor

  • Remove unused imports from all modelling files.
  • Remove unused params from all forward methods or raise warnings
  • There are un-necessary if conditions for attention_mask and past_key_values
    But we know that we don't support attention_mask so it will always be None and we always need past_key_value so it will always be passed. so these if condition can be removed.

Copy link
Contributor

@ochougul ochougul left a 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

@quic-amitraj
Copy link
Contributor Author

Key Note of this PR-

  1. Upgrade: Updated TensorFlow from version 4.46.3 to 4.50.0.
  2. Code Cleaning and Optimization: Performed code cleaning and optimizations across all modeling files to some extent. Further changes will be addressed in upcoming PRs to enhance the code quality.

Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
Signed-off-by: Amit Raj <quic_amitraj@quicinc.com>
@quic-amitraj
Copy link
Contributor Author

quic-amitraj commented Apr 15, 2025

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>
Copy link
Contributor

@ochougul ochougul left a 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.

  1. don't use if condition on attention_mask and past_key_value because we know their default values
  2. remove unused params from forward or raise warning
  3. change year to 2025 on top

@quic-amitraj
Copy link
Contributor Author

Thanks @ochougul, all the suggested and pending changes will be addressed in upcoming PR.

@quic-amitraj quic-amitraj merged commit d7a2772 into main Apr 15, 2025
5 checks passed
@ochougul ochougul mentioned this pull request Apr 15, 2025
quic-dhirajku pushed a commit that referenced this pull request Apr 16, 2025
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>
quic-meetkuma pushed a commit to vbaddi/efficient-transformers that referenced this pull request Apr 21, 2025
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>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
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>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
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>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
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>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
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>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
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>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
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>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
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>
@quic-rishinr quic-rishinr deleted the tf_upgrade_4.50 branch June 13, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants