How exactly to set up the end-of-generation while directly using llama.dll API #14409
Unanswered
s7023369667
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to build a simple chat console application on .Net Framework.
I follow the sample code in llama.cpp -> examples -> simple and llama.cpp -> examples -> simple-chat to build.
Everything work great, but the problem is the model generation never stop generating until exceed the max token size. Model loading log showing the EOG maybe not setup right!
When I try to use the API llama_vocab_is_eog, it return true all the time !
Code:
Model Loading Log Output:
Beta Was this translation helpful? Give feedback.
All reactions