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

convert.py : fix llama/llama2 conversion due to vocab_size=-1 - take 2 #5019

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

databyte
Copy link
Contributor

PR #4818 (merged last week) reintroduced a config check for vocab_size that was addressed in PR #4258 (merged 2023-11-30).

Without the fix, llama2 models can't be converted. The error is:

ValueError: The model's vocab size is set to -1 in params.json. Please update it manually. Maybe 32000?

PR ggerganov#4818 (merged last week) reintroduced a config check for vocab_size that was addressed in PR ggerganov#4258 (merged 2023-11-30).

Without the fix, llama2 models can't be converted. The error is:

`ValueError: The model's vocab size is set to -1 in params.json. Please update it manually. Maybe 32000?`
@ggerganov ggerganov merged commit b467577 into ggerganov:master Jan 18, 2024
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Feb 3, 2024
…nov#5019)

PR ggerganov#4818 (merged last week) reintroduced a config check for vocab_size that was addressed in PR ggerganov#4258 (merged 2023-11-30).

Without the fix, llama2 models can't be converted. The error is:

`ValueError: The model's vocab size is set to -1 in params.json. Please update it manually. Maybe 32000?`
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
…nov#5019)

PR ggerganov#4818 (merged last week) reintroduced a config check for vocab_size that was addressed in PR ggerganov#4258 (merged 2023-11-30).

Without the fix, llama2 models can't be converted. The error is:

`ValueError: The model's vocab size is set to -1 in params.json. Please update it manually. Maybe 32000?`
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