From 5de8d26949591006fedb409325e8534efce0d098 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 22 Oct 2026 16:22:37 +0200 Subject: [PATCH] tests: setup no longer tips about the conversation cache (the engine sizes it, #3493) --- tools/test_setup_bench_tips.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/test_setup_bench_tips.py b/tools/test_setup_bench_tips.py index 141f377b..f549ed11 100644 --- a/tools/test_setup_bench_tips.py +++ b/tools/test_setup_bench_tips.py @@ -47,9 +47,10 @@ class BenchTips(unittest.TestCase): self.assertEqual([t for t in tips(res, {"STRATA_RESIDENT_HEADROOM_GIB": "8"}, ram=32) if "HEADROOM" in t], []) self.assertEqual([t for t in tips(BASE, ram=32) if "HEADROOM" in t], []) # not a resident config - def test_conversation_cache_for_agents(self): - self.assertTrue(any("--conversation-cache-mib 8192" in t for t in tips(ram=64, model=40))) - self.assertEqual([t for t in tips(ram=64, model=41) if "conversation" in t], []) # < 24 GB left + def test_no_conversation_cache_tip_the_engine_sizes_it_itself(self): + # 0.2.3 (#3493): the engine sizes the conversation cache from the free RAM when no value is given, so setup no longer tips about it + for ram, model in ((64, 40), (64, 41), (128, 40)): + self.assertEqual([t for t in tips(ram=ram, model=model) if "conversation" in t], []) self.assertEqual([t for t in tips([*BASE, "--conversation-cache-mib", "4096"], ram=128) if "conversation" in t], []) def test_vision_cpu_on_small_cards(self):