Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
PR #69 follow-up: '(hits / lookups)' in the log; what the hit rate counts (not the PCIe share)
Niko1221763d57ddf8c0
diff --git a/serve/web/index.html b/serve/web/index.htmlindex 72a86ee57..fd19a8fe8 100644--- a/serve/web/index.html+++ b/serve/web/index.html@@ -117,7 +117,7 @@<div class="table-wrap" id="req-wrap"><table class="st-table"><thead><tr><th>Time</th><th>Status</th><th class="num">Prompt</th><th class="num">Reused</th><th class="num">Output</th>- <th class="num">Tok/s</th><th class="num">Hit rate</th><th class="num">Duration</th></tr></thead>+ <th class="num">Tok/s</th><th class="num" title="While writing the answer: the share of the experts looked up that were already in VRAM (experts copied over PCIe are not counted)">Hit rate</th><th class="num">Duration</th></tr></thead><tbody id="req-body"><tr><td colspan="8" class="muted">No requests yet</td></tr></tbody></table></div>diff --git a/src/program/generate.cpp b/src/program/generate.cppindex c250f7e06..96ec77500 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 countif (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);}