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