Skip to content

Update ort CIs (slow, gpu, train)#2024

Merged
echarlaix merged 73 commits into
mainfrom
enable-ort-gpu-tests
Jan 29, 2025
Merged

Update ort CIs (slow, gpu, train)#2024
echarlaix merged 73 commits into
mainfrom
enable-ort-gpu-tests

Conversation

@IlyasMoutawwakil
Copy link
Copy Markdown
Member

@IlyasMoutawwakil IlyasMoutawwakil commented Sep 14, 2024

What does this PR do?

This is a PR that fixes:

  • Onnxruntime Training testing and examples.
  • Onnruntime GPU testing (CUDA & TRT EPs), and io binding implementation.

I tried my best to make things work with the least change, in some cases that was hard, e.g. io binding was dependant on the input order in the forward signature, which made some model types incompatible with the ORTModel signature.

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?

Who can review?

@IlyasMoutawwakil IlyasMoutawwakil added training gpu-test trigger GPU tests labels Sep 14, 2024
Copy link
Copy Markdown
Collaborator

@echarlaix echarlaix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the great PR @IlyasMoutawwakil !

Comment thread tests/onnxruntime/test_diffusion.py
)
self.state.is_hyper_param_search = trial is not None
self.state.train_batch_size = self._train_batch_size

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also cc @JingyaHuang who took care of the ort training integrations

Comment thread optimum/onnxruntime/modeling_ort.py
Comment thread optimum/utils/import_utils.py
Comment thread optimum/onnxruntime/modeling_ort.py
Comment thread optimum/utils/import_utils.py Outdated
Comment thread setup.py Outdated
Comment thread setup.py
"accelerate", # ORTTrainer requires it.
"transformers>=4.36,<4.49.0",
],
"onnxruntime-training": [
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The readme and docs should reflect this change

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in #2173

@echarlaix
Copy link
Copy Markdown
Collaborator

Thanks a lot @IlyasMoutawwakil for adding many fixes !

@echarlaix echarlaix merged commit b755036 into main Jan 29, 2025
@echarlaix echarlaix deleted the enable-ort-gpu-tests branch January 29, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants