@simplexai/localmodels-linux-x64 0.1.0-dev.35 → 0.1.0-dev.36
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.
- package/bootstrap.identity +1 -1
- package/bootstrap.sha256 +23 -22
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/budget.py +2 -0
- package/modules/localmodels/catalog.json +235 -2
- package/modules/localmodels/engines-strata-0.1.59.1.json +31 -0
- package/modules/localmodels/llm_rank.py +61 -6
- package/modules/localmodels/metal_probe.py +11 -7
- package/modules/localmodels/recommend.py +32 -3
- package/modules/localmodels/remote_ops_download.py +2 -2
- package/modules/localmodels/remote_ops_prepare.py +19 -0
- package/modules/localmodels/stack_compose.py +23 -12
- package/modules/localmodels/stack_hardware.py +11 -14
- package/modules/localmodels/stack_picks.py +16 -8
- package/modules/localmodels/stack_plan.py +4 -4
- package/modules/localmodels/stack_suite.py +5 -3
- package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/RECORD +20 -19
- package/package.json +1 -1
- package/tool.json +1 -1
- /package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -76,13 +76,13 @@ def _link_copy(source: str, dest: str, sha256: str, size: int, label: str) -> No
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
def act_download(p: remote_ops.DownloadParams) -> None:
|
|
79
|
-
if any(f.get("generated") for f in p["files"]) and not p.get("preparation"):
|
|
80
|
-
raise RuntimeError("generated files need an approved Strata preparation descriptor")
|
|
81
79
|
for f in p["files"]:
|
|
82
80
|
dest, label = remote_ops._expand(f["dest"]), os.path.basename(f["dest"])
|
|
83
81
|
if f.get("reuse"):
|
|
84
82
|
reuse = os.path.realpath(remote_ops._expand(f["reuse"]))
|
|
85
83
|
_link_copy(reuse, dest, f["sha256"], f["size_bytes"], label)
|
|
84
|
+
if not p.get("preparation"):
|
|
85
|
+
remote_ops_prepare.verify_reused_outputs(p["files"])
|
|
86
86
|
files = [f for f in p["files"] if not f.get("generated")]
|
|
87
87
|
for i in remote_ops.each_file(
|
|
88
88
|
[(remote_ops._expand(f["dest"]), f["size_bytes"]) for f in files]
|
|
@@ -336,6 +336,25 @@ def _generate(
|
|
|
336
336
|
)
|
|
337
337
|
|
|
338
338
|
|
|
339
|
+
def verify_reused_outputs(files: list[remote_ops.Reusable]) -> None:
|
|
340
|
+
"""Without a conversion recipe, every generated destination must already match its pin."""
|
|
341
|
+
for file in files:
|
|
342
|
+
if not file.get("generated"):
|
|
343
|
+
continue
|
|
344
|
+
path = remote_ops._expand(file["dest"])
|
|
345
|
+
try:
|
|
346
|
+
if file["url"] or file.get("mirrors"):
|
|
347
|
+
raise RuntimeError("generated outputs cannot have download URLs")
|
|
348
|
+
_require_file(path, file)
|
|
349
|
+
except RuntimeError as exc:
|
|
350
|
+
_discard_receipt(path)
|
|
351
|
+
raise RuntimeError(
|
|
352
|
+
"generated files need verified existing bytes or an approved Strata "
|
|
353
|
+
"preparation descriptor"
|
|
354
|
+
) from exc
|
|
355
|
+
_receipt(path, file["sha256"])
|
|
356
|
+
|
|
357
|
+
|
|
339
358
|
def prepare(spec: remote_ops.StrataPreparation, files: list[remote_ops.Reusable]) -> None:
|
|
340
359
|
"""Generate missing groups, check their exact pins, and atomically publish their files."""
|
|
341
360
|
if spec["kind"] != KIND or spec["mtp_revision"] != MTP_REVISION:
|
|
@@ -47,7 +47,7 @@ from localmodels import stack_gpu_memory as gpu_memory
|
|
|
47
47
|
from localmodels import stack_hardware as hardware
|
|
48
48
|
from localmodels import stack_llm_ram as llm_ram
|
|
49
49
|
from localmodels.approval import digest
|
|
50
|
-
from localmodels.budget import gib, host_ram
|
|
50
|
+
from localmodels.budget import gib, host_ram, placements
|
|
51
51
|
from localmodels.context_policy import AGENT, AgentPosture, posture_for, window_k
|
|
52
52
|
from localmodels.plan_envelope import PlanError, require_free_port, utc_now
|
|
53
53
|
from localmodels.probe import HostFacts
|
|
@@ -296,10 +296,6 @@ def agent_posture(options: StackOptions) -> AgentPosture:
|
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
def _choose_llm(facts: HostFacts, options: StackOptions, posture: AgentPosture) -> tuple[str, str]:
|
|
299
|
-
"""(catalog id, placement id): explicit selection, then the small-Mac default if it fits.
|
|
300
|
-
Other auto candidates must be validated and pass the agent capacity gate; quality then
|
|
301
|
-
speed ranks them. Each takes the first fitting card from stack_hardware's free-memory
|
|
302
|
-
order. Explicit --llm and --gpu keep the same capacity and conflict checks."""
|
|
303
299
|
gpu = options.get("gpu")
|
|
304
300
|
mac = metal.device(facts) is not None
|
|
305
301
|
|
|
@@ -320,6 +316,7 @@ def _choose_llm(facts: HostFacts, options: StackOptions, posture: AgentPosture)
|
|
|
320
316
|
cards = hardware.cards(facts, gpu, share_gpu=options.get("share_gpu", False))
|
|
321
317
|
posture = posture_for(posture, "metal") if mac else posture
|
|
322
318
|
fitting = []
|
|
319
|
+
fallback_ids = set()
|
|
323
320
|
for entry in (
|
|
324
321
|
e
|
|
325
322
|
for e in cat.load_catalog_file()
|
|
@@ -328,12 +325,14 @@ def _choose_llm(facts: HostFacts, options: StackOptions, posture: AgentPosture)
|
|
|
328
325
|
variant = entry.variants[-1]
|
|
329
326
|
for index in cards:
|
|
330
327
|
card = hardware.llm_budget(facts, index, options, entry=entry, posture=posture)[0]
|
|
331
|
-
if llm_rank.
|
|
328
|
+
if llm_rank.automatic_fit(entry, facts, card, posture, options):
|
|
332
329
|
fitting.append((llm_rank.rank_key(entry, variant, card), entry.id, index))
|
|
330
|
+
if llm_rank.windows_fallback(entry, facts):
|
|
331
|
+
fallback_ids.add(entry.id)
|
|
333
332
|
break
|
|
334
333
|
if fitting:
|
|
335
334
|
prefer, default = str(options.get("prefer") or "smartest"), llm_rank.mac_default(facts)
|
|
336
|
-
llm_id, index = llm_rank.choose(fitting, prefer, default)
|
|
335
|
+
llm_id, index = llm_rank.choose(fitting, prefer, default, fallback_ids=fallback_ids)
|
|
337
336
|
return llm_id, placement(index)
|
|
338
337
|
where = (
|
|
339
338
|
f"GPU {gpu}"
|
|
@@ -348,21 +347,27 @@ def _choose_llm(facts: HostFacts, options: StackOptions, posture: AgentPosture)
|
|
|
348
347
|
raise StackError(
|
|
349
348
|
f"no verified LLM fits {where} in the agent posture "
|
|
350
349
|
f"({window_k(posture.floor)} floor){reserve}{_no_fit_reason(facts, cards, mac)}; "
|
|
351
|
-
"name a catalog model with --llm (candidates are not ranked automatically), "
|
|
350
|
+
"name a catalog model with --llm (other candidates are not ranked automatically), "
|
|
352
351
|
f"see each card with {command()} stack hardware"
|
|
353
352
|
)
|
|
354
353
|
|
|
355
354
|
|
|
356
355
|
def _no_fit_reason(facts: HostFacts, cards: list[int], mac: bool) -> str:
|
|
357
|
-
"""Why nothing fit, in the user's terms: every card busy with someone else's service, or how
|
|
358
|
-
much the roomiest candidate card has free."""
|
|
359
356
|
gpus = {g["index"]: g for g in facts.get("gpus") or []}
|
|
360
357
|
if mac or not gpus:
|
|
361
358
|
return ""
|
|
362
359
|
if not cards:
|
|
363
|
-
|
|
360
|
+
eligible = [p for p in placements(facts) if not p.pooled and len(p.gpu_indices) == 1]
|
|
361
|
+
if not eligible:
|
|
362
|
+
return ": no supported single-card GPU placement"
|
|
363
|
+
if not all(p.conflicts for p in eligible):
|
|
364
|
+
return ": no GPU meets automatic selection requirements; check GPU service discovery"
|
|
365
|
+
free = ", ".join(
|
|
366
|
+
f"GPU {p.gpu_indices[0]} {gib(gpus[p.gpu_indices[0]]['free_bytes'])} free"
|
|
367
|
+
for p in eligible
|
|
368
|
+
)
|
|
364
369
|
return (
|
|
365
|
-
f": every card runs services this tool does not own ({free}), and --llm auto skips "
|
|
370
|
+
f": every placeable card runs services this tool does not own ({free}), and --llm auto skips "
|
|
366
371
|
"such cards; plan again once they end, or, if sharing is fine and that card has "
|
|
367
372
|
"room, use --gpu N --share-gpu"
|
|
368
373
|
)
|
|
@@ -386,6 +391,12 @@ def _llm_warnings(
|
|
|
386
391
|
"""What a catalog llama.cpp LLM's plan says about itself: its own warnings, an ignored
|
|
387
392
|
--conversation-cache, and a running one kept as is or a new one's GPU conflicts and speed."""
|
|
388
393
|
warnings = [f"LLM: {w}" for w in llm["warnings"]]
|
|
394
|
+
if (
|
|
395
|
+
llm_id == llm_rank.WINDOWS_FALLBACK_ID
|
|
396
|
+
and facts["platform"] == "win32"
|
|
397
|
+
and options["llm"] == "auto"
|
|
398
|
+
):
|
|
399
|
+
warnings.append(f"LLM: {llm_rank.WINDOWS_FALLBACK_WARNING}")
|
|
389
400
|
if llm_id == llm_rank.mac_default(facts) and options["llm"] == "auto":
|
|
390
401
|
warnings.append(
|
|
391
402
|
"LLM: LFM3-1.7B is the user-selected small-Mac default (LFM1); "
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Read-only hardware readings, card budgets and
|
|
1
|
+
"""Read-only hardware readings, card budgets and automatic llama.cpp candidates.
|
|
2
2
|
|
|
3
3
|
``stack plan`` uses the same card budgets, plus whole-stack RAM and disk checks for Strata.
|
|
4
4
|
A Mac shares unified memory; ``--unified-memory`` prices it as a smaller Mac.
|
|
@@ -25,6 +25,7 @@ from localmodels.estimator import (
|
|
|
25
25
|
)
|
|
26
26
|
from localmodels.probe import GPU, HostFacts
|
|
27
27
|
from localmodels.records import Plan
|
|
28
|
+
from localmodels.stack_picks import label as fit_label
|
|
28
29
|
from localmodels.stack_picks import lines as pick_lines
|
|
29
30
|
from localmodels.stack_picks import picks
|
|
30
31
|
from localmodels.stack_plan import (
|
|
@@ -276,11 +277,8 @@ def llm_budget(
|
|
|
276
277
|
entry: cat.CatalogEntry | None = None,
|
|
277
278
|
posture: AgentPosture = AGENT,
|
|
278
279
|
) -> tuple[HardwareBudget, int]:
|
|
279
|
-
"""
|
|
280
|
-
|
|
281
|
-
auto budget keeps. It carries the card's spec bandwidth for the speed estimate. On a Mac
|
|
282
|
-
the free memory also holds the entry's host embeddings and prompt-cache floor.
|
|
283
|
-
Without an entry this reports a generic hardware budget."""
|
|
280
|
+
"""Live agent budget and minimum decision reserve; deduct safety and display reserves.
|
|
281
|
+
On a Mac also reserve embeddings and the cache floor; carry bandwidth for speed estimates."""
|
|
284
282
|
gpu = device(facts, index)
|
|
285
283
|
on_mac = gpu["uuid"] == metal.METAL_UUID
|
|
286
284
|
reserve = decision_reserve(component.auto_budget(gpu["total_bytes"]), options)
|
|
@@ -319,16 +317,19 @@ def llm_fits(
|
|
|
319
317
|
):
|
|
320
318
|
variant = entry.variants[-1]
|
|
321
319
|
budget, _ = llm_budget(facts, index, options, entry=entry, posture=posture)
|
|
322
|
-
if llm_rank.
|
|
320
|
+
if llm_rank.automatic_fit(entry, facts, budget, posture, options):
|
|
323
321
|
speed = cat.decode_estimate(entry, variant, budget)
|
|
324
322
|
fit: LlmFit = {
|
|
325
323
|
"id": entry.id,
|
|
326
324
|
"quant": variant.quant,
|
|
327
|
-
"quality": entry.quality,
|
|
325
|
+
"quality": 0 if llm_rank.windows_fallback(entry, facts) else entry.quality,
|
|
328
326
|
"decode_tok_s": round(speed.tok_s, 1),
|
|
329
327
|
"decode_basis": speed.basis,
|
|
330
328
|
}
|
|
329
|
+
if llm_rank.windows_fallback(entry, facts):
|
|
330
|
+
fit["candidate_fallback"] = True
|
|
331
331
|
found.append((llm_rank.rank_key(entry, variant, budget), fit))
|
|
332
|
+
found = [row for row in found if not row[1].get("candidate_fallback")] or found
|
|
332
333
|
default_id = llm_rank.listed_default(facts, [(f["id"], f["quality"]) for _, f in found])
|
|
333
334
|
return [
|
|
334
335
|
fit
|
|
@@ -608,14 +609,10 @@ def lines(hw: Hardware, command: str) -> list[str]:
|
|
|
608
609
|
)
|
|
609
610
|
if c["held_by"]:
|
|
610
611
|
out.append(" held by: " + "; ".join(c["held_by"]))
|
|
611
|
-
fits = [
|
|
612
|
-
f"{f['id']} {f['quant']} (agent quality {f['quality']}, estimated decode "
|
|
613
|
-
f"{f['decode_tok_s']:g} tok/s)"
|
|
614
|
-
for f in c["llm"][:3]
|
|
615
|
-
]
|
|
612
|
+
fits = [fit_label(f) for f in c["llm"][:3]]
|
|
616
613
|
shown = f"top 3 of {len(c['llm'])}" if len(c["llm"]) > 3 else f"{len(fits)} in all"
|
|
617
614
|
out.append(
|
|
618
|
-
f" llama.cpp LLMs that fit (agent posture,
|
|
615
|
+
f" llama.cpp LLMs that fit (agent posture, automatic eligibility, {shown}): "
|
|
619
616
|
+ ", ".join(fits)
|
|
620
617
|
if fits
|
|
621
618
|
else " LLMs that fit: no validated LLM fits this card in the agent posture"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""The two LLMs ``stack`` offers for one computer: the smartest that fits, and the fastest.
|
|
2
2
|
|
|
3
|
-
Both come from the per-card lists ``stack hardware`` prints (stack_hardware.llm_fits):
|
|
3
|
+
Both come from the per-card lists ``stack hardware`` prints (stack_hardware.llm_fits): eligible
|
|
4
4
|
models that pass the agent gate on a card ``--llm auto`` may take, so nothing here prices or
|
|
5
5
|
probes again. ``smartest`` is what ``--prefer smartest`` (the default) installs. ``fastest`` is
|
|
6
6
|
what ``--prefer fastest`` installs: the highest decode speed that fits, whatever its score. One
|
|
@@ -24,8 +24,12 @@ WORTH_FASTER = 1.2
|
|
|
24
24
|
ROLES = ("smartest", "fastest")
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
28
|
-
|
|
27
|
+
class _FitPolicy(TypedDict, total=False):
|
|
28
|
+
candidate_fallback: bool
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class Fit(_FitPolicy):
|
|
32
|
+
"""An automatic LLM fit on one card; candidate_fallback never competes with a primary.
|
|
29
33
|
stack_plan names it LlmFit."""
|
|
30
34
|
|
|
31
35
|
id: str
|
|
@@ -57,7 +61,7 @@ def picks(cards: Sequence[CardFits], default: str | None = None) -> list[Pick]:
|
|
|
57
61
|
model counts on the first card that holds it, in the order ``--llm auto`` tries cards (most
|
|
58
62
|
free memory first); ``default`` is the small-Mac default (llm_rank.mac_default). When every
|
|
59
63
|
card that holds a model runs another program's service (a shared Mac's one GPU), the picks
|
|
60
|
-
are what sharing it would install and say so. Empty when nothing
|
|
64
|
+
are what sharing it would install and say so. Empty when nothing eligible fits."""
|
|
61
65
|
free = [c for c in cards if c["auto"] and c["llm"]]
|
|
62
66
|
found: dict[str, Pick] = {}
|
|
63
67
|
for card in sorted(free or cards, key=lambda c: (-c["free_bytes"], c["index"])):
|
|
@@ -68,8 +72,9 @@ def picks(cards: Sequence[CardFits], default: str | None = None) -> list[Pick]:
|
|
|
68
72
|
if not found:
|
|
69
73
|
return []
|
|
70
74
|
ranked = [((p["quality"], p["decode_tok_s"]), p["id"], p["card"]) for p in found.values()]
|
|
71
|
-
|
|
72
|
-
|
|
75
|
+
fallback_ids = {p["id"] for p in found.values() if p.get("candidate_fallback")}
|
|
76
|
+
smartest = found[llm_rank.choose(ranked, "smartest", default, fallback_ids=fallback_ids)[0]]
|
|
77
|
+
fastest = found[llm_rank.choose(ranked, "fastest", fallback_ids=fallback_ids)[0]]
|
|
73
78
|
offered: list[Pick] = [{**smartest, "role": "smartest"}]
|
|
74
79
|
if (
|
|
75
80
|
fastest["id"] != smartest["id"]
|
|
@@ -89,12 +94,13 @@ def second(offered: list[Pick], chosen: str) -> Pick | None:
|
|
|
89
94
|
return next((p for p in offered if p["role"] == "fastest"), None)
|
|
90
95
|
|
|
91
96
|
|
|
92
|
-
def label(pick:
|
|
97
|
+
def label(pick: Fit) -> str:
|
|
93
98
|
"""One pick in a line: model, score, speed and what the speed rests on."""
|
|
94
99
|
score = f"score {pick['quality']}" if pick["quality"] else "no SimplexAI score"
|
|
95
100
|
measured = pick["decode_basis"] == "measured-decode"
|
|
96
101
|
speed = f"{pick['decode_tok_s']:.0f} tok/s " + ("measured" if measured else "estimated")
|
|
97
|
-
|
|
102
|
+
candidate = " · candidate product fallback" if pick.get("candidate_fallback") else ""
|
|
103
|
+
return f"{pick['id']} {pick['quant']} · {score} · {speed}{candidate}"
|
|
98
104
|
|
|
99
105
|
|
|
100
106
|
def lines(offered: list[Pick], command: str | None) -> list[str]:
|
|
@@ -118,6 +124,8 @@ def lines(offered: list[Pick], command: str | None) -> list[str]:
|
|
|
118
124
|
" the card runs another program's service: once sharing it is "
|
|
119
125
|
"confirmed, add --share-gpu (with --gpu N on an NVIDIA card)"
|
|
120
126
|
)
|
|
127
|
+
if any(p.get("candidate_fallback") for p in offered):
|
|
128
|
+
out.append(f" {llm_rank.WINDOWS_FALLBACK_WARNING}")
|
|
121
129
|
if any(p["decode_basis"] != "measured-decode" for p in offered):
|
|
122
130
|
bases = sorted({p["decode_basis"] for p in offered} - {"measured-decode"})
|
|
123
131
|
out.append(
|
|
@@ -13,6 +13,8 @@ from pathlib import Path
|
|
|
13
13
|
from typing import Literal, TypedDict, cast
|
|
14
14
|
|
|
15
15
|
from localmodels import approval, deploy, gateway, harness, hosts, preparation, reuse, vision
|
|
16
|
+
from localmodels.budget import HARNESS_RAM as HARNESS_RAM
|
|
17
|
+
from localmodels.budget import RAM_FLOOR as RAM_FLOOR
|
|
16
18
|
from localmodels.budget import gib
|
|
17
19
|
from localmodels.gateway_bifrost import FAST_PROVIDER
|
|
18
20
|
from localmodels.plan_envelope import PlanError, resolved_name
|
|
@@ -23,9 +25,8 @@ from localmodels.stack_picks import Fit, Pick
|
|
|
23
25
|
|
|
24
26
|
SCHEMA = "localmodels.stack-plan/v1"
|
|
25
27
|
GIB = 1 << 30
|
|
26
|
-
RAM_FLOOR = 4 * GIB # the baseline's host MemAvailable floor
|
|
27
28
|
# A Mac's floor beside the stack (2026-11-09 user decision, from MLO1's recommendation): the
|
|
28
|
-
# memory "available" there
|
|
29
|
+
# memory "available" there counts free + inactive + speculative pages, and macOS reclaims beyond
|
|
29
30
|
# it, so Linux's 4 GiB floor held back a second margin. A 24 GiB Mac ran Ling 128K and 64K with
|
|
30
31
|
# pi for 20+ minutes from 8.4–8.9 GB available, pressure 1 and no swap growth, where the 4 GiB
|
|
31
32
|
# floor refused it (evidence/2026-11-05-mac-llm-only-tiers/REPORT.md). The live gates stay: a
|
|
@@ -37,7 +38,6 @@ METAL_RAM_FLOOR = 1 * GIB
|
|
|
37
38
|
# so a reply that would think without end (14,000 tokens of thinking, no answer, on local-119
|
|
38
39
|
# 2026-11-05) closes its thinking and answers. `--reasoning-budget` overrides it, 0 removes it.
|
|
39
40
|
REASONING_BUDGET = 8192
|
|
40
|
-
HARNESS_RAM = 1 * GIB # the gateway (Bifrost or Magpie) plus one client session (estimate)
|
|
41
41
|
FRONT_ENV_BYTES = 200 << 20 # a decision front's environment: 110 MB source archive plus wheels
|
|
42
42
|
|
|
43
43
|
|
|
@@ -189,7 +189,7 @@ class DecisionOption(TypedDict):
|
|
|
189
189
|
commercial_use: bool
|
|
190
190
|
|
|
191
191
|
|
|
192
|
-
LlmFit = Fit
|
|
192
|
+
LlmFit = Fit
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
class _CardSince20261028(TypedDict, total=False):
|
|
@@ -154,13 +154,15 @@ def expert_cache(
|
|
|
154
154
|
top of its reservation: lab241-rsi (2026-10-23) found 4.1 GiB idle. A fixed slot count takes
|
|
155
155
|
the same VRAM in either start order; the decision model's share stays out of it, and Strata
|
|
156
156
|
keeps only its own free margin. ``reader_mib`` is the GPU picture reader's VRAM (decision 31),
|
|
157
|
-
held back from the cache like the decision model's.
|
|
157
|
+
held back from the cache like the decision model's. Auto also reserves the real card's
|
|
158
|
+
memory excluded by ``--gpu-memory``. Fixed-slot sizing below uses the priced card's total."""
|
|
159
|
+
auto_reserve = reserve_mib + reader_mib + (gpu_memory.left_out_bytes(gpu) >> 20)
|
|
158
160
|
sizing = recipe.get("expert_cache_sizing")
|
|
159
161
|
if not sizing:
|
|
160
|
-
return "auto",
|
|
162
|
+
return "auto", auto_reserve
|
|
161
163
|
room = (gpu["total_bytes"] >> 20) - reserve_mib - reader_mib - expert_cache_mib(recipe)
|
|
162
164
|
slots = int(room / sizing["slot_mib"])
|
|
163
|
-
return (str(slots), STRATA_FREE_MIB) if slots > 0 else ("auto",
|
|
165
|
+
return (str(slots), STRATA_FREE_MIB) if slots > 0 else ("auto", auto_reserve)
|
|
164
166
|
|
|
165
167
|
|
|
166
168
|
def strata_recipes() -> list[suite.SuiteRecipe]:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
localmodels/HERMES-LICENSE,sha256=ghVW5jNnlkUKuFLTdRF7SKSIfnHSVXlP1jGNmZgqWrY,1070
|
|
2
|
-
localmodels/__init__.py,sha256=
|
|
2
|
+
localmodels/__init__.py,sha256=GzPeVDqICy23K0h0YUFwPgRfC9V06DX_mIoCW7vgDrM,171
|
|
3
3
|
localmodels/__main__.py,sha256=-J8PQmvfYYC8hoUHL8oeWpIAU8BjojY-hTO7LtYQUF4,25740
|
|
4
4
|
localmodels/app.py,sha256=1YQxeQt1LtnFgZhy6KI3xJ08DhXYtbTUviSmHlBNSlY,19714
|
|
5
5
|
localmodels/approval.py,sha256=QR3miw70RpREK6y-IMtL4ePk8p9tUz_cgZIXTxXlckM,14021
|
|
@@ -16,8 +16,8 @@ localmodels/bifrost_pi.py,sha256=9whyTKJ-omq9S7lTtMclTJ2v6MzDYZLoIxRCe9ypCA8,741
|
|
|
16
16
|
localmodels/bifrost_provider.py,sha256=4u6_pdtlFFibWzyVwvxM6Nbkzr1XYqu48I4HgfFI4TQ,2303
|
|
17
17
|
localmodels/bifrost_search.py,sha256=nycgV_b0o7x6MdxZh-pHtURQ_cjP2ivv0NvuYeU7wYA,3114
|
|
18
18
|
localmodels/bifrost_unit.py,sha256=4WZtEVdawlkOfJLNwXUd54YzyzxBBpjbfVoGxGsb_Lw,3983
|
|
19
|
-
localmodels/budget.py,sha256=
|
|
20
|
-
localmodels/catalog.json,sha256=
|
|
19
|
+
localmodels/budget.py,sha256=gl7Gln0CgXy9KkKlWjpQYLoL-NZZZXGeUz8VGf4l2Xg,19755
|
|
20
|
+
localmodels/catalog.json,sha256=S3MC3I1mbVf5PbI90DIObUl1Ku9gUruyy712cQHnLK8,208924
|
|
21
21
|
localmodels/catalog.py,sha256=kjYpIzfGGF7wH94EiV3NQ2zX_hFxK9EoYh4UH4xEQBk,28708
|
|
22
22
|
localmodels/catalog_add.py,sha256=jX4dFmoWVD8NckqSrPecWPD4-fQgjmzrvhBZh_C_JKs,11998
|
|
23
23
|
localmodels/catalog_license.py,sha256=7vDNHcjfi5YGtDRYXKJtAnpNUpJ8AF2NgizNCNm8lAY,1471
|
|
@@ -42,6 +42,7 @@ localmodels/engines-b12167.json,sha256=2fMOTDUhE6amJXnyvE4hUNfjmPaNlcAInNqX0-Hld
|
|
|
42
42
|
localmodels/engines-strata-0.1.47.json,sha256=euYU6BeIbpCF4DDGLlnqnSZ-IjNWGjIlKKl0MXGr2KE,1407
|
|
43
43
|
localmodels/engines-strata-0.1.49.1.json,sha256=-xIChSbiDu3DU1_WAI4DQPtVNbKeQfZb97-XOb_E5xs,1640
|
|
44
44
|
localmodels/engines-strata-0.1.49.2.json,sha256=oZ2bZiss5B593yZrNzTGA1Q-wgjf0m6T5YWcaSmNE0w,1602
|
|
45
|
+
localmodels/engines-strata-0.1.59.1.json,sha256=M68hxUGOcY6u2Z7lLwmgPvIIw8P9WjyUV8bDiqor0Bw,1419
|
|
45
46
|
localmodels/engines-strata-poly-0.1.45-poly.9.json,sha256=Edy5ouBNEeqLiTEShw7n6Zp3Aj-ENbPTkLy1mKxRcLQ,2098
|
|
46
47
|
localmodels/engines-whisper-b5454.json,sha256=dQbvYZ0MG0VTZh50UGlEKkuzn51HtTWw2UAY0DmHudc,1208
|
|
47
48
|
localmodels/engines.json,sha256=8kMuc-9AOyIpX3uR7lKiHI7jb95KZl02qzxhNKkUM4c,10407
|
|
@@ -85,13 +86,13 @@ localmodels/library_pricing.py,sha256=MUITZTA2Lvr9BSI73ToZbYBQLFJ-e8_QreM2L03Nvq
|
|
|
85
86
|
localmodels/library_serve.py,sha256=c0OJQuxTzNLdEEOo6XO61XZmwvUxiXMlFy16uTYI9MY,14936
|
|
86
87
|
localmodels/library_state.py,sha256=3GGNfMIvI4wrxSkISUblts9xo0z30ecEINcnOiZMz9Y,12526
|
|
87
88
|
localmodels/library_status.py,sha256=WrKTqn9JBEmM_7e81o3f-qf7Z-TSXSyyVwnGu4wfZvA,13202
|
|
88
|
-
localmodels/llm_rank.py,sha256=
|
|
89
|
+
localmodels/llm_rank.py,sha256=e7JVnh8ljPoEB_5xzGVxzC6xHn64fZPKAmUD2NVgEEo,10429
|
|
89
90
|
localmodels/magpie_setup.py,sha256=AoZmTf_RnyHHMrxKn1q7XH17t0zm3hiv-q0LIgLE5cQ,29772
|
|
90
91
|
localmodels/memcalc.py,sha256=lTmzoHjPYz5-56gzh4VQElT1iR6u67B28sdVrr5dr_w,20458
|
|
91
92
|
localmodels/memcalc_cli.py,sha256=yDG4cNirtjZTwbloY8Sb0IGy1_dpUI92Z4qMng4_Wwc,7739
|
|
92
93
|
localmodels/memcalc_load.py,sha256=kNudHxnFlIsOtbZIbckJx3ucTE23PeRDElhXWUegwVA,7832
|
|
93
94
|
localmodels/metal.py,sha256=HKJf1Ge5bI-JiUOoOvBdOEMCfWNp_mCjrqNUlbE9txs,15820
|
|
94
|
-
localmodels/metal_probe.py,sha256
|
|
95
|
+
localmodels/metal_probe.py,sha256=-ZpLDZkIv3PuAmgYR8TxezhLX4G6oTJsDqRtFatAIDk,5769
|
|
95
96
|
localmodels/mlx-lm-0.32.2-requirements.txt,sha256=sFSEnHM-H5rKZKKJCl3gCAEw4aqlGBM21oN9mlZ4SxE,57369
|
|
96
97
|
localmodels/mlx_server.py,sha256=ayvcfxHvc55dJ8nyrGXfcmIfAFGlKw0Peyagu_AGsJs,3979
|
|
97
98
|
localmodels/npm_transport.py,sha256=ZstCfEEQru_qU5Y-WCCz9vvX1CLYbfzgIernJPFBDV0,9568
|
|
@@ -104,13 +105,13 @@ localmodels/probe.py,sha256=O-gU4Q1zQHbAyfTfbhASJMmIj-Vmh3-Jjwyj1h5x_HA,27877
|
|
|
104
105
|
localmodels/process_identity.py,sha256=cZVC2LGm2jACBhocdPyQTShKNpaNMegTbFxMd6NE4Uk,31270
|
|
105
106
|
localmodels/python-bootstrap-lock.json,sha256=cCSWKas2LT88hS9XbmZAsQkb9eInvaNUpWT6NhrQD3g,1850
|
|
106
107
|
localmodels/quant_formats.py,sha256=qbrYVLZ5fcfpHOh-ADv4wKIunxppmkKBvJp8bXVMPLE,5216
|
|
107
|
-
localmodels/recommend.py,sha256=
|
|
108
|
+
localmodels/recommend.py,sha256=Sr5GcAPUDV2e3462lTfrmhovVvu-ISIWnaO7rPrR1nI,12593
|
|
108
109
|
localmodels/recommend_cli.py,sha256=H2daQ-MxlmOWStZ70CU5eZjpyS35NyxgOF26JFrj9rI,11830
|
|
109
110
|
localmodels/records.py,sha256=vswpPuQJcExwOGk14qJ7xoidh9dgqJwvzDOBsf0lT8s,6330
|
|
110
111
|
localmodels/remote_ops.py,sha256=kINcm0d2z3ySVGCtY4a2m6gyr0KEIJdhEXRGpPTvX40,19164
|
|
111
|
-
localmodels/remote_ops_download.py,sha256=
|
|
112
|
+
localmodels/remote_ops_download.py,sha256=a_4QxFTekVmaibJ6YJBiXibzIo-ubC3oCQbmtt_c-gQ,16020
|
|
112
113
|
localmodels/remote_ops_launchd.py,sha256=9gxQwymj3liuIJMdpS5zWqMiQspxhR896XK2-bAz7Z8,3220
|
|
113
|
-
localmodels/remote_ops_prepare.py,sha256=
|
|
114
|
+
localmodels/remote_ops_prepare.py,sha256=3UWJamTIx7F7i1ojACP5g2vVAeMmRL2Cp58YtThRzjA,15911
|
|
114
115
|
localmodels/remote_ops_remove.py,sha256=Rj6TbYOp9KlF2frgk3x7jdajVzcWi6LABV85AeO7tco,5350
|
|
115
116
|
localmodels/remote_ops_service.py,sha256=fLvm4d9QfUj_w_Ow0iOE34K5dMJNn8c7jN3xCEWjJuE,31260
|
|
116
117
|
localmodels/remote_ops_verify.py,sha256=z34-Q3fiMawcboJhOxqVxGTzzpFllvT1vfqEccJHC1M,21034
|
|
@@ -149,7 +150,7 @@ localmodels/stack_card.py,sha256=BD2dxEWWq_O9klnpPFGsBqTqtnnJR3BgabLRXwFMOU0,771
|
|
|
149
150
|
localmodels/stack_cleanup.py,sha256=qWM766hmIAVl8FzIgdshMe30vcoKJ_T5Pl4-j2rKjmk,16254
|
|
150
151
|
localmodels/stack_client_settings.py,sha256=KaAj44Eet3fW1nKQPCr6waAMwVSoW-9DlDubZm6dZEM,3960
|
|
151
152
|
localmodels/stack_clients.py,sha256=ZhUKJ17W5gHJEP4sjL4apEjcm8DinDqX2gkagWwnjW0,7268
|
|
152
|
-
localmodels/stack_compose.py,sha256=
|
|
153
|
+
localmodels/stack_compose.py,sha256=mbe4IYusAh5axTikFljrbWe57lh6AodsldYznmPNtBA,30597
|
|
153
154
|
localmodels/stack_console.py,sha256=A4FRbxUeSnPgWu7tOp34I_gimwH-BisGE13fDYFjHII,13800
|
|
154
155
|
localmodels/stack_debug.py,sha256=KCZfw4n0Djr6iYxEKCY_LrKKNOH6ODXwGKN4BkDvzMg,6137
|
|
155
156
|
localmodels/stack_decision.py,sha256=cxBlaricBKSxcTodr7QVnum44jqQHLDqjYSuzlst4vk,30632
|
|
@@ -157,15 +158,15 @@ localmodels/stack_doctor.py,sha256=ZxwCLRfcPiIcYtZ200AmDmBVDx7OXTfzL5cCSPlZ84I,2
|
|
|
157
158
|
localmodels/stack_down.py,sha256=eVc7w3znTw4PtPtAH3NXdA6FF53-MLyztrIRpSDGKZw,7198
|
|
158
159
|
localmodels/stack_events.py,sha256=UeFiUCB02nD2C9mBUWSl1tCo9vFeC2QTg92sQ0OePns,9269
|
|
159
160
|
localmodels/stack_gpu_memory.py,sha256=N5n25NlXvHWV6nHSpF0W9uathcwP-6RsUpiJ5WuNGzw,2776
|
|
160
|
-
localmodels/stack_hardware.py,sha256=
|
|
161
|
+
localmodels/stack_hardware.py,sha256=OJ_vl8NAm4wem-xzI_W6OVlaMRKSpEzLEKbQFGgu_9M,33439
|
|
161
162
|
localmodels/stack_journal.py,sha256=Aa4_ns-Zyx3gvR0CqGBTmYzvCYyZUYfmrAmdZ2JYKoE,7571
|
|
162
163
|
localmodels/stack_ledger.py,sha256=WILat53wq4qglG-MHAHik-L_4srvO-uPHtqBYeSt7Mw,16469
|
|
163
164
|
localmodels/stack_lifecycle.py,sha256=VMmVzMAO8q51ZRWy9GBnA5tK-6188yORuL3f4TRWAdE,31480
|
|
164
165
|
localmodels/stack_llm_ram.py,sha256=uuUAb5NAGHv3QN3PnP2hqO4xf0edfr1cqYf7DI4eoWI,6452
|
|
165
166
|
localmodels/stack_memory.py,sha256=6_PjqaPo03xElLwINFdtkalxjbNmHnJM8vMqIu2dWyw,30946
|
|
166
167
|
localmodels/stack_mlx.py,sha256=5d6Ej4FkGhD3rsJDPt8mVAy0BTCGzPaObtwcNkZ1PLw,9980
|
|
167
|
-
localmodels/stack_picks.py,sha256=
|
|
168
|
-
localmodels/stack_plan.py,sha256=
|
|
168
|
+
localmodels/stack_picks.py,sha256=48UzOCM2AdEyh2j7GKiVfzNy2HCK19iHk3LRYPznXB0,6570
|
|
169
|
+
localmodels/stack_plan.py,sha256=i9ctb1ij2B8b6sWwL7KyXmOPBG2yYIxRNaN-l-VeE3Q,26161
|
|
169
170
|
localmodels/stack_ports.py,sha256=nD7OycQUZ6I6X2pwMPtmv_to8UbOu6QwtZazSOvkpaE,7492
|
|
170
171
|
localmodels/stack_preflight.py,sha256=0sIrFfhhuIUYgebt4DFC-LsgJCh-ME0hOOJnZ8N_gbk,26984
|
|
171
172
|
localmodels/stack_progress.py,sha256=FHKDI-QLypu17ZM502oHQLUS7Io1TQL9UHSAU5pBncg,3018
|
|
@@ -176,7 +177,7 @@ localmodels/stack_review.py,sha256=wZzdCrNF_NeeFxLfhf9ZSceYVD9b5-eWaltY6F02d6k,7
|
|
|
176
177
|
localmodels/stack_rollback.py,sha256=U1ms5vLHjmFTcw52a46cBxM3wNoZe0QHmgLe6zEJxkw,12441
|
|
177
178
|
localmodels/stack_route.py,sha256=W2UhgLbRoHUwE9E-T7_uTFTdKLhLfwOkH7ius_B3sWA,9722
|
|
178
179
|
localmodels/stack_run.py,sha256=Xp4-2bTOtmc_2Xod88-IfSmATP7E_Z-Aqatd9V-j8PY,23508
|
|
179
|
-
localmodels/stack_suite.py,sha256=
|
|
180
|
+
localmodels/stack_suite.py,sha256=XzPEM10NTxIamh9_J4xlZ-CqMZ6Jlo2iywH88775qFA,30959
|
|
180
181
|
localmodels/stack_summary.py,sha256=Wx9NPMdbW_MO4S_JfJkm4Nuo13RFvcoJE7OnJPuuPj0,11912
|
|
181
182
|
localmodels/stack_try.py,sha256=gEy19Yqq99ODonZox8h5cxddvkuRT6HEF9LfMzmq15M,13791
|
|
182
183
|
localmodels/stack_try_client.py,sha256=dNaryTOmjOyNaYO4b3YFQ7t_3cwmGuFdYDy6iZvvGXM,7441
|
|
@@ -233,9 +234,9 @@ localmodels/web/view/nav.js,sha256=MgGiKYzmEOIoi8M3UNzHPgWQe9as8dBCOjJh1mnf4Fg,7
|
|
|
233
234
|
localmodels/web/view/theme.js,sha256=xu260r_pyeg0ZRqTQF5gqmny3F3dDOHp7QzGHkeua4M,688
|
|
234
235
|
localmodels/web/view/view.css,sha256=8AP04i6sSbETWB7YICT4WeM6tK5GIrcKd5AVLqByHp0,54439
|
|
235
236
|
localmodels/web/view/view.js,sha256=MtbVw84KQzOhY2YimI4-X6MJ4FHephAIkP7BQslBLHc,108308
|
|
236
|
-
simplex_localmodels-0.1.0.
|
|
237
|
-
simplex_localmodels-0.1.0.
|
|
238
|
-
simplex_localmodels-0.1.0.
|
|
239
|
-
simplex_localmodels-0.1.0.
|
|
240
|
-
simplex_localmodels-0.1.0.
|
|
241
|
-
simplex_localmodels-0.1.0.
|
|
237
|
+
simplex_localmodels-0.1.0.dev36.dist-info/licenses/NOTICE,sha256=tXcQr_xMoRwTBXz3P_ZhvNUPugRV0uvg4jtAyxHFpus,2712
|
|
238
|
+
simplex_localmodels-0.1.0.dev36.dist-info/licenses/localmodels/HERMES-LICENSE,sha256=ghVW5jNnlkUKuFLTdRF7SKSIfnHSVXlP1jGNmZgqWrY,1070
|
|
239
|
+
simplex_localmodels-0.1.0.dev36.dist-info/WHEEL,sha256=1dD_GoEqEIxQ7VnrUExgdj_eExY4b4UgfR0iBlGKVac,80
|
|
240
|
+
simplex_localmodels-0.1.0.dev36.dist-info/entry_points.txt,sha256=OjBZISrGAXgRMRDqrq-m26_nLFmNZNNhbLtJiunIgfc,59
|
|
241
|
+
simplex_localmodels-0.1.0.dev36.dist-info/METADATA,sha256=dsTvGv6r0giGxu2110ObKyZLmAvCwRs7Y7FmBXrtQi4,312
|
|
242
|
+
simplex_localmodels-0.1.0.dev36.dist-info/RECORD,,
|