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

why cuda.amp was removed from version 3.35.0 #30094

Closed
4 tasks
thbupt opened this issue Apr 7, 2024 · 2 comments
Closed
4 tasks

why cuda.amp was removed from version 3.35.0 #30094

thbupt opened this issue Apr 7, 2024 · 2 comments

Comments

@thbupt
Copy link

thbupt commented Apr 7, 2024

System Info

transformers==3.35.0 and transformers==3.34.0

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

In transformers==3.35.0:
image
In transformers==3.34.0
image

Expected behavior

It seems that you can only use Mixed precision training with cpu_amp or apex, while torch.cuda.amp was removed.

@amyeroberts
Copy link
Collaborator

Hi @thbupt, you can find the relevant PR here: #25702

Copy link

github-actions bot commented May 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

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

No branches or pull requests

2 participants