mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-07 11:30:05 +00:00
llamamodel: free the batch in embedInternal (#2348)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
@@ -940,6 +940,8 @@ void LLamaModel::embedInternal(
|
||||
}
|
||||
|
||||
if (tokenCount) { *tokenCount = totalTokens; }
|
||||
|
||||
llama_batch_free(batch);
|
||||
}
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
Reference in New Issue
Block a user