From e8b53d5d46cd4a9877f8083d46961410b5e7bd2c Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Tue, 6 Oct 2026 13:25:15 +0200 Subject: [PATCH] serve: a full card with an explicit --expert-cache says so, and what to do (#781, #831) The LOW free-VRAM line at READY now also names the explicit --expert-cache (its slot count) and suggests a smaller one or 'auto', which re-checks the free VRAM after the slots are written. Said, never changed. --- src/program/generate.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/program/generate.cpp b/src/program/generate.cpp index 8818a026..7300a9de 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -7172,6 +7172,14 @@ int main(int argc, char** argv) { std::fprintf(stderr, "strata serve: %lld MiB of VRAM free with everything loaded - LOW: requests may stall;" " add --vram-reserve-mib %lld to the config's args (or lower --max-context)\n", (long long) free_mib, (long long) (o.vram_reserve_mib + 512 - free_mib)); + // #781 / #831: an explicit --expert-cache N is a byte budget that is not checked against the VRAM once + // the slots are written (auto is), so on a card it fills a smaller N is the cure: a few hundred slots + // can be the difference between 14 and 100 tok/s under WDDM. Said, never changed. + if (!auto_cache) + std::fprintf(stderr, "strata serve: the expert cache was set with --expert-cache (%lld slots): a " + "smaller one - or --expert-cache auto, which checks the free VRAM once the " + "slots are written - leaves room; decode can be several times slower with the " + "card this full\n", (long long) xcache.slots()); } } // what the server's Monitor tab shows (servers before 0.1.8 skip unknown lines until READY)