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

fix integration #1569

Closed

Conversation

rui-ren
Copy link
Contributor

@rui-ren rui-ren commented Dec 6, 2023

What does this PR do?

Fixes # (issue)

File "/opt/conda/envs/ptca/lib/python3.8/site-packages/optimum/onnxruntime/trainer.py", line 58, in <module>
    from transformers.deepspeed import deepspeed_init, deepspeed_load_checkpoint, is_deepspeed_zero3_enabled
ImportError: cannot import name 'deepspeed_load_checkpoint' from 'transformers.deepspeed'

Issue

Transformers moved 3rd party package to integrations folder, this PR is to make this file compatible with transformers>4.31.0

huggingface/transformers@4b79697

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@rui-ren rui-ren closed this Dec 6, 2023
@rui-ren rui-ren deleted the compatible-with-transformers>4.31.0 branch December 6, 2023 01:27
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.

1 participant