From 763d57ddf8c0a53f460eeadb93cbc7f72cfc0c5a Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 28 Sep 2026 19:13:40 +0200 Subject: [PATCH] PR #69 follow-up: '(hits / lookups)' in the log; what the hit rate counts (not the PCIe share) --- serve/web/index.html | 2 +- src/program/generate.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/serve/web/index.html b/serve/web/index.html index 72a86ee5..fd19a8fe 100644 --- a/serve/web/index.html +++ b/serve/web/index.html @@ -117,7 +117,7 @@
- +
TimeStatusPromptReusedOutputTok/sHit rateDuration
Tok/sHit rateDuration
No requests yet
diff --git a/src/program/generate.cpp b/src/program/generate.cpp index c250f7e0..96ec7750 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -3276,8 +3276,10 @@ int main(int argc, char** argv) { prompt_ms > 0 ? 1000.0 * fresh / prompt_ms : 0.0, (long long) produced_n, decode_ms, decode_ms > 0 ? 1000.0 * produced_n / decode_ms : 0.0, (long long) draft_accepted, (long long) draft_offered, checks.size(), cancelled ? " (cancelled)" : ""); + // the VRAM share of the experts the pool looked up while decoding; experts it sent over PCIe for the GPU + // to read (--pcie-frac) are in neither count if (req_look > 0) { - std::fprintf(stderr, "strata serve: decode expert cache hit rate: %.1f%% (%lld / %lld hits)\n", + std::fprintf(stderr, "strata serve: decode expert cache hit rate: %.1f%% (%lld hits / %lld lookups)\n", 100.0 * (double) req_hits / (double) req_look, (long long) req_hits, (long long) req_look); }