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

Errors when using transformers with torch<2.5 #34795

Closed
1 task done
loadams opened this issue Nov 19, 2024 · 1 comment · Fixed by #34800 or #34816
Closed
1 task done

Errors when using transformers with torch<2.5 #34795

loadams opened this issue Nov 19, 2024 · 1 comment · Fixed by #34800 or #34816
Labels

Comments

@loadams
Copy link
Contributor

loadams commented Nov 19, 2024

System Info

Transformers latest from main, pytorch 2.3, cpu or gpu.

Needs to have #34184

Who can help?

@ArthurZucker @muellerzr

Information

  • My own modified scripts

Reproduction

  1. pip install torch==2.3
  2. pip install git+https://github.com/huggingface/transformers.git
  3. python -c "import transformers.models.vision_encoder_decoder.modeling_vision_encoder_decoder"

Expected behavior

This does not error out with torch 2.5, but does with torch 2.3 or 2.4, if these are not supported, we should get an error message when installing transformers.

@loadams loadams added the bug label Nov 19, 2024
github-merge-queue bot pushed a commit to microsoft/DeepSpeed that referenced this issue Nov 19, 2024
)

Latest transformers seems to break our tests that aren't on torch latest
(>= 2.5). Issue opened here:
huggingface/transformers#34795. This pins our
version so these tests can pass in the meantime.
@ArthurZucker
Copy link
Collaborator

Yep, will open a PR for that !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants