examples : allow extracting embeddings from decoder contexts (#13797)

ggml-ci
This commit is contained in:
Georgi Gerganov authored and GitHub committed 2025-05-26 14:03:54 +03:00
1 parent 22229314fc
commit 79c137f776
4 files changed
+10 -16

No files matched your search

+1 -7
View File
@@ -3394,13 +3394,7 @@ struct server_context {
batch.logits + i,
};
int ret = 0;
if (do_encode) {
ret = llama_encode(ctx, batch_view);
} else {
ret = llama_decode(ctx, batch_view);
}
const int ret = llama_decode(ctx, batch_view);
metrics.on_decoded(slots);