tuieval 0.2.0.dev149__py3-none-any.whl → 0.2.0.dev152__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 +83 -49
- tuieval/engine.py +4 -4
- tuieval/machines.py +18 -2
- tuieval/run_evals.py +4 -6
- {tuieval-0.2.0.dev149.dist-info → tuieval-0.2.0.dev152.dist-info}/METADATA +1 -1
- {tuieval-0.2.0.dev149.dist-info → tuieval-0.2.0.dev152.dist-info}/RECORD +10 -10
- {tuieval-0.2.0.dev149.dist-info → tuieval-0.2.0.dev152.dist-info}/WHEEL +0 -0
- {tuieval-0.2.0.dev149.dist-info → tuieval-0.2.0.dev152.dist-info}/entry_points.txt +0 -0
- {tuieval-0.2.0.dev149.dist-info → tuieval-0.2.0.dev152.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.dev152'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 0, 'dev152')
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
tuieval/ctxbench.py
CHANGED
|
@@ -7,8 +7,8 @@ It works the same for every server tuieval starts, because it only uses what the
|
|
|
7
7
|
|
|
8
8
|
the context set through {ctx} in the server's cmd, or its ctx_flag
|
|
9
9
|
the API one chat request per try, and the token counts the server reports
|
|
10
|
-
the machine the server
|
|
11
|
-
macOS memory pressure and swapping
|
|
10
|
+
the machine the memory the server takes (how much less is available while it runs; VRAM on
|
|
11
|
+
discrete GPUs), macOS memory pressure and swapping
|
|
12
12
|
|
|
13
13
|
One try ("probe") at a context: start the server with it, send a document that fills it (sized
|
|
14
14
|
from the server's own token counts, so any tokenizer works) with one fact near the start, and ask
|
|
@@ -16,11 +16,18 @@ for that fact. The probe passes when the answer is right, the server read the wh
|
|
|
16
16
|
server that cuts long prompts short reports fewer tokens, or loses the fact), and the machine
|
|
17
17
|
stayed healthy. Filling matters: some servers only take memory as the context fills.
|
|
18
18
|
|
|
19
|
-
The search starts
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
The search starts at half the context the model runs with now and doubles, up to the model's own
|
|
20
|
+
limit: what models.toml caps the context at (max_ctx, ctx, a context flag) doesn't bound it, since
|
|
21
|
+
the measurement replaces those. Memory grows about linearly with the context, so two probes that
|
|
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 probe is stopped at
|
|
24
|
+
once, while the server loads or works, when memory pressure rises, the machine starts swapping,
|
|
25
|
+
or memory runs out. Typically 3 to 5 server starts.
|
|
26
|
+
|
|
27
|
+
Memory is read off the machine, not the server's processes: available memory before the server
|
|
28
|
+
starts less the lowest it falls to. Resident memory would count files a server maps and reads on
|
|
29
|
+
demand, which the system can drop again, and that reading is what is compared with the memory
|
|
30
|
+
available, so both are in the same terms.
|
|
24
31
|
|
|
25
32
|
A server tuieval doesn't start, or can't set the context of, is only verified at the context its
|
|
26
33
|
model declares (max_context): one probe, nothing saved.
|
|
@@ -37,11 +44,16 @@ from . import tune
|
|
|
37
44
|
ANSWER_TOKENS = 1024 # room for the answer (and any thinking) in a probe
|
|
38
45
|
STEP = 8192 # how close to the true maximum the search gets
|
|
39
46
|
FLOOR = machines.MIN_CTX # the smallest context tried
|
|
47
|
+
FIRST = 32768 # the first context tried for a model whose usual context isn't known
|
|
48
|
+
APART = 0.8 # memory per token is read off two probes at least this far apart (the lower one
|
|
49
|
+
# at most this share of the higher): closer ones differ by less than the noise
|
|
40
50
|
MAX_STARTS = 8
|
|
41
51
|
REQUEST_LIMIT_S = 3600 # reading a few hundred thousand tokens takes a while ([tune] ctx_request_timeout_s)
|
|
42
52
|
PRESSURE_WARNING = 2 # macOS memory pressure level that stops a probe (1 is normal)
|
|
43
53
|
SWAP_STOP_MB = 512 # swapped out while a probe ran: stop it
|
|
44
|
-
AVAILABLE_STOP_GB = 1.0 #
|
|
54
|
+
AVAILABLE_STOP_GB = 1.0 # memory available under this stops a probe
|
|
55
|
+
TOO_LITTLE = 0.5 # a reading under this share of the model's size on disk can't be right for a server
|
|
56
|
+
# that holds the model in memory: its resident memory is used instead
|
|
45
57
|
SAMPLE_CHARS = 12000 # the request that measures the server's characters per token
|
|
46
58
|
UNKNOWN_CHARS_PER_TOKEN = 3.0 # for a server that reports no token counts: short of full rather than over
|
|
47
59
|
NOT_ABOUT_CONTEXT = ("already in use", "isn't installed", "not found", "is not set", "skipped by user")
|
|
@@ -119,13 +131,15 @@ def too_long(error):
|
|
|
119
131
|
|
|
120
132
|
|
|
121
133
|
class Guard:
|
|
122
|
-
"""Watches the machine while a probe
|
|
134
|
+
"""Watches the machine while a probe's server loads and works. When it gets unhealthy, the
|
|
135
|
+
server is stopped: a load is abandoned and a request is cut off."""
|
|
123
136
|
|
|
124
137
|
def __init__(self, eng, every_s=2.0):
|
|
125
138
|
self.eng, self.every_s, self.reason = eng, every_s, ""
|
|
126
139
|
self.pressure, self._stop = machines.memory_pressure_level(), threading.Event()
|
|
127
140
|
self._swap0 = machines.swapped_out_bytes()
|
|
128
|
-
self.
|
|
141
|
+
self._own_memory = eng.machine().discrete # VRAM: the machine's memory isn't what runs out
|
|
142
|
+
self.available0 = self.lowest = None if self._own_memory else machines.available_memory_gb()
|
|
129
143
|
|
|
130
144
|
def __enter__(self):
|
|
131
145
|
self._thread = threading.Thread(target=self._run, daemon=True)
|
|
@@ -141,16 +155,25 @@ class Guard:
|
|
|
141
155
|
swap = machines.swapped_out_bytes()
|
|
142
156
|
if None not in (swap, self._swap0) and (swap - self._swap0) / 2**20 > SWAP_STOP_MB:
|
|
143
157
|
return f"the machine swapped out {(swap - self._swap0) / 2**20:.0f} MB"
|
|
144
|
-
if self.
|
|
158
|
+
if not self._own_memory:
|
|
145
159
|
free = machines.available_memory_gb()
|
|
146
|
-
if free is not None
|
|
147
|
-
|
|
160
|
+
if free is not None:
|
|
161
|
+
self.lowest = free if self.lowest is None else min(self.lowest, free)
|
|
162
|
+
if free < AVAILABLE_STOP_GB:
|
|
163
|
+
return f"only {free:.1f} GB of memory was left"
|
|
148
164
|
return ""
|
|
149
165
|
|
|
166
|
+
def taken_gb(self):
|
|
167
|
+
"""Memory the machine lost while the block ran (None where it can't be read)."""
|
|
168
|
+
if None in (self.available0, self.lowest):
|
|
169
|
+
return None
|
|
170
|
+
return max(self.available0 - self.lowest, 0.0)
|
|
171
|
+
|
|
150
172
|
def _run(self):
|
|
151
173
|
while not self._stop.wait(self.every_s):
|
|
152
174
|
self.reason = self.reason or self.check()
|
|
153
175
|
if self.reason:
|
|
176
|
+
self.eng._stall = self.reason # ends the wait for a server that is still loading
|
|
154
177
|
stream = getattr(self.eng, "_stream", None)
|
|
155
178
|
if stream is not None:
|
|
156
179
|
stream.close()
|
|
@@ -160,6 +183,7 @@ class Guard:
|
|
|
160
183
|
self._stop.set()
|
|
161
184
|
self._thread.join(self.every_s + 1)
|
|
162
185
|
self.reason = self.reason or self.check()
|
|
186
|
+
self.eng._stall = None
|
|
163
187
|
|
|
164
188
|
|
|
165
189
|
def probe(eng, m, ctx, emit=lambda *a, **k: None, limit=REQUEST_LIMIT_S):
|
|
@@ -171,28 +195,25 @@ def probe(eng, m, ctx, emit=lambda *a, **k: None, limit=REQUEST_LIMIT_S):
|
|
|
171
195
|
if target < 1024:
|
|
172
196
|
out.error = f"a context of {ctx:,} is too small to test"
|
|
173
197
|
return out
|
|
198
|
+
guard = Guard(eng)
|
|
174
199
|
try:
|
|
175
|
-
with eng.serve(m, log_name=f"{m['label']}.ctx", ctx=ctx) as (url, info):
|
|
200
|
+
with guard, eng.serve(m, log_name=f"{m['label']}.ctx", ctx=ctx) as (url, info):
|
|
176
201
|
out.load_s = round(info["load_s"], 1) if info.get("load_s") else None
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
res = _ask(eng, m, url, int(chars * 0.93), ANSWER_TOKENS, "fill", emit, limit)
|
|
202
|
+
ratio = chars_per_token(eng, m, url, emit, limit)
|
|
203
|
+
chars = int(target * (ratio or UNKNOWN_CHARS_PER_TOKEN) * 0.98)
|
|
204
|
+
emit("tune_progress", message=f" filling the context: ~{target:,} tokens, {chars:,} characters"
|
|
205
|
+
+ ("" if ratio else " (the server reports no token counts)"))
|
|
206
|
+
res = _ask(eng, m, url, chars, ANSWER_TOKENS, "fill", emit, limit)
|
|
207
|
+
if too_long(res.get("error")) and not guard.reason:
|
|
208
|
+
emit("tune_progress", message=" the server found that too long; trying 7% shorter")
|
|
209
|
+
res = _ask(eng, m, url, int(chars * 0.93), ANSWER_TOKENS, "fill", emit, limit)
|
|
186
210
|
met = client.metrics(res) if not res.get("error") else {}
|
|
187
211
|
out.prompt_tokens, out.pp_tps, out.tg_tps = met.get("prompt_tokens"), met.get("prompt_tps"), met.get("gen_tps")
|
|
188
212
|
out.total_s = round(res["total_s"], 1) if res.get("total_s") else None
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
out.mem_gb = round(peak, 2) if peak else None
|
|
213
|
+
guard.check()
|
|
214
|
+
out.mem_gb = memory_gb(eng, m, info, guard)
|
|
192
215
|
text = (res.get("answer") or "") + (res.get("reasoning") or "")
|
|
193
|
-
if
|
|
194
|
-
out.error = guard.reason
|
|
195
|
-
elif res.get("error"):
|
|
216
|
+
if res.get("error"):
|
|
196
217
|
out.error = res["error"]
|
|
197
218
|
elif not info["alive"]():
|
|
198
219
|
out.error = "the server stopped"
|
|
@@ -206,20 +227,36 @@ def probe(eng, m, ctx, emit=lambda *a, **k: None, limit=REQUEST_LIMIT_S):
|
|
|
206
227
|
out.filled = bool(ratio and out.prompt_tokens and out.prompt_tokens >= 0.85 * target)
|
|
207
228
|
except engine_mod.ModelFailed as e:
|
|
208
229
|
out.error = str(e).splitlines()[0]
|
|
209
|
-
if any(w in out.error for w in NOT_ABOUT_CONTEXT):
|
|
230
|
+
if not guard.reason and any(w in out.error for w in NOT_ABOUT_CONTEXT):
|
|
210
231
|
raise # a smaller context wouldn't help
|
|
232
|
+
if guard.reason: # the machine got unhealthy: that is why, whatever the server said as it was stopped
|
|
233
|
+
out.ok, out.error = False, guard.reason
|
|
211
234
|
return out
|
|
212
235
|
|
|
213
236
|
|
|
214
237
|
# ------------------------------------------------------------------ the search
|
|
238
|
+
def memory_gb(eng, m, info, guard):
|
|
239
|
+
"""What the server took with its context full: VRAM on a discrete GPU, else how much less memory
|
|
240
|
+
the machine had available, else (where that can't be read, or reads implausibly low for a model
|
|
241
|
+
of this size) the resident memory of the server's processes."""
|
|
242
|
+
if eng.machine().discrete:
|
|
243
|
+
return round(info["vram_peak_gb"], 2) if info.get("vram_peak_gb") else None
|
|
244
|
+
taken, size = guard.taken_gb(), model_gb(m)
|
|
245
|
+
resident = (info["peak_mb"]() or 0) / 1024 if info.get("peak_mb") else 0
|
|
246
|
+
if not taken or (size and taken < TOO_LITTLE * size <= resident):
|
|
247
|
+
taken = resident
|
|
248
|
+
return round(taken, 2) if taken else None
|
|
249
|
+
|
|
250
|
+
|
|
215
251
|
def predict(passed, limit_gb):
|
|
216
|
-
"""(base_gb, gb_per_token, largest context predicted to fit) from the
|
|
217
|
-
passed with a memory reading. The third is None when
|
|
218
|
-
(nothing to predict) or there aren't two readings."""
|
|
252
|
+
"""(base_gb, gb_per_token, largest context predicted to fit) from the largest context that
|
|
253
|
+
passed with a memory reading and the nearest one well below it (APART). The third is None when
|
|
254
|
+
memory doesn't grow with the context (nothing to predict) or there aren't two such readings."""
|
|
219
255
|
pts = sorted((p.ctx, p.mem_gb) for p in passed if p.mem_gb)
|
|
220
256
|
if len(pts) < 2:
|
|
221
257
|
return None, None, None
|
|
222
|
-
|
|
258
|
+
c2, g2 = pts[-1]
|
|
259
|
+
c1, g1 = next(((c, g) for c, g in reversed(pts[:-1]) if c <= APART * c2), pts[0])
|
|
223
260
|
per = (g2 - g1) / (c2 - c1)
|
|
224
261
|
base = g2 - per * c2
|
|
225
262
|
if per <= 0 or limit_gb is None:
|
|
@@ -303,20 +340,12 @@ def room_gb(eng):
|
|
|
303
340
|
return (limit if free is None else min(limit, free - headroom)), ""
|
|
304
341
|
|
|
305
342
|
|
|
306
|
-
def upper_bound(
|
|
307
|
-
"""(the largest context worth trying, where that number comes from).
|
|
343
|
+
def upper_bound(m, asked=None):
|
|
344
|
+
"""(the largest context worth trying, where that number comes from): the model's own limit.
|
|
345
|
+
What models.toml caps the context at (max_ctx, ctx, a context flag) isn't one: the measurement
|
|
346
|
+
replaces those."""
|
|
308
347
|
if asked:
|
|
309
348
|
return asked, "--max"
|
|
310
|
-
caps = [(server.get("max_ctx"), f"max_ctx in [servers.{m['server']}]"), (m.get("ctx"), "the model's ctx"),
|
|
311
|
-
(m.get("max_context"), "the model's max_context")]
|
|
312
|
-
caps = [(v, src) for v, src in caps if v]
|
|
313
|
-
if how == "flag":
|
|
314
|
-
sv = eng.serving(m)
|
|
315
|
-
written = engine_mod.read_context(list(m.get("server_args", [])) + list(sv.perf_args), server["ctx_flag"])
|
|
316
|
-
if written:
|
|
317
|
-
caps.append((written, f"{server['ctx_flag']} in models.toml"))
|
|
318
|
-
if caps:
|
|
319
|
-
return min(caps)
|
|
320
349
|
path = engine_mod.expand(str(m.get("model", "")))
|
|
321
350
|
if os.path.isfile(path):
|
|
322
351
|
try:
|
|
@@ -325,7 +354,9 @@ def upper_bound(eng, m, server, how, asked=None):
|
|
|
325
354
|
return n, "the model file"
|
|
326
355
|
except (OSError, ValueError):
|
|
327
356
|
pass
|
|
328
|
-
|
|
357
|
+
if m.get("max_context"):
|
|
358
|
+
return m["max_context"], "the model's max_context"
|
|
359
|
+
raise engine_mod.ModelFailed("the model's own context limit isn't known: pass --max N")
|
|
329
360
|
|
|
330
361
|
|
|
331
362
|
def bench(eng, label, emit=lambda *a, **k: None, max_ctx=None, start=None, step=STEP, max_starts=MAX_STARTS):
|
|
@@ -347,7 +378,7 @@ def bench(eng, label, emit=lambda *a, **k: None, max_ctx=None, start=None, step=
|
|
|
347
378
|
r = probe(eng, m, ctx, emit, limit_s)
|
|
348
379
|
emit("tune_result", message=" " + r.summary(), result=r)
|
|
349
380
|
return {"verified": r.ok, "ctx": ctx, "probe": r}
|
|
350
|
-
upper, source = upper_bound(
|
|
381
|
+
upper, source = upper_bound(m, max_ctx)
|
|
351
382
|
upper = max(upper, FLOOR)
|
|
352
383
|
room, refuse = room_gb(eng)
|
|
353
384
|
if refuse:
|
|
@@ -356,7 +387,10 @@ def bench(eng, label, emit=lambda *a, **k: None, max_ctx=None, start=None, step=
|
|
|
356
387
|
if room is not None and size is not None and size > room:
|
|
357
388
|
raise engine_mod.ModelFailed(f"the model is {size:.1f} GB and {room:.1f} GB is free for it now: another "
|
|
358
389
|
"model or app is holding memory")
|
|
359
|
-
|
|
390
|
+
# Half of what it runs with now, so the second probe is a context expected to work and the two
|
|
391
|
+
# give the memory per token before anything larger is tried.
|
|
392
|
+
usual = sv.ctx if sv.fits and sv.ctx else None
|
|
393
|
+
first = min(upper, max(FLOOR, _grid(start or (usual // 2 if usual else FIRST))))
|
|
360
394
|
emit("tune_step", message=f"largest context up to {upper:,} ({source})"
|
|
361
395
|
+ (f"; {room:.1f} GB of memory to work with" if room is not None else ""))
|
|
362
396
|
|
tuieval/engine.py
CHANGED
|
@@ -1475,8 +1475,9 @@ class Engine:
|
|
|
1475
1475
|
flag = server.get("ctx_flag") # e.g. --max-context-tokens, when the server takes one
|
|
1476
1476
|
if flag and ctx is None:
|
|
1477
1477
|
ctx = read_context(list(m.get("server_args", [])) + perf, flag)
|
|
1478
|
-
# The largest context measured here (tuieval tune --ctx)
|
|
1479
|
-
# (max_ctx, ctx, max_context, a context flag
|
|
1478
|
+
# The largest context measured here (tuieval tune --ctx) is the context: it replaces the estimate
|
|
1479
|
+
# and whatever models.toml caps it at (max_ctx, ctx, max_context, a context flag), which were
|
|
1480
|
+
# written without knowing it.
|
|
1480
1481
|
how, source, ctx_note = takes_context(server), "", ""
|
|
1481
1482
|
measured = profiles.load_context(mc.id, m["label"], self.tuning_dir) if how else None
|
|
1482
1483
|
if measured:
|
|
@@ -1486,8 +1487,7 @@ class Engine:
|
|
|
1486
1487
|
elif meta.get("kv_type") and kv and meta["kv_type"] != kv:
|
|
1487
1488
|
ctx_note = f"its context was measured with {meta['kv_type']} KV, not {kv}; run tuieval tune --ctx again"
|
|
1488
1489
|
else:
|
|
1489
|
-
|
|
1490
|
-
ctx, fits, source = min(cap, measured["max_ctx"]) if cap else measured["max_ctx"], True, "measured"
|
|
1490
|
+
ctx, fits, source = measured["max_ctx"], True, "measured"
|
|
1491
1491
|
note = f"measured on {mc.id}: up to {measured['max_ctx'] // 1024}k context"
|
|
1492
1492
|
at = measured.get("measured", {})
|
|
1493
1493
|
if at.get("base_gb") is not None and at.get("gb_per_1k_tokens") is not None:
|
tuieval/machines.py
CHANGED
|
@@ -356,15 +356,31 @@ def swapped_out_bytes():
|
|
|
356
356
|
return int(page.group(1)) * int(swaps.group(1)) if page and swaps else None
|
|
357
357
|
|
|
358
358
|
|
|
359
|
+
def vm_stat_available_gb(text, ram_bytes):
|
|
360
|
+
"""Memory available on a Mac from vm_stat's page counts: RAM less what is held and can't be
|
|
361
|
+
given back (anonymous pages, wired pages, the compressor's own pages). File cache and
|
|
362
|
+
memory-mapped files the system can drop count as available. None if the counts aren't there."""
|
|
363
|
+
page = re.search(r"page size of (\d+)", text)
|
|
364
|
+
held = [re.search(name + r":\s+(\d+)", text) for name in
|
|
365
|
+
("Anonymous pages", "Pages wired down", "Pages occupied by compressor")]
|
|
366
|
+
if not page or not all(held) or not ram_bytes:
|
|
367
|
+
return None
|
|
368
|
+
return (ram_bytes - int(page.group(1)) * sum(int(h.group(1)) for h in held)) / GB
|
|
369
|
+
|
|
370
|
+
|
|
359
371
|
def available_memory_gb():
|
|
360
372
|
"""Memory a new process could take now without pushing anything to swap: free plus what the
|
|
361
|
-
system gives back on demand (file cache). macOS: `memory_pressure`'s
|
|
373
|
+
system gives back on demand (file cache). macOS: from vm_stat's page counts (`memory_pressure`'s
|
|
374
|
+
free percentage, which is rounded to 1% of RAM and reads higher, only if they are missing);
|
|
362
375
|
Linux: MemAvailable. None where unknown."""
|
|
363
376
|
try:
|
|
364
377
|
if platform.system() == "Darwin":
|
|
378
|
+
ram = int(_sysctl("hw.memsize") or 0)
|
|
379
|
+
got = vm_stat_available_gb(subprocess.run(["vm_stat"], capture_output=True, text=True, timeout=5).stdout, ram)
|
|
380
|
+
if got is not None:
|
|
381
|
+
return got
|
|
365
382
|
out = subprocess.run(["memory_pressure"], capture_output=True, text=True, timeout=10).stdout
|
|
366
383
|
pct = re.search(r"free percentage:\s*(\d+)%", out)
|
|
367
|
-
ram = int(_sysctl("hw.memsize") or 0)
|
|
368
384
|
return int(pct.group(1)) / 100 * ram / GB if pct and ram else None
|
|
369
385
|
with open("/proc/meminfo") as f:
|
|
370
386
|
kb = re.search(r"MemAvailable:\s+(\d+) kB", f.read())
|
tuieval/run_evals.py
CHANGED
|
@@ -652,10 +652,8 @@ def context_report(e, label, got):
|
|
|
652
652
|
say(f"{label}: stopped there because: {at['stopped']}")
|
|
653
653
|
if not got["meta"].get("fill_confirmed"):
|
|
654
654
|
say(f"{label}: the server reports no token counts, so how full the context was isn't confirmed", YELLOW)
|
|
655
|
-
if sv.
|
|
656
|
-
say(f"{label}: runs use {sv.ctx:,}
|
|
657
|
-
elif sv.ctx_source == "measured":
|
|
658
|
-
say(f"{label}: runs use {sv.ctx:,} from now on")
|
|
655
|
+
if sv.ctx_source == "measured":
|
|
656
|
+
say(f"{label}: runs use {sv.ctx:,} from now on, whatever models.toml caps it at")
|
|
659
657
|
return True
|
|
660
658
|
|
|
661
659
|
|
|
@@ -704,9 +702,9 @@ def cmd_tune(argv):
|
|
|
704
702
|
"machine (ctxbench.py): a few server starts, each filling the context it tries. Runs then "
|
|
705
703
|
"use it in place of the estimate")
|
|
706
704
|
p.add_argument("--max", type=int, default=None, metavar="N",
|
|
707
|
-
help="with --ctx: the largest context to try (default: the model's
|
|
705
|
+
help="with --ctx: the largest context to try (default: the model's own limit)")
|
|
708
706
|
p.add_argument("--start", type=int, default=None, metavar="N",
|
|
709
|
-
help="with --ctx: the first context to try (default:
|
|
707
|
+
help="with --ctx: the first context to try (default: half of what the model runs with now)")
|
|
710
708
|
p.add_argument("--step", type=int, default=None, metavar="N",
|
|
711
709
|
help="with --ctx: how close to the true maximum to get (default 8192)")
|
|
712
710
|
p.add_argument("--models", default=None, help="default: the workspace's models.toml")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tuieval
|
|
3
|
-
Version: 0.2.0.
|
|
3
|
+
Version: 0.2.0.dev152
|
|
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,25 +1,25 @@
|
|
|
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=SBk0ZLvvAsL0b3FMt7eym0iNTparGaT68nwzhJvZqA4,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=5JKm6QOpHN2hK3bmexC6aqyEBunOzw-hyI95msMS_yg,21634
|
|
10
10
|
tuieval/dates.py,sha256=CVazlwNjCRhD__D12zXLdeqF2ySt15X3xLUQeE-o6PY,6293
|
|
11
11
|
tuieval/doctor.py,sha256=j2MdDORstsAGPnRmpsnxau1_fR6sTc_oEFGM5zugTJU,7246
|
|
12
|
-
tuieval/engine.py,sha256=
|
|
12
|
+
tuieval/engine.py,sha256=OfAQx4s9A7PfaPJDr5U_MBp69kS3-tI99aPnrCYZ8mU,141469
|
|
13
13
|
tuieval/export.py,sha256=dbHQgL_ubWtIPM1sLzAew_gETnrDJyd0zgqVA5vkpXM,9657
|
|
14
14
|
tuieval/insights.py,sha256=hIJp1n0eZeoo9QCyS5-OChv70ItSqV8jSsInoh4Stm0,29591
|
|
15
15
|
tuieval/logs.py,sha256=01gZK6tf53dIThaIrs1bEsz9eqKYVlcxpyaLnSPTVxo,8127
|
|
16
|
-
tuieval/machines.py,sha256=
|
|
16
|
+
tuieval/machines.py,sha256=KEZ7tJWdGdlIjNDfd8sgXMyV-GclcdQLoubNimz5tbs,21956
|
|
17
17
|
tuieval/onboard.py,sha256=IYETVDWCCo9vF0Dtj4_rr9VanYeCky8PwP3-2g5A_l0,6215
|
|
18
18
|
tuieval/packs.py,sha256=KOj0BkwsB2124aslGyauZonyyGqtSrCJ-WAozEntmqE,17466
|
|
19
19
|
tuieval/profiles.py,sha256=3GribubCOCRTi_rClLxVynBeX2SBYTig0XObAlS8lzg,5300
|
|
20
20
|
tuieval/pta.py,sha256=MBn2EkDysayv8XOqiTKp5zomuUmZnZTuQ5jGBR2-Z4s,19281
|
|
21
21
|
tuieval/remove.py,sha256=ckep4iZUkuWE2JTcZFovCy7snNd_WLkJ6b602eGKZws,5339
|
|
22
|
-
tuieval/run_evals.py,sha256=
|
|
22
|
+
tuieval/run_evals.py,sha256=kLnQDZB_XoqdBFDk3paPYGvl0u_IXfSDuZS0Sp69Rgc,56095
|
|
23
23
|
tuieval/scaffold.py,sha256=YBOqniJpf_GtKKAFF3_OHxxMGbmTWdFjcClGcOnrrKE,12130
|
|
24
24
|
tuieval/selftest.py,sha256=cIGSDCrCK-QISAXjKSJDB4sD-WwS32bn3Gn4Y0oGoF8,11502
|
|
25
25
|
tuieval/tui.py,sha256=5BtqHoEtqBHRCrh0qPn2Vmg-4hSjjtlfPQ5qoysHlb0,211349
|
|
@@ -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.dev152.dist-info/METADATA,sha256=3D1IrWsNYPAEKTdD9PbTs1vFgPGIhvrGGIzD1YyxoSU,15306
|
|
55
|
+
tuieval-0.2.0.dev152.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
56
|
+
tuieval-0.2.0.dev152.dist-info/entry_points.txt,sha256=7eIhi1GpFxBP2OLJV02Nn8LwsNuO512eKOGt1IBbj04,45
|
|
57
|
+
tuieval-0.2.0.dev152.dist-info/licenses/LICENSE,sha256=7wfRgGtBGH1aXhZkIn47oUznqKC18kEPMvUVgol7Ffc,1077
|
|
58
|
+
tuieval-0.2.0.dev152.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|