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 autotp linear check #1062

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

jiqing-feng
Copy link
Collaborator

@jiqing-feng jiqing-feng commented Dec 11, 2024

If the original model is a deepspeed auto TP model, the linear will be LinearLayer which don't have out_features, so we can use weight.shape[0] which has the same value as out_features.

@jiqing-feng jiqing-feng marked this pull request as ready for review December 11, 2024 05:19
@jiqing-feng
Copy link
Collaborator Author

Hi @sywangyi @IlyasMoutawwakil , please review this change. Thanks

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@IlyasMoutawwakil IlyasMoutawwakil merged commit bb51139 into huggingface:main Dec 11, 2024
21 of 22 checks passed
Signed-off-by: jiqing-feng <[email protected]>
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.

4 participants