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
phi3 mini model add new token #411
Comments
example token special: "32005": { | "content": "<|function_call|>", https://huggingface.co/NickyNicky/Phi-3-mini-128k-instruct_function/blob/main/tokenizer_config.json |
Yes - I haven't announced it yet, but you can use: from unsloth import add_new_tokens
add_new_tokens(model, tokenizer, new_tokens = ["<SPECIAL_TOKEN_1>", "<SPECIAL_TOKEN_2>") Do this before |
similar? special_tokens_dict = {'additional_special_tokens': ['[C1]','[C2]','[C3]','[C4]']} |
oh theyre all special tokens! just use |
Is it possible to add new token and special tokens to be trained?
What would the code be like?
The text was updated successfully, but these errors were encountered: