-
Notifications
You must be signed in to change notification settings - Fork 51
support deepspeed LinearLayer and LinearAllreduce #698
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Xin He <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for DeepSpeed's tensor-parallel linear layers (LinearLayer
and LinearAllreduce
) to the auto_round quantization library. The changes enable quantization of models that use DeepSpeed's tensor-parallelized layers.
Key changes:
- Added DeepSpeed dependency detection and conditional imports
- Extended
SUPPORTED_LAYER_TYPES
to include DeepSpeed linear layers - Implemented specialized forward pass handling for
LinearAllreduce
layers with all-reduce communication
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
auto_round/utils.py | Adds DeepSpeed detection, imports, and extends supported layer types |
auto_round/wrapper.py | Implements DeepSpeed layer support with specialized forward methods and wrapper enhancements |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: Xin He <[email protected]>
for more information, see https://pre-commit.ci
support tensor-paralleled model from deepspeed