Skip to content

Commit 5deee0a

Browse files
committed
squash! server : use common_token_to_piece instead of common_detokenize
Use common_token_to_piece for post_sampling_probs as well.
1 parent b70fd3a commit 5deee0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,7 @@ struct server_context {
22752275
for (size_t i = 0; i < std::min(max_probs, n_probs); i++) {
22762276
result.probs.push_back({
22772277
cur_p->data[i].id,
2278-
common_detokenize(ctx, {cur_p->data[i].id}, special),
2278+
common_token_to_piece(ctx, cur_p->data[i].id, special),
22792279
cur_p->data[i].p
22802280
});
22812281
}

0 commit comments

Comments
 (0)