tuieval 0.2.0.dev143__tar.gz → 0.2.0.dev145__tar.gz

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.
Files changed (82) hide show
  1. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/CHANGELOG.md +1 -0
  2. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/PKG-INFO +1 -1
  3. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/models.md +1 -1
  4. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/_version.py +2 -2
  5. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/pta.py +4 -3
  6. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/tui.py +5 -2
  7. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/tests/test_tuieval.py +2 -0
  8. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/.gitignore +0 -0
  9. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/LICENSE +0 -0
  10. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/README.md +0 -0
  11. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/RELEASING.md +0 -0
  12. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/agent-packs.md +0 -0
  13. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/README.md +0 -0
  14. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/favicon.ico +0 -0
  15. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/readme-header.png +0 -0
  16. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/social-preview.png +0 -0
  17. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-1024.png +0 -0
  18. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-128.png +0 -0
  19. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-16.png +0 -0
  20. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-16.svg +0 -0
  21. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-256.png +0 -0
  22. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-32.png +0 -0
  23. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-48.png +0 -0
  24. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-512.png +0 -0
  25. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-64.png +0 -0
  26. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon-animated.svg +0 -0
  27. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/brand/tuieval-icon.svg +0 -0
  28. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/tui-answer-reasoning.png +0 -0
  29. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/tui-run-reasoning.png +0 -0
  30. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/images/tui-setup.png +0 -0
  31. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/docs/writing-packs.md +0 -0
  32. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/pyproject.toml +0 -0
  33. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/__init__.py +0 -0
  34. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/__main__.py +0 -0
  35. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/agents.py +0 -0
  36. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/builtin.toml +0 -0
  37. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/cli.py +0 -0
  38. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/client.py +0 -0
  39. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/compare.py +0 -0
  40. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/dates.py +0 -0
  41. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/doctor.py +0 -0
  42. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/engine.py +0 -0
  43. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/export.py +0 -0
  44. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/graders/__init__.py +0 -0
  45. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/graders/answer.py +0 -0
  46. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/graders/code.py +0 -0
  47. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/graders/rag.py +0 -0
  48. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/graders/reply.py +0 -0
  49. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/graders/tool_call.py +0 -0
  50. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/insights.py +0 -0
  51. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/logs.py +0 -0
  52. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/machines.py +0 -0
  53. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/onboard.py +0 -0
  54. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/packs.py +0 -0
  55. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/profiles.py +0 -0
  56. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/remove.py +0 -0
  57. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/run_evals.py +0 -0
  58. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/scaffold.py +0 -0
  59. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/selftest.py +0 -0
  60. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/models.toml +0 -0
  61. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/answer/pack.toml +0 -0
  62. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/answer/system.txt +0 -0
  63. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/answer/tests.yaml +0 -0
  64. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/code/pack.toml +0 -0
  65. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/code/system.txt +0 -0
  66. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/code/tests.yaml +0 -0
  67. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/rag/pack.toml +0 -0
  68. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/rag/system.txt +0 -0
  69. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/rag/tests.yaml +0 -0
  70. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/reply/pack.toml +0 -0
  71. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/reply/system.txt +0 -0
  72. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/reply/tests.yaml +0 -0
  73. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/tool_call/pack.toml +0 -0
  74. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/tool_call/system.txt +0 -0
  75. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/tool_call/tests.yaml +0 -0
  76. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/templates/packs/tool_call/tools.yaml +0 -0
  77. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/tune.py +0 -0
  78. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/verdict.py +0 -0
  79. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/watch_proxy.py +0 -0
  80. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/workspace.py +0 -0
  81. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/src/tuieval/yamlout.py +0 -0
  82. {tuieval-0.2.0.dev143 → tuieval-0.2.0.dev145}/tests/mock_server.py +0 -0
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Fix: the PTA index's Score ≥ filter did nothing once a pack was picked; it now filters the models that answered the pack (models picked by hand are still always shown).
5
6
  - PTA index: models scoring below 85% are left out by default (listed with their score), unless every model is. The **Score ≥** dropdown (`tuieval pta --min-score N`) sets the minimum, Any score shows all; picked models are always shown.
6
7
  - Per question → Comparison: a **Pass rate** column beside Passed, the share of answers right with repeats included (shown when some model has repeats).
7
8
  - Repeats (Setup, `tuieval run --repeat N`) add N rounds to the saved answers: ×1 run with 2 gives ×3, not ×2. Retest, a blank count and presets still mean the total.
@@ -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
@@ -111,7 +111,7 @@ The **PTA index** puts parsimony (tokens), time and accuracy side by side, as a
111
111
 
112
112
  The P and T bars are as long as the tokens and time used: the model that used the most fills its bar, the others in proportion (at least one block), so **shorter is better**. The A bar is the share of answers right, so **longer is better**; it's full only when every answer passed. Each heading says which way is better.
113
113
 
114
- Models are compared on the questions all of them answered, so one that skipped some never looks faster. Server and connection errors aren't answers: a model with only those is listed as having none. A model with fewer than half as many answers as the most-answered one is left out (and listed), or it would shrink the shared questions for everyone. So is one scoring below 85% (listed with its score), unless every model does: the rest are then compared again, on the questions they all answered. The **Score ≥** dropdown in the tab (or `tuieval pta --min-score N`) sets that minimum; **Any score** (`0`) shows every model. Pick the models and pack to compare in the TUI, or use `--only` and `--packs`: models you pick are always compared.
114
+ Models are compared on the questions all of them answered, so one that skipped some never looks faster. Server and connection errors aren't answers: a model with only those is listed as having none. A model with fewer than half as many answers as the most-answered one is left out (and listed), or it would shrink the shared questions for everyone. So is one scoring below 85% (listed with its score), unless every model does: the rest are then compared again, on the questions they all answered. The **Score ≥** dropdown in the tab (or `tuieval pta --min-score N`) sets that minimum; **Any score** (`0`) shows every model. It also filters the models a pack picks (those that answered all of it); models picked by hand under Models are always shown. Pick the models and pack to compare in the TUI, or use `--only` and `--packs`: models you pick are always compared.
115
115
 
116
116
  ## Insights
117
117
 
@@ -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
@@ -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:
@@ -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]
@@ -1794,6 +1794,8 @@ class PTAIndex(unittest.TestCase):
1794
1794
  self.assertIn("weak (62.5%)", "\n".join(pta.left_out_lines(res)))
1795
1795
  picked = pta.index(rows, ["good", "weak"]) # picked by hand: shown whatever the score
1796
1796
  self.assertEqual(([x["model"] for x in picked["models"]], picked["low_score"]), (["good", "weak"], []))
1797
+ by_pack = pta.index(rows, ["good", "ok", "weak"], score_models=True) # a pack's pick: filtered
1798
+ self.assertEqual(([x["model"] for x in by_pack["models"]], by_pack["low_score"]), (["good", "ok"], [("weak", 62.5)]))
1797
1799
  low = [r for r in rows if r["model"] != "good"]
1798
1800
  self.assertEqual(pta.index([r for r in low if r["model"] == "weak"])["low_score"], []) # all low: kept
1799
1801
  self.assertEqual([x["model"] for x in pta.index(low)["models"]], ["ok"])
File without changes
File without changes