fix: pin transformers to v4.49.0 to fix ImportError: cannot import name 'AdamW' from 'transformers'
#516
by
valenzuelaomar
- opened
This requirement is picking up the latest version of transformers
. In the latest version of transformers v4.51.3, they removed the AdamW
optimizer which causes ImportError: cannot import name 'AdamW' from 'transformers'
. Pinning to the last available version of transformers which does have the AdamW optimizer fixes this issue.
Thank you so much for adding this suggestion. Rather than pinning to a specific version, it may be better to provide a fix such that the if the ImportError occurs, there is an alternative AdamW imported. That way we do not lose the ability to benefit from other updates in newer versions. We will add this when we get a chance, or if you would like to revise the pull request that would also be great.
ctheodoris
changed pull request status to
closed