We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
llama.cpp
1 parent 6b012a6 commit 29e8c67Copy full SHA for 29e8c67
llama/addon.cpp
@@ -167,10 +167,10 @@ class LLAMAContext : public Napi::ObjectWrap<LLAMAContext> {
167
}
168
169
ctx = llama_new_context_with_model(model->model, context_params);
170
- Napi::MemoryManagement::AdjustExternalMemory(Env(), llama_get_state_size(ctx));
+ Napi::MemoryManagement::AdjustExternalMemory(Env(), llama_state_get_size(ctx));
171
172
~LLAMAContext() {
173
- Napi::MemoryManagement::AdjustExternalMemory(Env(), -(int64_t)llama_get_state_size(ctx));
+ Napi::MemoryManagement::AdjustExternalMemory(Env(), -(int64_t)llama_state_get_size(ctx));
174
llama_free(ctx);
175
model->Unref();
176
0 commit comments