Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
fcf4d60e
Commit
fcf4d60e
authored
Apr 30, 2024
by
jmorganca
Browse files
llm: add back check for empty token cache
parent
e33d5c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
llm/ext_server/server.cpp
llm/ext_server/server.cpp
+1
-1
No files found.
llm/ext_server/server.cpp
View file @
fcf4d60e
...
@@ -1032,7 +1032,7 @@ struct llama_server_context
...
@@ -1032,7 +1032,7 @@ struct llama_server_context
slot
.
has_next_token
=
false
;
slot
.
has_next_token
=
false
;
}
}
if
(
llama_token_is_eog
(
model
,
result
.
tok
))
if
(
!
slot
.
cache_tokens
.
empty
()
&&
llama_token_is_eog
(
model
,
result
.
tok
))
{
{
slot
.
stopped_eos
=
true
;
slot
.
stopped_eos
=
true
;
slot
.
has_next_token
=
false
;
slot
.
has_next_token
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment