Skip to content

Commit

Permalink
server : update prompt on slot restore (#9800)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored Oct 11, 2024
1 parent 693c8bf commit 32da4a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 32da4a2

Please sign in to comment.