server : update prompt on slot restore (#9800)

This commit is contained in:
Georgi Gerganov 2024-10-11 09:16:00 +03:00
parent 0fb9c91f14
commit 3ae86704e6
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -1778,6 +1778,9 @@ struct server_context {
}
slot->cache_tokens.resize(token_count);
// TODO: maybe detokenize the slot->cache_tokens instead?
slot->prompt = string_format("[restored %d tokens from file]", (int) token_count);
const int64_t t_end = ggml_time_us();
const double t_restore_ms = (t_end - t_start) / 1000.0;