llamamodel: free the batch in embedInternal (#2348)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel 2024-05-15 12:46:12 -04:00 committed by GitHub
parent 61cefcfd8a
commit 6d8888b267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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