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

Add LayerSpec Support to ORTPipelineModule #20410

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

AdamLouly
Copy link
Contributor

@AdamLouly AdamLouly commented Apr 22, 2024

Description

In Deepspeed's Pipeline Parallel Implementation, there is a class used to instantiate the object after it's moved to the device and assigned in a stage.

This approach helps reduce peak memory usage.

In this PR, we're adding support to ORT for wrapping this LayerSpec.

@AdamLouly AdamLouly requested a review from wschin April 22, 2024 18:36
@AdamLouly
Copy link
Contributor Author

Thanks for the review.

@AdamLouly AdamLouly merged commit 4ce7bbf into main Apr 24, 2024
92 of 94 checks passed
@AdamLouly AdamLouly deleted the adamlouly/support_layerspec_pp branch April 24, 2024 00:57
TedThemistokleous pushed a commit to TedThemistokleous/onnxruntime that referenced this pull request May 7, 2024
### Description
In Deepspeed's Pipeline Parallel Implementation, there is a class used
to instantiate the object after it's moved to the device and assigned in
a stage.

This approach helps reduce peak memory usage. 

In this PR, we're adding support to ORT for wrapping this LayerSpec.
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.

2 participants