ollama icon indicating copy to clipboard operation
ollama copied to clipboard

Default Stop Sequence is not working when user provides additional stop sequences

Open Nanthagopal-Eswaran opened this issue 1 year ago • 0 comments

What is the issue?

I want to stop generation at stop sequence "\nObservation".

My expectation here is generation will stop at either "\nObservation" or models default stop sequence "<|eot_id|>" (in llama3 case).

But it does not happen and model keep on generating answer.

Request: image

Response: image

I think we should add stop sequences to default stop sequence instead of replacing them

OS

Windows

GPU

No response

CPU

Intel

Ollama version

0.1.27

Nanthagopal-Eswaran avatar May 19 '24 18:05 Nanthagopal-Eswaran