Skip to content

Commit 32da4a2

Browse files
authored
server : update prompt on slot restore (#9800)
1 parent 693c8bf commit 32da4a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/server/server.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,9 @@ struct server_context {
17781778
}
17791779
slot->cache_tokens.resize(token_count);
17801780

1781+
// TODO: maybe detokenize the slot->cache_tokens instead?
1782+
slot->prompt = string_format("[restored %d tokens from file]", (int) token_count);
1783+
17811784
const int64_t t_end = ggml_time_us();
17821785
const double t_restore_ms = (t_end - t_start) / 1000.0;
17831786

0 commit comments

Comments
 (0)