[GH-ISSUE #4972] [BUG]: Generic OpenAI on llama.cpp server incorrect metrics #3119

Closed
opened 2026-02-22 18:32:42 -05:00 by yindo · 0 comments
Owner

Originally created by @Vulpes-Stellae on GitHub (Feb 7, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4972

Originally assigned to: @angelplusultra on GitHub.

Stack

  • AnythingLLM Desktop Windows v1.10.0.
  • Docker hosted llama.cpp server in router mode.

Issue

The displayed metrics inside AnythingLLM Desktop and the corresponding metrics for the same request inside the llama.cpp server logs.

Image
[38311] prompt eval time =     131.41 ms /    53 tokens (    2.48 ms per token,   403.33 tokens per second)
[38311]        eval time =    1809.32 ms /   222 tokens (    8.15 ms per token,   122.70 tokens per second)
[38311]       total time =    1940.73 ms /   275 tokens

The evaluation time is correct, 1.809s for 1809.32ms.
The tokens per second are incorrect, they should be 122.70 tok/s and not 4.98 tok/s.

Details

Tested with GLM-4.7-Flash and Qwen3-VL-30B-A3B-Thinking so I suspect the issue happens with any LLM.

I have not tested on a llama.cpp server not in router mode but I don't think it makes any difference.

Originally created by @Vulpes-Stellae on GitHub (Feb 7, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4972 Originally assigned to: @angelplusultra on GitHub. ### Stack - AnythingLLM Desktop Windows v1.10.0. - Docker hosted llama.cpp server in router mode. ### Issue The displayed metrics inside AnythingLLM Desktop and the corresponding metrics for the same request inside the llama.cpp server logs. <img width="466" height="55" alt="Image" src="https://github.com/user-attachments/assets/ad100920-8ddf-4b1f-9327-f685ae014662" /> ``` [38311] prompt eval time = 131.41 ms / 53 tokens ( 2.48 ms per token, 403.33 tokens per second) [38311] eval time = 1809.32 ms / 222 tokens ( 8.15 ms per token, 122.70 tokens per second) [38311] total time = 1940.73 ms / 275 tokens ``` The evaluation time is correct, 1.809s for 1809.32ms. The tokens per second are incorrect, they should be 122.70 tok/s and not 4.98 tok/s. ### Details Tested with GLM-4.7-Flash and Qwen3-VL-30B-A3B-Thinking so I suspect the issue happens with any LLM. I have not tested on a llama.cpp server not in router mode but I don't think it makes any difference.
yindo added the possible bugcore-team-onlyinvestigating labels 2026-02-22 18:32:42 -05:00
yindo closed this issue 2026-02-22 18:32:42 -05:00
yindo changed title from [BUG]: Generic OpenAI on llama.cpp server incorrect metrics to [GH-ISSUE #4972] [BUG]: Generic OpenAI on llama.cpp server incorrect metrics 2026-06-05 14:50:24 -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#3119