Skip to content

Commit b928071

Browse files
committed
fix bge memory excessive usage?
1 parent 5a098e1 commit b928071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ llama_context::llama_context(
270270
}
271271
}
272272

273-
if (!hparams.vocab_only) {
273+
if (!hparams.vocab_only && memory) {
274274
llama_memory_context_ptr mctx;
275275
if (memory) {
276276
LLAMA_LOG_DEBUG("%s: reserving full memory module\n", __func__);

0 commit comments

Comments
 (0)