-
Notifications
You must be signed in to change notification settings - Fork 759
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
Phi-3-mini-4k-instruct : Failing to stop at <|end|> on generating the answer. #780
Comments
i dont know how text is getting cross lines. please anyhelp thanks |
Could you share the model you are using (e.g. |
convert(hf_path = "microsoft/Phi-3-mini-4k-instruct", phi3_path = "/Train_custom_LLM/LLMX/phir3_model_f/" Thanks for quick reply and editing my question.. |
It seems this isn't a bug. The original Phi-3-mini-4k-instruct model uses "<|endoftext|>" (not <|end|>) as its end-of-sequence (EOS) token. You can verify this in the model's tokenizer.config file. |
I updated the MLX Community Phi-3 models to use the correct eos token. Also you can always specify the eos token in the
|
########################## Output ##########
The text was updated successfully, but these errors were encountered: