tuieval 0.2.0.dev158__py3-none-any.whl → 0.2.0.dev160__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/ctxbench.py +14 -3
- {tuieval-0.2.0.dev158.dist-info → tuieval-0.2.0.dev160.dist-info}/METADATA +1 -1
- {tuieval-0.2.0.dev158.dist-info → tuieval-0.2.0.dev160.dist-info}/RECORD +7 -7
- {tuieval-0.2.0.dev158.dist-info → tuieval-0.2.0.dev160.dist-info}/WHEEL +0 -0
- {tuieval-0.2.0.dev158.dist-info → tuieval-0.2.0.dev160.dist-info}/entry_points.txt +0 -0
- {tuieval-0.2.0.dev158.dist-info → tuieval-0.2.0.dev160.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.dev160'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 0, 'dev160')
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
tuieval/ctxbench.py
CHANGED
|
@@ -20,7 +20,9 @@ The search starts at half the context the model runs with now and doubles, up to
|
|
|
20
20
|
limit: what models.toml caps the context at (max_ctx, ctx, a context flag) doesn't bound it, since
|
|
21
21
|
the measurement replaces those. Memory grows about linearly with the context, so two probes that
|
|
22
22
|
passed predict the largest context that fits under the machine's limit; no probe goes above that
|
|
23
|
-
prediction, and a failed probe is bisected against the largest that passed. A
|
|
23
|
+
prediction, and a failed probe is bisected against the largest that passed. (A server that already
|
|
24
|
+
takes more than that limit at the smallest context, and passes, sizes its own memory: the
|
|
25
|
+
prediction doesn't cap it, and the probes and their guard decide.) A probe is stopped at
|
|
24
26
|
once, while the server loads or works, when memory pressure rises, the machine starts swapping,
|
|
25
27
|
or memory runs out. (A server that reaches the warning level at the smallest context, with nothing
|
|
26
28
|
swapped, fills memory to a budget of its own: for it only critical pressure counts, besides
|
|
@@ -321,6 +323,7 @@ def search(try_ctx, start, upper, limit_gb=None, step=STEP, floor=FLOOR, max_sta
|
|
|
321
323
|
Returns (probes in the order tried, why it stopped)."""
|
|
322
324
|
tried, lo, hi, c = [], None, None, min(start, upper)
|
|
323
325
|
why = f"{max_starts} server starts used"
|
|
326
|
+
budget = limit_gb # None once the tries show it doesn't describe this server
|
|
324
327
|
while len(tried) < max_starts:
|
|
325
328
|
emit("tune_step", message=f"[{len(tried) + 1}] context {c:,}", start=len(tried) + 1, max_starts=max_starts)
|
|
326
329
|
try:
|
|
@@ -347,12 +350,20 @@ def search(try_ctx, start, upper, limit_gb=None, step=STEP, floor=FLOOR, max_sta
|
|
|
347
350
|
if hi is not None and hi - lo <= step:
|
|
348
351
|
why = f"{hi:,} failed: {next(p.error for p in tried if p.ctx == hi)}"
|
|
349
352
|
break
|
|
350
|
-
|
|
353
|
+
smallest = min((p for p in tried if p.ok and p.mem_gb), key=lambda p: p.ctx, default=None)
|
|
354
|
+
if budget is not None and smallest and smallest.mem_gb >= budget:
|
|
355
|
+
# Over the budget at the smallest context that passed: the context isn't what takes the
|
|
356
|
+
# memory. The server fills memory to a budget of its own, so the prediction can't cap it.
|
|
357
|
+
emit("tune_step", message=f" it took {smallest.mem_gb:.1f} GB at {smallest.ctx:,} already, more than the "
|
|
358
|
+
f"{budget:.1f} GB set aside, and passed: this server sizes its own memory, so "
|
|
359
|
+
"the search goes by the tries, not by predicted memory")
|
|
360
|
+
budget = None
|
|
361
|
+
_, per, fit = predict([p for p in tried if p.ok], budget)
|
|
351
362
|
nxt = min(upper, lo * 2) if hi is None else lo + _grid((hi - lo) / 2)
|
|
352
363
|
if fit is not None and fit < nxt:
|
|
353
364
|
if _grid(fit) - lo < min(step, upper - lo):
|
|
354
365
|
at = min(upper, lo + step)
|
|
355
|
-
why = (f"memory: {at:,} is predicted to need more than the {
|
|
366
|
+
why = (f"memory: {at:,} is predicted to need more than the {budget:.1f} GB this machine has "
|
|
356
367
|
f"for it ({per * 1000:.3f} GB per 1,000 tokens)")
|
|
357
368
|
break
|
|
358
369
|
nxt = _grid(fit)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tuieval
|
|
3
|
-
Version: 0.2.0.
|
|
3
|
+
Version: 0.2.0.dev160
|
|
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,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=B1XJa-pJPRDLsbVv960aMwhTigHTPIseY-06NHfWpIY,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=Q9-b9sg6LSAfNq6o-c3J3hiOIoINgvH_Fe_U1x-0W4U,4915
|
|
7
7
|
tuieval/client.py,sha256=O77uftaxqgQ8b8rMnpR5822kmYFfr574w1pZlaSOFEE,14304
|
|
8
8
|
tuieval/compare.py,sha256=T5MDIkNzPGTFUvYr1EzxVGGlCdvTlO1v5De3gN0Eocw,39654
|
|
9
|
-
tuieval/ctxbench.py,sha256=
|
|
9
|
+
tuieval/ctxbench.py,sha256=Xahl_o-r25Aq9LFaZXlZMzLhARIayT8gpsAQxYwuUYA,27898
|
|
10
10
|
tuieval/dates.py,sha256=CVazlwNjCRhD__D12zXLdeqF2ySt15X3xLUQeE-o6PY,6293
|
|
11
11
|
tuieval/doctor.py,sha256=j2MdDORstsAGPnRmpsnxau1_fR6sTc_oEFGM5zugTJU,7246
|
|
12
12
|
tuieval/engine.py,sha256=OfAQx4s9A7PfaPJDr5U_MBp69kS3-tI99aPnrCYZ8mU,141469
|
|
@@ -51,8 +51,8 @@ tuieval/templates/packs/tool_call/pack.toml,sha256=n4bx0lGJHSmW41uVqhfIXJ2BWZpmT
|
|
|
51
51
|
tuieval/templates/packs/tool_call/system.txt,sha256=mKxu-lB-0YjLHXdgeFJa8x2C180OvcNz5cHv2N5Bg3U,254
|
|
52
52
|
tuieval/templates/packs/tool_call/tests.yaml,sha256=Nv7c4syrzJ9cU8EBKSK_1ZSFx9V02aCjW4-2TBCPT7s,1859
|
|
53
53
|
tuieval/templates/packs/tool_call/tools.yaml,sha256=HgxCkh0On2VwbHSsjAGM8tNCK7ZtKLGrs7lMCn3Fprs,1048
|
|
54
|
-
tuieval-0.2.0.
|
|
55
|
-
tuieval-0.2.0.
|
|
56
|
-
tuieval-0.2.0.
|
|
57
|
-
tuieval-0.2.0.
|
|
58
|
-
tuieval-0.2.0.
|
|
54
|
+
tuieval-0.2.0.dev160.dist-info/METADATA,sha256=EdoEUbKXI7YGTzGLkvdth2NXmZk9GXQM1kSuY5VCRPY,15306
|
|
55
|
+
tuieval-0.2.0.dev160.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
56
|
+
tuieval-0.2.0.dev160.dist-info/entry_points.txt,sha256=7eIhi1GpFxBP2OLJV02Nn8LwsNuO512eKOGt1IBbj04,45
|
|
57
|
+
tuieval-0.2.0.dev160.dist-info/licenses/LICENSE,sha256=7wfRgGtBGH1aXhZkIn47oUznqKC18kEPMvUVgol7Ffc,1077
|
|
58
|
+
tuieval-0.2.0.dev160.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|