-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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 provides empty response #4527
Comments
Also, just wanted to say a huge thanks for adding Phi in #4490 ! Excited to get a smaller parameter count model into folks hands 😃 |
I can't reproduce the issue: make -j main && ./main -m models/phi-2/ggml-model-f16.gguf -i -ngl 1
...
Instruct: Why is the sky blue?
Output:
The sky appears blue because of a phenomenon called Rayleigh scattering. The Earth's atmosphere scatters short-wavelength light (blue and violet) more than long-wavelength light (red and orange). Therefore, most of the sunlight that reaches our eyes from all directions gets scattered in all directions by the molecules and dust particles in the air. However, our eyes are more sensitive to blue light than red light, so we perceive the sky as blue.
llama_print_timings: load time = 271.83 ms
llama_print_timings: sample time = 10.16 ms / 93 runs ( 0.11 ms per token, 9157.15 tokens per second)
llama_print_timings: prompt eval time = 270.49 ms / 12 tokens ( 22.54 ms per token, 44.36 tokens per second)
llama_print_timings: eval time = 1235.21 ms / 93 runs ( 13.28 ms per token, 75.29 tokens per second)
llama_print_timings: total time = 15470.38 ms |
Thanks for taking a look at this so quickly. I think it's because I was using the wrong prompt template (I was adding a space space after the I'll close this for now and re-open if it comes up again. Thanks so much @ggerganov |
Ah yes, adding a space after |
FWIW I noticed a similar thing with other tools. E.g. with https://github.com/ml-explore/mlx, which makes me believe it's probably an "issue" with the model itself
|
I'm not sure if this is a problem with the model weights, but when running Phi on
master
, converted from https://huggingface.co/microsoft/phi-2Current Behavior
Environment and Context
The text was updated successfully, but these errors were encountered: