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

Support resize embeddings #670

Merged
merged 13 commits into from
Oct 2, 2024

Conversation

michaelbenayoun
Copy link
Member

@michaelbenayoun michaelbenayoun commented Jul 25, 2024

What does this PR do?

This PR adds support for resizing embedding when using TP. The new size needs to be divisible by the TP size.

@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.

@HuggingFaceDocBuilderDev

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

@michaelbenayoun michaelbenayoun marked this pull request as ready for review September 17, 2024 16:04
Copy link
Collaborator

@JingyaHuang JingyaHuang left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for adding the feature!

Copy link
Collaborator

@dacorvo dacorvo left a comment

Choose a reason for hiding this comment

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

One small nit but otherwise LGTM, thanks !

optimum/neuron/distributed/utils.py Outdated Show resolved Hide resolved
@michaelbenayoun michaelbenayoun merged commit 8646596 into main Oct 2, 2024
9 of 11 checks passed
@michaelbenayoun michaelbenayoun deleted the support_resize_token_embeddings_for_tp branch October 2, 2024 13:13
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