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

CU-8698ek477: Fix AdamW import from tranformers to torch #523

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

mart-r
Copy link
Collaborator

@mart-r mart-r commented Mar 24, 2025

In transformers==4.50.0 the AdamW implementation was removed and the suggestion was to use the version in torch.optim instead:
huggingface/transformers#36177

Before the change to the import (the first commit in thie branch / PR), the GHA workflow will fail due to this import not existing and our loose dependencies.

Though the change is rather simple - just change the import. And the 2nd commit workflow should be successful.

@tomolopolis
Copy link
Member

@mart-r mart-r changed the title CU-8698ek477: Add TODO to MetaCAT ML utils regarding AdamW import CU-8698ek477: Fix AdamW import from tranformers to torch Mar 24, 2025
Copy link
Member

@tomolopolis tomolopolis left a comment

Choose a reason for hiding this comment

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

lgtm

@mart-r mart-r merged commit c3d4254 into master Mar 24, 2025
8 checks passed
mart-r added a commit that referenced this pull request Mar 24, 2025
* CU-8698ek477: Add TODO to MetaCAT ML utils regarding AdamW import

* CU-8698ek477: Fix AdamW import (trf->torch)
mart-r added a commit that referenced this pull request Mar 24, 2025
* CU-8698ek477: Add TODO to MetaCAT ML utils regarding AdamW import

* CU-8698ek477: Fix AdamW import (trf->torch)
mart-r added a commit that referenced this pull request Mar 24, 2025
* CU-8698ek477: Add TODO to MetaCAT ML utils regarding AdamW import

* CU-8698ek477: Fix AdamW import (trf->torch)
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.

2 participants