tuieval 0.2.0.dev143__py3-none-any.whl → 0.2.0.dev145__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 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.dev143'
22
- __version_tuple__ = version_tuple = (0, 2, 0, 'dev143')
21
+ __version__ = version = '0.2.0.dev145'
22
+ __version_tuple__ = version_tuple = (0, 2, 0, 'dev145')
23
23
 
24
24
  __commit_id__ = commit_id = None
tuieval/pta.py CHANGED
@@ -58,14 +58,15 @@ def memory_gb(infos):
58
58
  SORTS = ("accuracy", "score")
59
59
 
60
60
 
61
- def index(rows, models=None, memory=None, sort="accuracy", min_score=MIN_SCORE):
61
+ def index(rows, models=None, memory=None, sort="accuracy", min_score=MIN_SCORE, score_models=False):
62
62
  """{"questions": n shared, "models": [{model, P, T, A, S, cut, cut_pct, tokens, total_s, passed, answers, alongside,
63
63
  fewest, fastest, tps, ttft, memory_gb, repeats: (fewest, most) answers per question}],
64
64
  "left_out": [(model, questions answered)], "low_score": [(model, score %) left out below MIN_SCORE],
65
65
  "no_answers": [model], "most": questions answered by the most-answered model}, best accuracy (sort="accuracy") or score (sort="score") first. S: the mean
66
66
  score (partial credit) in %. models: the ones to compare (default: every model in rows
67
67
  with enough answers and a score of at least min_score, 0 for any; models named here are compared
68
- whatever their count and score). memory: memory_gb()."""
68
+ whatever their count and score, unless score_models: then min_score applies to them too, as when
69
+ a pack picks the models that answered all of it). memory: memory_gb()."""
69
70
  no_answers = sorted({r["model"] for r in rows} - {r["model"] for r in rows if not r.get("error")})
70
71
  rows = [r for r in rows if not r.get("error")] # a server or connection error isn't an answer
71
72
  tests = compare.per_question(rows)
@@ -118,7 +119,7 @@ score (partial credit) in %. models: the ones to compare (default: every model i
118
119
 
119
120
  shared, out = compare_on(models)
120
121
  low_score = []
121
- if not picked and min_score:
122
+ if (not picked or score_models) and min_score:
122
123
  # by default, models scoring below min_score are left out too (unless every model is), and the rest
123
124
  # compared again: without them the shared questions can grow, and scores move, so until none is below
124
125
  while True:
tuieval/tui.py CHANGED
@@ -3362,10 +3362,13 @@ class ResultsScreen(Screen):
3362
3362
  self.query_one("#pta-bars", Static).update("")
3363
3363
  self.query_one("#pta-left-out", Static).update("")
3364
3364
  return
3365
- # none picked: every model with enough answers and score (pta.index leaves out the rest, and says so)
3365
+ # none picked: every model with enough answers and score (pta.index leaves out the rest, and says so).
3366
+ # The models a pack picked (all that answered it) aren't a pick by hand: the minimum score applies to them
3367
+ pick = self.app.pack_pick
3368
+ by_pack = bool(chosen) and bool(pick) and chosen == {m for m in pick["models"] if m in present}
3366
3369
  result = pta.index(rows, sorted(chosen) or None, pta.memory_gb(self.infos),
3367
3370
  self.query_one("#pta-sort", Select).value or "accuracy",
3368
- self.query_one("#pta-min-score", Select).value or 0)
3371
+ self.query_one("#pta-min-score", Select).value or 0, score_models=by_pack)
3369
3372
  self.query_one("#pta-note", Static).update(pta.scope_note(result, sorted(present)))
3370
3373
  self.pta_result = result
3371
3374
  removed = [m for m in self.pta_removed_now() if m in present]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: tuieval
3
- Version: 0.2.0.dev143
3
+ Version: 0.2.0.dev145
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
@@ -1,6 +1,6 @@
1
1
  tuieval/__init__.py,sha256=myVXVX7htbwezW6k3x_FuKgn1RSZ2WcTaDEMByGn6Wg,312
2
2
  tuieval/__main__.py,sha256=E6Gls0DNz8GQK2K-kOUIx8cYhgANW_CH54VKrfCfs14,52
3
- tuieval/_version.py,sha256=IhMN4aGX2qpts3nn4p0erjvroZ9J3nYFQva3bC7NIDA,537
3
+ tuieval/_version.py,sha256=GuyqddQoZPkFHR2O26P5PKQWp-kBn_BjaBoPNtiEbB8,537
4
4
  tuieval/agents.py,sha256=XmY4d4PAnC7BQcs_6KO9WTuIdpnwYVAdyhqItybWdAM,15408
5
5
  tuieval/builtin.toml,sha256=QLQP1nh577RW6x0Z38JKNES-MPTSmlZAcxD5Javbk4Q,4768
6
6
  tuieval/cli.py,sha256=mr0o_ud6NctZeU4WIrh17x_uzEK0vTeCynGP0wrCeBY,4812
@@ -16,12 +16,12 @@ tuieval/machines.py,sha256=t9tu6CZeXZON4EtOVnEwP4VtaynpVLf9Cz8TNjf7jtY,20124
16
16
  tuieval/onboard.py,sha256=IYETVDWCCo9vF0Dtj4_rr9VanYeCky8PwP3-2g5A_l0,6215
17
17
  tuieval/packs.py,sha256=KOj0BkwsB2124aslGyauZonyyGqtSrCJ-WAozEntmqE,17466
18
18
  tuieval/profiles.py,sha256=soeLxjdB-l-OxSY8jZ4yjwfdSnsBV-QICcwKxRJS7nQ,3663
19
- tuieval/pta.py,sha256=XT0ONtkhkyT6RcKpthCyNXOEAyQ09uCkyrCj2f6GbXA,18827
19
+ tuieval/pta.py,sha256=v8gVQZJO4XUuIDUSLUrNUKoCHUS1n5truaTLRxrPwUE,18983
20
20
  tuieval/remove.py,sha256=Vwh43nm9lVb9U9aN-h6CMYbkTwdR3UWfZObwweF72n0,5157
21
21
  tuieval/run_evals.py,sha256=ok5RvX9IFJwLT_QygIV2bYDtA7LJpVj68CtO4ow7A8U,51416
22
22
  tuieval/scaffold.py,sha256=YBOqniJpf_GtKKAFF3_OHxxMGbmTWdFjcClGcOnrrKE,12130
23
23
  tuieval/selftest.py,sha256=cIGSDCrCK-QISAXjKSJDB4sD-WwS32bn3Gn4Y0oGoF8,11502
24
- tuieval/tui.py,sha256=BrRuMiQtKrg5KlIw7cpgKDLyFCBOiBTAZw-69j0O_FU,208154
24
+ tuieval/tui.py,sha256=hWKDUxfsh1I7XiEhhK4-wyPNpKgQy16i-x1RGn02gvM,208430
25
25
  tuieval/tune.py,sha256=izz1Qs-d9PrWAqEZpyrLxfrlhlaouif9uFQSeJveL0k,41294
26
26
  tuieval/verdict.py,sha256=3SM8qrVdWNIFDENagaR5ZPBYEnjsBtkYB9WS5TDVssU,20517
27
27
  tuieval/watch_proxy.py,sha256=bnDO1i6n6yUs1hODoUWcMppJMGPavoQqs6aNYrIxpT8,11416
@@ -50,8 +50,8 @@ tuieval/templates/packs/tool_call/pack.toml,sha256=n4bx0lGJHSmW41uVqhfIXJ2BWZpmT
50
50
  tuieval/templates/packs/tool_call/system.txt,sha256=mKxu-lB-0YjLHXdgeFJa8x2C180OvcNz5cHv2N5Bg3U,254
51
51
  tuieval/templates/packs/tool_call/tests.yaml,sha256=Nv7c4syrzJ9cU8EBKSK_1ZSFx9V02aCjW4-2TBCPT7s,1859
52
52
  tuieval/templates/packs/tool_call/tools.yaml,sha256=HgxCkh0On2VwbHSsjAGM8tNCK7ZtKLGrs7lMCn3Fprs,1048
53
- tuieval-0.2.0.dev143.dist-info/METADATA,sha256=Ko0ZQgeWRXlTXBLRlzS4IRYHE5DknxOZq74aFMeDa14,15105
54
- tuieval-0.2.0.dev143.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
55
- tuieval-0.2.0.dev143.dist-info/entry_points.txt,sha256=7eIhi1GpFxBP2OLJV02Nn8LwsNuO512eKOGt1IBbj04,45
56
- tuieval-0.2.0.dev143.dist-info/licenses/LICENSE,sha256=7wfRgGtBGH1aXhZkIn47oUznqKC18kEPMvUVgol7Ffc,1077
57
- tuieval-0.2.0.dev143.dist-info/RECORD,,
53
+ tuieval-0.2.0.dev145.dist-info/METADATA,sha256=Lv8WNg8B1HqLCCqO85DTiqXE2dSAgc9do5plYjG2-os,15105
54
+ tuieval-0.2.0.dev145.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
55
+ tuieval-0.2.0.dev145.dist-info/entry_points.txt,sha256=7eIhi1GpFxBP2OLJV02Nn8LwsNuO512eKOGt1IBbj04,45
56
+ tuieval-0.2.0.dev145.dist-info/licenses/LICENSE,sha256=7wfRgGtBGH1aXhZkIn47oUznqKC18kEPMvUVgol7Ffc,1077
57
+ tuieval-0.2.0.dev145.dist-info/RECORD,,