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
0a0e9f3e
Commit
0a0e9f3e
authored
Mar 19, 2024
by
Daniel Hiltgen
Browse files
Apply 01-cache.diff
parent
58d95cc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
llm/ext_server/server.cpp
llm/ext_server/server.cpp
+3
-1
No files found.
llm/ext_server/server.cpp
View file @
0a0e9f3e
...
@@ -1007,13 +1007,15 @@ struct llama_server_context
...
@@ -1007,13 +1007,15 @@ struct llama_server_context
slot
.
n_sent_text
+=
result
.
text_to_send
.
size
();
slot
.
n_sent_text
+=
result
.
text_to_send
.
size
();
// add the token to slot queue and cache
// add the token to slot queue and cache
}
}
slot
.
add_token_string
(
result
);
if
(
slot
.
params
.
stream
)
if
(
slot
.
params
.
stream
)
{
{
send_partial_response
(
slot
,
result
);
send_partial_response
(
slot
,
result
);
}
}
}
}
slot
.
add_token_string
(
result
);
if
(
incomplete
)
if
(
incomplete
)
{
{
slot
.
has_next_token
=
true
;
slot
.
has_next_token
=
true
;
...
...
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