tools: batch_groups_cache_test.py reads the engine log only

This commit is contained in:
Niko1221 committed 2026-10-09 11:51:43 +02:00
1 parent 31ffa153c6
commit 399a75c8ad
1 file changed
-1
-1
View File
@@ -76,7 +76,6 @@ json.dump(rounds, open(sys.argv[2], "w"))
text = open(log, errors="replace").read()
reqs = [(int(a), int(b)) for a, b in re.findall(r"strata serve: prompt (\d+) tokens = (\d+) reused", text)]
reqs += [(int(a), int(b)) for a, b in re.findall(r"strata batch: slot \d+ \w+ (\d+) tokens", text) if False]
print("requests (prompt tokens, reused):", reqs)
print("slot gave back lines:", len(re.findall(r"gave back", text)), " conversation cache restores:",
len(re.findall(r"conversation cache: restored", text)))