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

LLamaCausalLM add support for tokenizer.json #9967

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

robbiemu
Copy link
Contributor

@robbiemu robbiemu commented Oct 20, 2024

SentencePiece by default uses BPE, which by default also uses a tokenizer.json. This does not have to be customized with tokens you cannot read from tokenizer.model, but as the BSC-LT/salamanda-7b and related models show, it can be. modified the LlamaModel class to augment the vocabulatry from the json file if it is present.

related issue: #9899

note: this was recreated because I made the mistake of force pushing the other day to pull the fork and update my PR branch, leading to all changes in master to look like they were being reapplied... this cost a like by LIN72H on the PR :( I'll not do it again.

@github-actions github-actions bot added the python python script changes label Oct 20, 2024
sed -i '' 's/\r$//' .gitignore (apparently I had a couple in there?)
@ngxson ngxson requested a review from compilade October 22, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python python script changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant