tuieval 0.2.0.dev103__tar.gz → 0.2.0.dev104__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.
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/CHANGELOG.md +1 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/PKG-INFO +1 -1
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/_version.py +2 -2
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/graders/__init__.py +3 -2
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/tests/test_tuieval.py +7 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/.gitignore +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/LICENSE +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/README.md +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/RELEASING.md +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/README.md +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/favicon.ico +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/readme-header.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/social-preview.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-1024.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-128.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-16.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-16.svg +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-256.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-32.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-48.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-512.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-64.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon-animated.svg +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/brand/tuieval-icon.svg +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/tui-answer-reasoning.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/tui-run-reasoning.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/images/tui-setup.png +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/models.md +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/docs/writing-packs.md +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/pyproject.toml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/__init__.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/__main__.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/builtin.toml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/cli.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/client.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/compare.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/doctor.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/engine.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/export.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/graders/answer.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/graders/code.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/graders/rag.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/graders/reply.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/graders/tool_call.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/insights.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/logs.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/machines.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/onboard.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/packs.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/profiles.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/pta.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/remove.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/run_evals.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/scaffold.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/selftest.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/models.toml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/answer/pack.toml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/answer/system.txt +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/answer/tests.yaml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/code/pack.toml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/code/system.txt +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/code/tests.yaml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/rag/pack.toml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/rag/system.txt +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/rag/tests.yaml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/reply/pack.toml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/reply/system.txt +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/reply/tests.yaml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/tool_call/pack.toml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/tool_call/system.txt +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/tool_call/tests.yaml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/tool_call/tools.yaml +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/tui.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/tune.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/verdict.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/watch_proxy.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/workspace.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/yamlout.py +0 -0
- {tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/tests/mock_server.py +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- Fix: an answer followed by a stray `</think>` was graded as empty; the answer before the tag is graded now.
|
|
5
6
|
- Run screen: `x` removes the highlighted pack from the run going if it hasn't started (the reverse of adding it); a model left with nothing isn't started.
|
|
6
7
|
- `k` (skip model) asks first, naming the model. Yes/no dialogs start on No; `y` answers yes, `n` or Esc no.
|
|
7
8
|
- Fix: hosted models no longer count as running alongside local ones (they don't share the machine), so a one-model-at-a-time setup no longer gets the "ran alongside other models" note. Older results are read the same way.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tuieval
|
|
3
|
-
Version: 0.2.0.
|
|
3
|
+
Version: 0.2.0.dev104
|
|
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
|
|
@@ -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.dev104'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 0, 'dev104')
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -123,8 +123,9 @@ def strip_thinking(text):
|
|
|
123
123
|
"""Safety net for servers that leave <think> blocks in the answer."""
|
|
124
124
|
text = THINK_RE.sub("", text or "")
|
|
125
125
|
if "</think>" in text:
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
before, after = text.rsplit("</think>", 1)
|
|
127
|
+
text = after if after.strip() else before # a stray closing tag after the answer
|
|
128
|
+
return text.replace("<think>", "").replace("</think>", "").strip()
|
|
128
129
|
|
|
129
130
|
|
|
130
131
|
def grade(test, answer, meta=None):
|
|
@@ -248,6 +248,13 @@ class WorkspaceGraders(unittest.TestCase):
|
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
class Units(unittest.TestCase):
|
|
251
|
+
def test_strip_thinking_keeps_answer_before_stray_close_tag(self):
|
|
252
|
+
from tuieval.graders import strip_thinking
|
|
253
|
+
self.assertEqual(strip_thinking("<think>hm</think>\n42"), "42")
|
|
254
|
+
self.assertEqual(strip_thinking("leaked thoughts</think>\n42"), "42")
|
|
255
|
+
self.assertEqual(strip_thinking("```python\nx = 1\n```\n</think>\n"), "```python\nx = 1\n```")
|
|
256
|
+
self.assertEqual(strip_thinking("</think>"), "")
|
|
257
|
+
|
|
251
258
|
def test_settings_note_names_only_what_differs(self):
|
|
252
259
|
from tuieval import compare
|
|
253
260
|
infos = [{"label": m, "settings": {"temperature": 1.0, **extra}} for m, extra in
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/tool_call/pack.toml
RENAMED
|
File without changes
|
{tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/tool_call/system.txt
RENAMED
|
File without changes
|
{tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/tool_call/tests.yaml
RENAMED
|
File without changes
|
{tuieval-0.2.0.dev103 → tuieval-0.2.0.dev104}/src/tuieval/templates/packs/tool_call/tools.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|