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 vocab_size after low-mem-merge #703

Merged
merged 1 commit into from
Jul 3, 2023
Merged

fix vocab_size after low-mem-merge #703

merged 1 commit into from
Jul 3, 2023

Conversation

airaria
Copy link
Contributor

@airaria airaria commented Jul 2, 2023

Description

In the original low-mem-merge script, vocab_size of the merged model is not updated and remains 32000.
In this PR, I fix the bug and update vocal_size to the length of the tokenizer (with is 49953 for LLaMA and 49954 for Alpaca)

Related Issue

#681 (comment)

@airaria airaria requested a review from iMountTai July 2, 2023 16:22
Copy link
Collaborator

@iMountTai iMountTai left a comment

Choose a reason for hiding this comment

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

Fixed the problem, no other problems were found after running.

@ymcui ymcui merged commit 4b3d16f into main Jul 3, 2023
1 check passed
@ymcui ymcui deleted the bugfix branch July 7, 2023 07:43
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.

None yet

3 participants