mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
System Message causing no answer from Assistant #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pedrognsmartins on GitHub (Feb 20, 2024).
Hello all,
I´m trying to use the system message as described below. Evertytime I use it I don´t have any answer from the LLM.
I was trying to find if there is any issue reported but I didn´t found it. Can someone help me on this ?
Thanks
@connor-makowski commented on GitHub (Feb 21, 2024):
For general use as shown in most examples, you should have a local ollama server running to be able to continue.
To do this:
ollama run llama2ollama run llama2:70b@connor-makowski commented on GitHub (Feb 21, 2024):
This is verbage as part of the PR: https://github.com/ollama/ollama-python/pull/64
@connor-makowski commented on GitHub (Feb 21, 2024):
It is also worth noting that you are using an
await. Are you using an async client?For a non async client you do not need await:
For an async client, you should use an await.
@pedrognsmartins commented on GitHub (Feb 23, 2024):
@connor-makowski Thanks for your feedback. I used both solution (sync and Async clients). the problem is that when assuming a message with Role: System, LLM is not giving answer.
@mxyng commented on GitHub (Mar 1, 2024):
what model are you using?
your snippet doesn't stream. is it possible the llm is responding but hasn't completed yet? in this mode, ollama will wait until it has the full response before returning to the call. this could look like non-response if it's also generating tokens at a slow rate (due to hardware limitations)