llamamodel: free the batch in embedInternal (#2348)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
pull/2310/head
Jared Van Bortel 3 weeks ago committed by GitHub
parent 61cefcfd8a
commit 6d8888b267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -940,6 +940,8 @@ void LLamaModel::embedInternal(
}
if (tokenCount) { *tokenCount = totalTokens; }
llama_batch_free(batch);
}
#if defined(_WIN32)

Loading…
Cancel
Save