Skip to content

why cuda.amp was removed from version 3.35.0 #30094

@thbupt

Description

@thbupt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions