tuieval 0.2.0.dev99__py3-none-any.whl → 0.2.0.dev103__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tuieval/_version.py +2 -2
- tuieval/compare.py +29 -0
- tuieval/engine.py +66 -19
- tuieval/tui.py +82 -10
- {tuieval-0.2.0.dev99.dist-info → tuieval-0.2.0.dev103.dist-info}/METADATA +2 -2
- {tuieval-0.2.0.dev99.dist-info → tuieval-0.2.0.dev103.dist-info}/RECORD +9 -9
- {tuieval-0.2.0.dev99.dist-info → tuieval-0.2.0.dev103.dist-info}/WHEEL +0 -0
- {tuieval-0.2.0.dev99.dist-info → tuieval-0.2.0.dev103.dist-info}/entry_points.txt +0 -0
- {tuieval-0.2.0.dev99.dist-info → tuieval-0.2.0.dev103.dist-info}/licenses/LICENSE +0 -0
tuieval/_version.py
CHANGED
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.2.0.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 2, 0, '
|
|
21
|
+
__version__ = version = '0.2.0.dev103'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 0, 'dev103')
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
tuieval/compare.py
CHANGED
|
@@ -41,6 +41,7 @@ def _load_native(data):
|
|
|
41
41
|
"pack": pack["name"], "pack_fp": pack["fingerprint"],
|
|
42
42
|
# hosted (OpenRouter) models: the provider endpoint and its declared quantization
|
|
43
43
|
"endpoint": run.get("endpoint"), "quantization": run.get("quantization"),
|
|
44
|
+
"hosted": bool(run.get("hosted") or run.get("endpoint")),
|
|
44
45
|
"loaded_alongside": run.get("loaded_alongside") or []}
|
|
45
46
|
rows = []
|
|
46
47
|
for r in data["results"]:
|
|
@@ -78,9 +79,37 @@ def load(paths):
|
|
|
78
79
|
row.update(raw=rec, path=path, pack_fp=data["pack"]["fingerprint"])
|
|
79
80
|
rows += r
|
|
80
81
|
infos.append(i)
|
|
82
|
+
# older results also noted hosted models alongside, which share nothing of this machine: a hosted
|
|
83
|
+
# model's rows note no one, and no one notes it
|
|
84
|
+
labels, prefixes = configured_hosted(paths)
|
|
85
|
+
labels |= {i["label"] for i in infos if i["hosted"]}
|
|
86
|
+
|
|
87
|
+
def local(along):
|
|
88
|
+
return [l for l in along if l not in labels and not l.startswith(tuple(prefixes))]
|
|
89
|
+
for row in rows:
|
|
90
|
+
row["alongside"] = [] if row["model"] in labels else local(row["alongside"])
|
|
91
|
+
for i in infos:
|
|
92
|
+
i["loaded_alongside"] = [] if i["label"] in labels else local(i["loaded_alongside"])
|
|
81
93
|
return rows, infos
|
|
82
94
|
|
|
83
95
|
|
|
96
|
+
def configured_hosted(paths):
|
|
97
|
+
"""(labels, label prefixes) models.toml says are hosted, in the workspaces these results/<label>/
|
|
98
|
+
<pack>.json are from: its hosted models, and the prefix of models named at run time on a hosted
|
|
99
|
+
server (e.g. "or-"). Covers hosted models whose results aren't loaded."""
|
|
100
|
+
from . import engine
|
|
101
|
+
labels, prefixes = set(), set()
|
|
102
|
+
for root in {os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(p)))) for p in paths}:
|
|
103
|
+
try:
|
|
104
|
+
cfg = engine.load_config(os.path.join(root, "models.toml"))
|
|
105
|
+
except Exception:
|
|
106
|
+
continue # no readable models.toml there: the results' own marks still apply
|
|
107
|
+
labels |= {m["label"] for m in cfg["models"] if engine.hosted(cfg, m)}
|
|
108
|
+
prefixes |= {engine.remote_label(n, s, "") for n, s in cfg["servers"].items()
|
|
109
|
+
if s.get("any_model") and engine.hosted(cfg, {"server": n})}
|
|
110
|
+
return labels, prefixes
|
|
111
|
+
|
|
112
|
+
|
|
84
113
|
def default_paths(results_dir=None):
|
|
85
114
|
"""results/<label>/<pack>.json, excluding smoke runs and the archive."""
|
|
86
115
|
results_dir = results_dir or workspace.path("results")
|
tuieval/engine.py
CHANGED
|
@@ -83,6 +83,21 @@ def builtin_config():
|
|
|
83
83
|
return tomllib.load(f)
|
|
84
84
|
|
|
85
85
|
|
|
86
|
+
def hosted(cfg, m):
|
|
87
|
+
"""A model served by an API elsewhere: tuieval doesn't start its server and its url isn't this
|
|
88
|
+
machine (or its server sets hosted = true). A server you started yourself on localhost still
|
|
89
|
+
counts as local (it uses the GPU)."""
|
|
90
|
+
if m.get("remote"):
|
|
91
|
+
return True
|
|
92
|
+
server = cfg["servers"][m["server"]]
|
|
93
|
+
if "hosted" in server: # say so for a server the url doesn't give away (e.g. a local proxy to an API)
|
|
94
|
+
return bool(server["hosted"])
|
|
95
|
+
if server.get("cmd"):
|
|
96
|
+
return False
|
|
97
|
+
host = urllib.parse.urlparse(server.get("url") or "").hostname or ""
|
|
98
|
+
return bool(host) and host not in ("localhost", "127.0.0.1", "::1", "0.0.0.0")
|
|
99
|
+
|
|
100
|
+
|
|
86
101
|
def load_config(path):
|
|
87
102
|
"""Read models.toml, fill in the built-ins it leaves out (builtin.toml) and each model's defaults.
|
|
88
103
|
[defaults] are filled key by key; [sampling] only when models.toml has none (sampling is part of
|
|
@@ -442,6 +457,7 @@ class Job:
|
|
|
442
457
|
earlier: list = dataclasses.field(default_factory=list) # earlier sittings (see Engine._sittings)
|
|
443
458
|
stop_early: bool = False # stop once the pack's FAIL is certain (verdict.fail_certain)
|
|
444
459
|
first: list = dataclasses.field(default_factory=list) # test ids round 1 asks first (most failed)
|
|
460
|
+
claimed: bool = False # its model's server took it on: it can no longer be removed from the run
|
|
445
461
|
|
|
446
462
|
@property
|
|
447
463
|
def label(self):
|
|
@@ -675,8 +691,9 @@ class Lane:
|
|
|
675
691
|
"""One model being run: its own request stream, stall reason and skip switch, so models run
|
|
676
692
|
side by side (parallel_models) stop independently. Runs and tunes in one lane use the engine's
|
|
677
693
|
main lane."""
|
|
678
|
-
def __init__(self, label=None):
|
|
694
|
+
def __init__(self, label=None, hosted=False):
|
|
679
695
|
self.label = label
|
|
696
|
+
self.hosted = hosted # a hosted model shares nothing of this machine, so it's never noted alongside
|
|
680
697
|
self.stream = None
|
|
681
698
|
self.stall = None # set by the stall watcher: why this model's server stalled
|
|
682
699
|
self.skip = threading.Event()
|
|
@@ -1282,18 +1299,7 @@ class Engine:
|
|
|
1282
1299
|
+ min(parallel_hosted or self.parallel_hosted(), hosted))
|
|
1283
1300
|
|
|
1284
1301
|
def hosted(self, m):
|
|
1285
|
-
|
|
1286
|
-
machine (or its server sets hosted = true). A server you started yourself on localhost still
|
|
1287
|
-
counts as local (it uses the GPU)."""
|
|
1288
|
-
if m.get("remote"):
|
|
1289
|
-
return True
|
|
1290
|
-
server = self.cfg["servers"][m["server"]]
|
|
1291
|
-
if "hosted" in server: # say so for a server the url doesn't give away (e.g. a local proxy to an API)
|
|
1292
|
-
return bool(server["hosted"])
|
|
1293
|
-
if server.get("cmd"):
|
|
1294
|
-
return False
|
|
1295
|
-
host = urllib.parse.urlparse(server.get("url") or "").hostname or ""
|
|
1296
|
-
return bool(host) and host not in ("localhost", "127.0.0.1", "::1", "0.0.0.0")
|
|
1302
|
+
return hosted(self.cfg, m)
|
|
1297
1303
|
|
|
1298
1304
|
def memory_need_gb(self, m):
|
|
1299
1305
|
"""GPU memory a model takes while served here: 0 for one we don't start (a hosted API or a
|
|
@@ -1723,6 +1729,33 @@ class Engine:
|
|
|
1723
1729
|
r["cond"].notify_all()
|
|
1724
1730
|
return added, None if added else "everything picked is already in the run"
|
|
1725
1731
|
|
|
1732
|
+
def removable(self, job):
|
|
1733
|
+
"""Why a job of the run going can't be removed (None: it can): only a pack not yet started."""
|
|
1734
|
+
if job.status in ("done", "failed", "skipped"):
|
|
1735
|
+
return "it has finished"
|
|
1736
|
+
if job.claimed or job.status == "running":
|
|
1737
|
+
return "it's running (k skips the model)"
|
|
1738
|
+
return None
|
|
1739
|
+
|
|
1740
|
+
def remove_jobs(self, keys):
|
|
1741
|
+
"""Take jobs not yet started (removable) out of the run going, the reverse of add_jobs: they never
|
|
1742
|
+
run, and a model left with none isn't started. Returns the jobs removed."""
|
|
1743
|
+
removed = []
|
|
1744
|
+
with self._run_lock:
|
|
1745
|
+
r = self._run
|
|
1746
|
+
if not r or not r["open"]:
|
|
1747
|
+
return removed
|
|
1748
|
+
for j in [j for j in r["jobs"] if j.key in keys and self.removable(j) is None]:
|
|
1749
|
+
j.status, j.note = "removed", "removed from the run"
|
|
1750
|
+
r["jobs"].remove(j)
|
|
1751
|
+
for _, group in r["pending"]:
|
|
1752
|
+
if j in group:
|
|
1753
|
+
group.remove(j)
|
|
1754
|
+
removed.append(j)
|
|
1755
|
+
r["pending"][:] = [g for g in r["pending"] if g[1]] # the lanes hold this very list
|
|
1756
|
+
r["cond"].notify_all()
|
|
1757
|
+
return removed
|
|
1758
|
+
|
|
1726
1759
|
def _run_lanes(self, parallel, parallel_hosted=4):
|
|
1727
1760
|
"""Run each model's jobs in its own lane: up to `parallel` local models at a time, in order (the
|
|
1728
1761
|
next one starts once a lane is free, nothing running stops it (runs_alone), and its memory fits
|
|
@@ -1817,15 +1850,23 @@ class Engine:
|
|
|
1817
1850
|
for t in threads:
|
|
1818
1851
|
t.join()
|
|
1819
1852
|
|
|
1853
|
+
def _local_lanes(self, lane, exclude=None):
|
|
1854
|
+
"""Labels of the local models served now (call with _lanes_lock held); none for a hosted lane."""
|
|
1855
|
+
if lane.hosted:
|
|
1856
|
+
return set()
|
|
1857
|
+
return {l for l, o in self._lanes.items() if not o.hosted} - {exclude}
|
|
1858
|
+
|
|
1820
1859
|
def _run_lane(self, label, mine):
|
|
1821
1860
|
"""One model's jobs, in this thread's own lane. Other models served meanwhile are noted on
|
|
1822
|
-
each answer (ran_alongside), since they share the machine's GPU and memory bandwidth.
|
|
1823
|
-
|
|
1861
|
+
each answer (ran_alongside), since they share the machine's GPU and memory bandwidth. Hosted
|
|
1862
|
+
models share neither, so they note nothing and nobody notes them."""
|
|
1824
1863
|
m = mine[0].model
|
|
1864
|
+
lane = Lane(label, self.hosted(m))
|
|
1825
1865
|
with self._lanes_lock:
|
|
1826
|
-
|
|
1827
|
-
other.
|
|
1828
|
-
|
|
1866
|
+
if not lane.hosted:
|
|
1867
|
+
for other in self._lanes.values():
|
|
1868
|
+
other.seen.add(label)
|
|
1869
|
+
lane.seen = self._local_lanes(lane)
|
|
1829
1870
|
if self.cfg["servers"][m["server"]].get("cmd"):
|
|
1830
1871
|
lane.port = self._lane_port(m)
|
|
1831
1872
|
self._lanes[label] = lane
|
|
@@ -1987,6 +2028,8 @@ class Engine:
|
|
|
1987
2028
|
"kv_type": sv.kv_type, "perf_args": sv.perf_args if local else None,
|
|
1988
2029
|
"perf_source": sv.perf_source, "server_version": self.server_version(m) if local else None}
|
|
1989
2030
|
ep = self.endpoint(m)
|
|
2031
|
+
if self.hosted(m):
|
|
2032
|
+
serving_info["hosted"] = True
|
|
1990
2033
|
if ep:
|
|
1991
2034
|
serving_info.update(endpoint=ep["tag"], provider=ep.get("provider"), quantization=ep.get("quantization"))
|
|
1992
2035
|
for j in jobs:
|
|
@@ -2006,6 +2049,10 @@ class Engine:
|
|
|
2006
2049
|
failed_in_row = 0
|
|
2007
2050
|
for j in jobs:
|
|
2008
2051
|
self._check()
|
|
2052
|
+
with self._run_lock:
|
|
2053
|
+
if j.status == "removed": # taken out of the run while its model ran another pack
|
|
2054
|
+
continue
|
|
2055
|
+
j.claimed = True
|
|
2009
2056
|
try:
|
|
2010
2057
|
self._run_job(j, base_url, run_info, alive=info["alive"])
|
|
2011
2058
|
except BaseException as ex:
|
|
@@ -2244,7 +2291,7 @@ class Engine:
|
|
|
2244
2291
|
self._check()
|
|
2245
2292
|
lane = self._lane()
|
|
2246
2293
|
with self._lanes_lock:
|
|
2247
|
-
lane.seen =
|
|
2294
|
+
lane.seen = self._local_lanes(lane, job.label)
|
|
2248
2295
|
self.emit("request_started", job=job, test=test["description"], test_id=test["id"],
|
|
2249
2296
|
has_image=bool(test.get("image")), repeat=rep, difficulty=test.get("difficulty", "unrated"))
|
|
2250
2297
|
waits = list(self.SERVER_RETRY_WAITS_S)
|
tuieval/tui.py
CHANGED
|
@@ -1828,16 +1828,33 @@ class RetestScreen(ModalScreen):
|
|
|
1828
1828
|
|
|
1829
1829
|
|
|
1830
1830
|
class ConfirmScreen(ModalScreen):
|
|
1831
|
-
|
|
1831
|
+
"""Yes or no; No has the focus, so Enter by reflex changes nothing. y: yes; n or Esc: no
|
|
1832
|
+
(and no_keys, e.g. the key that opened it, pressed again)."""
|
|
1833
|
+
BINDINGS = [Binding("y", "answer(True)", "Yes", show=False), Binding("n", "answer(False)", "No", show=False),
|
|
1834
|
+
Binding("escape", "answer(False)", "No", show=False)]
|
|
1835
|
+
|
|
1836
|
+
def __init__(self, question, no_keys=()):
|
|
1832
1837
|
super().__init__()
|
|
1833
1838
|
self.question = question
|
|
1839
|
+
self.no_keys = no_keys
|
|
1834
1840
|
|
|
1835
1841
|
def compose(self) -> ComposeResult:
|
|
1836
1842
|
with Vertical(id="dialog"):
|
|
1837
1843
|
yield Label(self.question)
|
|
1838
1844
|
with Horizontal(classes="dialog-buttons"):
|
|
1839
|
-
yield Button("Yes", id="yes", variant="error")
|
|
1840
|
-
yield Button("No", id="no")
|
|
1845
|
+
yield Button("Yes (y)", id="yes", variant="error")
|
|
1846
|
+
yield Button("No (n)", id="no")
|
|
1847
|
+
|
|
1848
|
+
def on_mount(self):
|
|
1849
|
+
self.query_one("#no", Button).focus()
|
|
1850
|
+
|
|
1851
|
+
def on_key(self, event):
|
|
1852
|
+
if event.key in self.no_keys:
|
|
1853
|
+
event.stop()
|
|
1854
|
+
self.dismiss(False)
|
|
1855
|
+
|
|
1856
|
+
def action_answer(self, yes):
|
|
1857
|
+
self.dismiss(yes)
|
|
1841
1858
|
|
|
1842
1859
|
@on(Button.Pressed)
|
|
1843
1860
|
def answer(self, event):
|
|
@@ -2114,6 +2131,7 @@ class RunScreen(Screen):
|
|
|
2114
2131
|
# priority: these work whichever pane has focus (the text panes would otherwise swallow keys)
|
|
2115
2132
|
BINDINGS = [
|
|
2116
2133
|
Binding("k", "skip_model", "Skip model", priority=True),
|
|
2134
|
+
Binding("x", "remove_job", "Remove from run", priority=True),
|
|
2117
2135
|
Binding("c", "cancel_all", "Cancel all", priority=True),
|
|
2118
2136
|
Binding("f", "toggle_follow", "Pause scroll", priority=True),
|
|
2119
2137
|
Binding("v", "watch_next", "Next model", priority=True),
|
|
@@ -2124,7 +2142,7 @@ class RunScreen(Screen):
|
|
|
2124
2142
|
Binding("q", "back", "Back", show=False, priority=True),
|
|
2125
2143
|
]
|
|
2126
2144
|
kind = "Run"
|
|
2127
|
-
LIVE_ONLY = {"skip_model", "cancel_all", "toggle_follow"}
|
|
2145
|
+
LIVE_ONLY = {"skip_model", "remove_job", "cancel_all", "toggle_follow"}
|
|
2128
2146
|
DONE_ONLY = set()
|
|
2129
2147
|
|
|
2130
2148
|
def __init__(self, jobs, parallel=None):
|
|
@@ -2180,6 +2198,8 @@ class RunScreen(Screen):
|
|
|
2180
2198
|
def check_action(self, action, parameters):
|
|
2181
2199
|
if action == "watch_next":
|
|
2182
2200
|
return self.running and self.side_by_side
|
|
2201
|
+
if action == "remove_job": # only while something is left to remove
|
|
2202
|
+
return self.running and any(self.app.engine.removable(j) is None for j in self.jobs)
|
|
2183
2203
|
if action in self.LIVE_ONLY:
|
|
2184
2204
|
return self.running
|
|
2185
2205
|
if action in self.DONE_ONLY:
|
|
@@ -2219,7 +2239,7 @@ class RunScreen(Screen):
|
|
|
2219
2239
|
with Vertical(id="top"):
|
|
2220
2240
|
yield Static(id="overall")
|
|
2221
2241
|
yield ProgressBar(id="bar", show_eta=False)
|
|
2222
|
-
yield DataTable(id="queue", cursor_type="
|
|
2242
|
+
yield DataTable(id="queue", cursor_type="row", zebra_stripes=True)
|
|
2223
2243
|
yield Static(id="current")
|
|
2224
2244
|
with Horizontal(id="done-bar"):
|
|
2225
2245
|
yield Button("New run [n]", id="done-new", variant="success")
|
|
@@ -2365,10 +2385,12 @@ class RunScreen(Screen):
|
|
|
2365
2385
|
self.total += j.total
|
|
2366
2386
|
self.query_one("#bar", ProgressBar).update(total=max(self.total, 1))
|
|
2367
2387
|
self.event(f"added to this run: {', '.join(j.key for j in d['jobs'])}")
|
|
2388
|
+
self.refresh_bindings()
|
|
2368
2389
|
self.update_overall()
|
|
2369
2390
|
elif kind in ("job_started", "job_update", "job_done"):
|
|
2370
2391
|
job = d["job"]
|
|
2371
2392
|
self.update_job(job)
|
|
2393
|
+
self.refresh_bindings() # x shows while a pack can still be removed
|
|
2372
2394
|
if kind == "job_started" and d.get("resumed"):
|
|
2373
2395
|
earlier = (f" ({fmt_secs(d['earlier_s'])} over {d['sittings']} earlier sitting(s))"
|
|
2374
2396
|
if d.get("sittings") else "")
|
|
@@ -2611,13 +2633,63 @@ class RunScreen(Screen):
|
|
|
2611
2633
|
|
|
2612
2634
|
# -- actions
|
|
2613
2635
|
def action_skip_model(self):
|
|
2614
|
-
if self.running:
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2636
|
+
if not self.running:
|
|
2637
|
+
return
|
|
2638
|
+
one = self.watch if self.side_by_side and self.watch else None
|
|
2639
|
+
names = [one] if one else self.active()
|
|
2640
|
+
if not names:
|
|
2641
|
+
return
|
|
2642
|
+
|
|
2643
|
+
def skip(yes):
|
|
2644
|
+
if not yes or not self.running:
|
|
2645
|
+
return
|
|
2646
|
+
if one:
|
|
2647
|
+
self.app.engine.skip_model(one)
|
|
2648
|
+
self.notify(f"Skipping {one}; the others keep going…")
|
|
2618
2649
|
else:
|
|
2619
2650
|
self.app.engine.skip_model()
|
|
2620
2651
|
self.notify("Skipping the current model…")
|
|
2652
|
+
self.app.push_screen(ConfirmScreen(
|
|
2653
|
+
f"Skip {', '.join(names)}? Answers so far are kept (a later run picks up from them); the rest "
|
|
2654
|
+
f"of {'its' if len(names) == 1 else 'their'} questions in this run are skipped.", no_keys=("k",)), skip)
|
|
2655
|
+
|
|
2656
|
+
def action_remove_job(self):
|
|
2657
|
+
"""Take the highlighted pack out of the run if it hasn't started (the reverse of adding it)."""
|
|
2658
|
+
if not self.running:
|
|
2659
|
+
return
|
|
2660
|
+
q = self.query_one("#queue", DataTable)
|
|
2661
|
+
try:
|
|
2662
|
+
key = q.coordinate_to_cell_key(q.cursor_coordinate).row_key.value
|
|
2663
|
+
except Exception:
|
|
2664
|
+
key = None
|
|
2665
|
+
job = next((j for j in self.jobs if j.key == key), None)
|
|
2666
|
+
if job is None:
|
|
2667
|
+
self.notify("Highlight a pack in the queue (click it or use ↑/↓ there), then press x.")
|
|
2668
|
+
return
|
|
2669
|
+
why = self.app.engine.removable(job)
|
|
2670
|
+
if why:
|
|
2671
|
+
self.notify(f"{job.label} · {job.pack.label} can't be removed: {why}.")
|
|
2672
|
+
return
|
|
2673
|
+
|
|
2674
|
+
def remove(yes):
|
|
2675
|
+
if not yes:
|
|
2676
|
+
return
|
|
2677
|
+
removed = self.app.engine.remove_jobs({job.key})
|
|
2678
|
+
if not removed:
|
|
2679
|
+
self.notify(f"{job.label} · {job.pack.label} started meanwhile, so it stays (k skips the model).")
|
|
2680
|
+
return
|
|
2681
|
+
for j in removed:
|
|
2682
|
+
q.remove_row(j.key)
|
|
2683
|
+
self.total -= j.total
|
|
2684
|
+
self.query_one("#bar", ProgressBar).update(total=max(self.total, 1))
|
|
2685
|
+
self.event(f"removed from this run: {', '.join(j.key for j in removed)}")
|
|
2686
|
+
self.update_overall()
|
|
2687
|
+
self.refresh_bindings()
|
|
2688
|
+
self.app.refresh_live()
|
|
2689
|
+
self.notify(f"Removed from the run: {job.label} · {job.pack.label}.")
|
|
2690
|
+
self.app.push_screen(ConfirmScreen(
|
|
2691
|
+
f"Remove {job.label} · {job.pack.label} from this run? It hasn't started, so nothing is lost; "
|
|
2692
|
+
"Start can add it again later.", no_keys=("x",)), remove)
|
|
2621
2693
|
|
|
2622
2694
|
def action_watch_next(self):
|
|
2623
2695
|
"""Stream the next model running alongside (from its next answer)."""
|
|
@@ -3489,7 +3561,7 @@ class EvalsApp(App):
|
|
|
3489
3561
|
return
|
|
3490
3562
|
run.handle("jobs_added", {"jobs": added})
|
|
3491
3563
|
models = sorted({j.label for j in added})
|
|
3492
|
-
self.notify(f"Added {len(added)} pack run(s) to the run going: {', '.join(models)}.
|
|
3564
|
+
self.notify(f"Added {len(added)} pack run(s) to the run going: {', '.join(models)}. x removes a pack not started yet.", timeout=10)
|
|
3493
3565
|
self.refresh_live()
|
|
3494
3566
|
|
|
3495
3567
|
def enqueue(self, item):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tuieval
|
|
3
|
-
Version: 0.2.0.
|
|
3
|
+
Version: 0.2.0.dev103
|
|
4
4
|
Summary: Evaluate local and frontier LLMs on your own questions: accuracy, speed, tokens and PASS/FAIL verdicts, in the terminal.
|
|
5
5
|
Project-URL: Homepage, https://github.com/ashe-wb/tuieval
|
|
6
6
|
Project-URL: Issues, https://github.com/ashe-wb/tuieval/issues
|
|
@@ -143,7 +143,7 @@ See **[docs/models.md](docs/models.md)** for servers, OpenRouter endpoint pinnin
|
|
|
143
143
|
|
|
144
144
|
1. **Pick packs and models** (space ticks; type to filter models by label or tag). Each model shows a short code per use case, e.g. `C✓ S?` (✓ pass, ✗ fail, ? inconclusive; grey = from earlier results). To run only some tests of a pack, highlight it and press `e`. Runs of different tests add up, and the pack can PASS once all its tests have run.
|
|
145
145
|
2. **Pick a tier** (Smoke to check setup, Screen, Certify) and **press `s`**. The line above the buttons shows how many answers that is and roughly how long it will take. For each model, tuieval starts its server (or uses a running one), checks the right model is loaded, runs every selected pack, then stops it.
|
|
146
|
-
3. **Watch the run:** progress with ETA, live score, tok/s, TTFT and memory, the current test with reasoning and answer side by side, recent results with the grader's reason. `k` skips a model, `c` cancels (finished work is kept and resumes next time). `n` sets up more evals while it runs: add them to this run (same tier) or queue them as the next run.
|
|
146
|
+
3. **Watch the run:** progress with ETA, live score, tok/s, TTFT and memory, the current test with reasoning and answer side by side, recent results with the grader's reason. `k` skips a model (after a yes), `c` cancels (finished work is kept and resumes next time). `n` sets up more evals while it runs: add them to this run (same tier) or queue them as the next run. `x` takes a pack that hasn't started out of the run; `w` lists queued runs (`del` removes one).
|
|
147
147
|
4. **Press `r` for results:** the PTA index (parsimony (tokens), time and accuracy as bars), production readiness, per question, and failures; click a column name to sort. `tuieval compare`, `tuieval history` and `tuieval items` have the rest: whether a difference is real, verdict history and test quality.
|
|
148
148
|
|
|
149
149
|
Other keys: `t` tunes the ticked models' speed flags, `a` adds a model, `m` scans for GGUFs, `p` saves or loads a preset, `x` hides a model. `?` explains any screen.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
tuieval/__init__.py,sha256=myVXVX7htbwezW6k3x_FuKgn1RSZ2WcTaDEMByGn6Wg,312
|
|
2
2
|
tuieval/__main__.py,sha256=E6Gls0DNz8GQK2K-kOUIx8cYhgANW_CH54VKrfCfs14,52
|
|
3
|
-
tuieval/_version.py,sha256=
|
|
3
|
+
tuieval/_version.py,sha256=OqCp46F86BGn3PQMHx7-p_Mh-DxYSRy-JY729z5yOWM,537
|
|
4
4
|
tuieval/builtin.toml,sha256=Nwu7O0qFzcrDAxXO_VZtDPvjVwxZ29OtYOW0BPihZGs,4410
|
|
5
5
|
tuieval/cli.py,sha256=mr0o_ud6NctZeU4WIrh17x_uzEK0vTeCynGP0wrCeBY,4812
|
|
6
6
|
tuieval/client.py,sha256=wtACBVsngtWopWWhIc4bB6mEUEi31dvvDePN-PjmXbM,11122
|
|
7
|
-
tuieval/compare.py,sha256=
|
|
7
|
+
tuieval/compare.py,sha256=UjZcWsbPep7EG4XRKWaEthUT0l0iN8rKIs1135dbt6c,32139
|
|
8
8
|
tuieval/doctor.py,sha256=j2MdDORstsAGPnRmpsnxau1_fR6sTc_oEFGM5zugTJU,7246
|
|
9
|
-
tuieval/engine.py,sha256=
|
|
9
|
+
tuieval/engine.py,sha256=J_r60eRHkJYWFXkK5C0soYzeDkJqep0SS14GixC7NOE,127431
|
|
10
10
|
tuieval/export.py,sha256=dbHQgL_ubWtIPM1sLzAew_gETnrDJyd0zgqVA5vkpXM,9657
|
|
11
11
|
tuieval/insights.py,sha256=m6HZk1VbX-avHr3xyT8eVJ5OLjKa_EKTVBxsu04X_HQ,28947
|
|
12
12
|
tuieval/logs.py,sha256=01gZK6tf53dIThaIrs1bEsz9eqKYVlcxpyaLnSPTVxo,8127
|
|
@@ -19,7 +19,7 @@ tuieval/remove.py,sha256=Vwh43nm9lVb9U9aN-h6CMYbkTwdR3UWfZObwweF72n0,5157
|
|
|
19
19
|
tuieval/run_evals.py,sha256=DN6FhC8Zj08N5pwlrCmlkbkTxA2vmT-G5sWJnp-S-AI,50114
|
|
20
20
|
tuieval/scaffold.py,sha256=YBOqniJpf_GtKKAFF3_OHxxMGbmTWdFjcClGcOnrrKE,12130
|
|
21
21
|
tuieval/selftest.py,sha256=nExkrOidgymlmvkxImEBfrQG5iTUN5WuRMIKtqusCCs,9835
|
|
22
|
-
tuieval/tui.py,sha256=
|
|
22
|
+
tuieval/tui.py,sha256=o9FpDJZH3cWBAjbEVnNzS3B6-tl6ke928zVIb6M7uhI,187913
|
|
23
23
|
tuieval/tune.py,sha256=azxxthgJeag8JyoQUgaRxq6oI1XvEgzb9vkszjJZH7w,39645
|
|
24
24
|
tuieval/verdict.py,sha256=3SM8qrVdWNIFDENagaR5ZPBYEnjsBtkYB9WS5TDVssU,20517
|
|
25
25
|
tuieval/watch_proxy.py,sha256=bnDO1i6n6yUs1hODoUWcMppJMGPavoQqs6aNYrIxpT8,11416
|
|
@@ -48,8 +48,8 @@ tuieval/templates/packs/tool_call/pack.toml,sha256=n4bx0lGJHSmW41uVqhfIXJ2BWZpmT
|
|
|
48
48
|
tuieval/templates/packs/tool_call/system.txt,sha256=mKxu-lB-0YjLHXdgeFJa8x2C180OvcNz5cHv2N5Bg3U,254
|
|
49
49
|
tuieval/templates/packs/tool_call/tests.yaml,sha256=Nv7c4syrzJ9cU8EBKSK_1ZSFx9V02aCjW4-2TBCPT7s,1859
|
|
50
50
|
tuieval/templates/packs/tool_call/tools.yaml,sha256=HgxCkh0On2VwbHSsjAGM8tNCK7ZtKLGrs7lMCn3Fprs,1048
|
|
51
|
-
tuieval-0.2.0.
|
|
52
|
-
tuieval-0.2.0.
|
|
53
|
-
tuieval-0.2.0.
|
|
54
|
-
tuieval-0.2.0.
|
|
55
|
-
tuieval-0.2.0.
|
|
51
|
+
tuieval-0.2.0.dev103.dist-info/METADATA,sha256=fTjLV29L3PEdrDViPhlaqlfJF7h1n2Bw1ruGyKniKPk,14691
|
|
52
|
+
tuieval-0.2.0.dev103.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
53
|
+
tuieval-0.2.0.dev103.dist-info/entry_points.txt,sha256=7eIhi1GpFxBP2OLJV02Nn8LwsNuO512eKOGt1IBbj04,45
|
|
54
|
+
tuieval-0.2.0.dev103.dist-info/licenses/LICENSE,sha256=7wfRgGtBGH1aXhZkIn47oUznqKC18kEPMvUVgol7Ffc,1077
|
|
55
|
+
tuieval-0.2.0.dev103.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|