mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Client.create inserts escape quotes \" for the last PARAMETER stop. #75
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 @chigkim on GitHub (Apr 27, 2024).
Hi,
If you run the following code to copy llama3 to test, it creates a modelfile with escape qotes for the last PARAMETER stop.
If I use
ollama create test -f test.modelfile, it works fine.Here's the output.
If you look at the last line, there's the escape quotes ". Not sure why only the last line has that.
Also if you look at the response string, it ends with <|eot_id|> because the last PARAMETER stop string in the new modelfile doesn't work.
Could you look into this?
Thanks so much!
@mxyng commented on GitHub (May 2, 2024):
thanks for the issue. since this is a ollama serve bug, I'm going to close it in favor of https://github.com/ollama/ollama/issues/3977