[GH-ISSUE #463] llama.cpp:5052: n_tokens <= n_batch #264

Closed
opened 2026-02-22 18:18:38 -05:00 by yindo · 1 comment
Owner

Originally created by @Rokschoon1 on GitHub (Dec 17, 2023).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/463

After I add a small document, the first time it answers correctly, but when I ask the same question again or another question then it stops working running with the error:

GGML_ASSERT: /app/server/node_modules/node-llama-cpp/llama/llama.cpp/llama.cpp:5052: n_tokens <= n_batch
/usr/local/bin/docker-entrypoint.sh: line 6: 133 Aborted node /app/server/index.js

Testing with:
-Running in docker
-The embedding and lancedb all in the container
mistral-7b-instruct-v0.2.Q5_K_S.gguf also tried mistral-7b-instruct-v0.2.Q3_K_L.gguf
-Works fine when connected to openai.

Originally created by @Rokschoon1 on GitHub (Dec 17, 2023). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/463 After I add a small document, the first time it answers correctly, but when I ask the same question again or another question then it stops working running with the error: GGML_ASSERT: /app/server/node_modules/node-llama-cpp/llama/llama.cpp/llama.cpp:5052: n_tokens <= n_batch /usr/local/bin/docker-entrypoint.sh: line 6: 133 Aborted node /app/server/index.js Testing with: -Running in docker -The embedding and lancedb all in the container mistral-7b-instruct-v0.2.Q5_K_S.gguf also tried mistral-7b-instruct-v0.2.Q3_K_L.gguf -Works fine when connected to openai.
yindo closed this issue 2026-02-22 18:18:38 -05:00
Author
Owner

@Rokschoon1 commented on GitHub (Dec 17, 2023):

Reading in discord. Probably memory limitations in Docker.

@Rokschoon1 commented on GitHub (Dec 17, 2023): Reading in discord. Probably memory limitations in Docker.
yindo changed title from llama.cpp:5052: n_tokens <= n_batch to [GH-ISSUE #463] llama.cpp:5052: n_tokens <= n_batch 2026-06-05 14:34:21 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#264