@simplexai/localmodels-linux-arm64 0.1.0-dev.105 → 0.1.0-dev.107
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/README.md +1 -1
- package/bootstrap.identity +1 -1
- package/bootstrap.sha256 +51 -51
- package/modules/localmodels/__init__.py +2 -5
- package/modules/localmodels/catalog.json +101 -102
- package/modules/localmodels/catalog.py +2 -3
- package/modules/localmodels/catalog_recipes.py +1 -1
- package/modules/localmodels/context_policy.py +3 -4
- package/modules/localmodels/engine_adapters/__init__.py +1 -2
- package/modules/localmodels/engines-b11583.json +4 -4
- package/modules/localmodels/engines-prism-b12178-03ec600.json +7 -7
- package/modules/localmodels/engines-strata-poly-0.2.20-poly.1.json +1 -1
- package/modules/localmodels/engines-strata-poly-0.2.20-poly.9.json +5 -2
- package/modules/localmodels/engines-whisper-b5454.json +5 -5
- package/modules/localmodels/engines.json +4 -4
- package/modules/localmodels/estimator.py +0 -1
- package/modules/localmodels/gguf.py +0 -1
- package/modules/localmodels/library_order.py +2 -2
- package/modules/localmodels/library_poly.py +1 -1
- package/modules/localmodels/llm_rank.py +5 -5
- package/modules/localmodels/metal.py +5 -5
- package/modules/localmodels/planning/__init__.py +1 -2
- package/modules/localmodels/planning/budget.py +1 -1
- package/modules/localmodels/remote_ops_download.py +32 -7
- package/modules/localmodels/remote_ops_ranges.py +1 -1
- package/modules/localmodels/remote_ops_remove.py +1 -1
- package/modules/localmodels/remote_ops_verify.py +1 -1
- package/modules/localmodels/runtime-lock.json +1 -1
- package/modules/localmodels/service_deployment.py +1 -1
- package/modules/localmodels/sidecar_http.py +6 -2
- package/modules/localmodels/speech_cli.py +3 -3
- package/modules/localmodels/speech_jobs.py +4 -0
- package/modules/localmodels/speech_model.py +1 -1
- package/modules/localmodels/stack_auto.py +3 -3
- package/modules/localmodels/stack_cleanup.py +3 -3
- package/modules/localmodels/stack_compose.py +6 -7
- package/modules/localmodels/stack_plan.py +5 -5
- package/modules/localmodels/stack_suite.py +2 -2
- package/modules/localmodels/stack_view_hub_cli.py +1 -1
- package/modules/localmodels/suite.py +1 -1
- package/modules/localmodels/tts_cli.py +5 -5
- package/modules/localmodels/tts_jobs.py +5 -0
- package/modules/localmodels/vision.py +2 -2
- package/modules/{simplex_localmodels-0.1.0.dev105.dist-info → simplex_localmodels-0.1.0.dev107.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev105.dist-info → simplex_localmodels-0.1.0.dev107.dist-info}/RECORD +47 -47
- package/package.json +1 -1
- package/tool.json +1 -1
- /package/modules/{simplex_localmodels-0.1.0.dev105.dist-info → simplex_localmodels-0.1.0.dev107.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev105.dist-info → simplex_localmodels-0.1.0.dev107.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev105.dist-info → simplex_localmodels-0.1.0.dev107.dist-info}/licenses/LICENSE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev105.dist-info → simplex_localmodels-0.1.0.dev107.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev105.dist-info → simplex_localmodels-0.1.0.dev107.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# Ported from NousResearch/hermes-agent hermes_cli/local_runtime (MIT License,
|
|
2
2
|
# Copyright (c) 2025 Nous Research) at commit 7cc3fb8cb55898747dd1dfa56fda3e16ebba028e.
|
|
3
|
-
# Keep algorithm changes in sync with docs/local-models/architecture.md.
|
|
4
3
|
"""Curated starter catalog for the managed local runtime.
|
|
5
4
|
|
|
6
5
|
Every entry carries the estimator inputs (measured on real GGUFs) so the picker can price a model
|
|
@@ -132,7 +131,7 @@ class CatalogEntry:
|
|
|
132
131
|
recurrent_layers: int
|
|
133
132
|
per_layer_f16: int # KV bytes/token per full-attention layer
|
|
134
133
|
# The agent posture's window never grows past this (0: no cap beyond the posture's target);
|
|
135
|
-
# the Mac small-memory ladder runs Spark-X2.6 at 64K shared by two slots
|
|
134
|
+
# the Mac small-memory ladder runs Spark-X2.6 at 64K shared by two slots.
|
|
136
135
|
max_agent_window: int = 0
|
|
137
136
|
ubatch: int = 0 # micro-batch ceiling (-ub); 0 keeps the posture default
|
|
138
137
|
engine: str = "" # optional per-model engine lock tag (engines-<tag>.json)
|
|
@@ -395,7 +394,7 @@ def predicted_decode_tok_s(
|
|
|
395
394
|
def validated_here(entry: CatalogEntry, platform: str) -> bool:
|
|
396
395
|
"""``stack plan --llm auto`` may pick the entry on ``platform`` (a probe's sys.platform):
|
|
397
396
|
it is validated, by evidence from this platform when ``validated_on`` narrows it; Windows
|
|
398
|
-
runs Linux's llama.cpp CUDA kernels, so Linux evidence counts there too
|
|
397
|
+
runs Linux's llama.cpp CUDA kernels, so Linux evidence counts there too."""
|
|
399
398
|
if entry.status != "validated":
|
|
400
399
|
return False
|
|
401
400
|
key, scope = ("linux" if platform.startswith("linux") else platform), entry.validated_on
|
|
@@ -59,7 +59,7 @@ def fidelity_rank(explicit: str, quant: str) -> int:
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
SCALE = r"[1-9][0-9]*(\.[0-9]+)?[BM]" # a parameter scale as a model's name states it: 27B, 1.7B
|
|
62
|
-
# intelligence_score: the installed SimplexAI score
|
|
62
|
+
# intelligence_score: the installed SimplexAI score; make check keeps it equal
|
|
63
63
|
QUALITY_SOURCE_TYPES = ("editorial", "own_eval", "external_index", "kld", "intelligence_score")
|
|
64
64
|
|
|
65
65
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# Ported from NousResearch/hermes-agent hermes_cli/local_runtime (MIT License,
|
|
2
2
|
# Copyright (c) 2025 Nous Research) at commit 7cc3fb8cb55898747dd1dfa56fda3e16ebba028e.
|
|
3
|
-
# Keep algorithm changes in sync with docs/local-models/architecture.md.
|
|
4
3
|
"""Context policy — the window ladder for managed local models.
|
|
5
4
|
|
|
6
5
|
One contract: any model runs at any window up to its native max; hardware and session depth only
|
|
@@ -61,13 +60,13 @@ class AgentPosture:
|
|
|
61
60
|
"""The stack's agent posture: ``slots`` concurrent sequences on
|
|
62
61
|
one unified KV cache, a window ladder that starts at ``floor`` and reaches ``target``, KV
|
|
63
62
|
cache types tried in order, and no spilling — a model that cannot hold the floor refuses.
|
|
64
|
-
The floor is 64K
|
|
63
|
+
The floor is 64K: longer context is preferred, not required.
|
|
65
64
|
Used by ``stack`` only; the generic deploy/recommend ladder above is unchanged."""
|
|
66
65
|
|
|
67
66
|
slots: int = 2
|
|
68
67
|
floor: int = 65536
|
|
69
68
|
# The window the ladder holds on to before it gives up KV precision: every KV type is tried
|
|
70
|
-
# at this length and above before any window below it
|
|
69
|
+
# at this length and above before any window below it.
|
|
71
70
|
preferred: int = 131072
|
|
72
71
|
target: int = 200_000
|
|
73
72
|
ubatch: int = 512
|
|
@@ -585,7 +584,7 @@ def _worse(
|
|
|
585
584
|
def _agent_order(posture: AgentPosture, native: int) -> list[tuple[tuple[str, str], int]]:
|
|
586
585
|
"""(KV pair, window) in the order the ladder tries them: every KV pair at the preferred
|
|
587
586
|
length and above first, then every KV pair below it down to the floor, so 128K with V at
|
|
588
|
-
q4_0 wins over 64K at q8_0
|
|
587
|
+
q4_0 wins over 64K at q8_0."""
|
|
589
588
|
windows = _agent_windows(posture, native)
|
|
590
589
|
long = [w for w in windows if w >= posture.preferred]
|
|
591
590
|
short = [w for w in windows if w < posture.preferred]
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
deployment plan and asks the adapter for its runtime (``adapter_for``) only where engines differ:
|
|
3
3
|
Strata and PolyStrata (``strata_poly``) or every other server (``auxiliary``). ``llama_cpp`` holds
|
|
4
4
|
the single-model llama.cpp plan's parts behind ``deploy.build_plan``, with one backend per device
|
|
5
|
-
(CUDA, Metal, CPU). The hooks are in ``base.EngineAdapter`` and ``llama_cpp.LlamaBackend
|
|
6
|
-
docs/local-models/architecture.md#子包."""
|
|
5
|
+
(CUDA, Metal, CPU). The hooks are in ``base.EngineAdapter`` and ``llama_cpp.LlamaBackend``."""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"tag": "b11583",
|
|
4
4
|
"commit": "98801578818b26d833a1fe244870d64b0c34bb46",
|
|
5
5
|
"source": "https://github.com/ggml-org/llama.cpp/releases/tag/b11583",
|
|
6
|
-
"note": "Release asset digests from the GitHub release API, read 2026-10-20. b11583 is the first build used here with vllm-d3 support and POST /v1/systemone; decision components run its CPU builds. min_glibc is the highest GLIBC symbol version the build's binaries import (objdump -T, 2026-10-20); builds without it were not checked. The CUDA 12.8 build (read 2026-10-21) runs a decision model on the LLM's card; its cudart archive unpacks beside llama-server (RUNPATH $ORIGIN), and the 12.x runtime needs no driver newer than CUDA 13.0's. The ubuntu22.04 variant (2026-10-23) is this repository's rebuild of the same commit for hosts whose glibc is older than upstream's 2.38: scripts/build_cuda_engine.py runs the release workflow's CMake flags in nvidia/cuda:12.8.2-devel-ubuntu22.04 pinned by digest; its provenance JSON records the image, flags and toolchain, and its archives and provenance live on the project CloudFront CDN under cli/localmodels/engines/llama.cpp/b11583-cu12.8-ubuntu22.04-r3/. Every upstream Linux build links GCC's OpenMP runtime (libgomp.so.1, Debian package libgomp1; readelf NEEDED, 2026-10-23), which minimal images lack, so a plan on such a host stops instead of installing it. The ubuntu22.04-r2 rebuild (2026-10-23) carries its own libgomp.so.1 and replaces r1, which needed the system copy. The ubuntu22.04-r3 rebuild (2026-10-26) also compiles the q8_0-q4_0 FlashAttention K-V kernels (GGML_CUDA_FA_QUANTS), which the agent stack's K q8_0 / V q4_0 cache needs to decode at full speed; it replaces r2. The macOS arm64 build (digest from the release API, read 2026-10-29) is upstream's only macOS arm64 archive and has Metal: the decision model runs it on the Mac's GPU, and the CPU embedding and reranker recipes run the same build with --device none.",
|
|
6
|
+
"note": "Release asset digests from the GitHub release API, read 2026-10-20. b11583 is the first build used here with vllm-d3 support and POST /v1/systemone; decision components run its CPU builds. min_glibc is the highest GLIBC symbol version the build's binaries import (objdump -T, 2026-10-20); builds without it were not checked. The CUDA 12.8 build (read 2026-10-21) runs a decision model on the LLM's card; its cudart archive unpacks beside llama-server (RUNPATH $ORIGIN), and the 12.x runtime needs no driver newer than CUDA 13.0's. The ubuntu22.04 variant (2026-10-23) is this repository's rebuild of the same commit for hosts whose glibc is older than upstream's 2.38: scripts/build_cuda_engine.py runs the release workflow's CMake flags in nvidia/cuda:12.8.2-devel-ubuntu22.04 pinned by digest; its provenance JSON records the image, flags and toolchain, and its archives and provenance live on the project CloudFront CDN under cli/localmodels/engines/llama.cpp/b11583-cu12.8-ubuntu22.04-r3/. Every upstream Linux build links GCC's OpenMP runtime (libgomp.so.1, Debian package libgomp1; readelf NEEDED, 2026-10-23), which minimal images lack, so a plan on such a host stops instead of installing it. The ubuntu22.04-r2 rebuild (2026-10-23) carries its own libgomp.so.1 and replaces r1, which needed the system copy. The ubuntu22.04-r3 rebuild (2026-10-26) also compiles the q8_0-q4_0 FlashAttention K-V kernels (GGML_CUDA_FA_QUANTS), which the agent stack's K q8_0 / V q4_0 cache needs to decode at full speed (reference benchmark); it replaces r2. The macOS arm64 build (digest from the release API, read 2026-10-29) is upstream's only macOS arm64 archive and has Metal: the decision model runs it on the Mac's GPU, and the CPU embedding and reranker recipes run the same build with --device none.",
|
|
7
7
|
"builds": [
|
|
8
8
|
{
|
|
9
9
|
"platform": "linux",
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
"min_cuda": "12.8",
|
|
70
70
|
"min_glibc": "2.34",
|
|
71
71
|
"variant": "ubuntu22.04-r3",
|
|
72
|
-
"provenance": "https://
|
|
72
|
+
"provenance": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b11583-cu12.8-ubuntu22.04-r3/llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.provenance.json",
|
|
73
73
|
"assets": [
|
|
74
74
|
{
|
|
75
75
|
"name": "llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
76
|
-
"url": "https://
|
|
76
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b11583-cu12.8-ubuntu22.04-r3/llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
77
77
|
"sha256": "4769908025bb3d1dfc64fbcde373931542e5baed696a282ddec3b84980e789d3",
|
|
78
78
|
"size_bytes": 173682824
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"name": "cudart-llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
82
|
-
"url": "https://
|
|
82
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b11583-cu12.8-ubuntu22.04-r3/cudart-llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
83
83
|
"sha256": "474f6d382f7e707f94f83f542d6bfcd24c3c04ea1ab12461f34bb7e7305936cd",
|
|
84
84
|
"size_bytes": 593656098
|
|
85
85
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"tag": "prism-b12178-03ec600",
|
|
4
4
|
"commit": "03ec60072cdd32a03ae931969af62e57bfb0c8dc",
|
|
5
5
|
"source": "https://github.com/PrismML-Eng/llama.cpp/releases/tag/prism-b12178-03ec600",
|
|
6
|
-
"note": "Release asset digests from the GitHub release API (PrismML-Eng/llama.cpp prism-b12178-03ec600, commit 03ec60072cdd32a03ae931969af62e57bfb0c8dc, read 2026-11-26). Required for Ternary Bonsai 2.5 27B (PTQ1_0, PQ2_0, and PQ2_0M ggml tensor types 142/143/145, unsupported in upstream llama.cpp). Linux x64 CUDA 12.8 archive imports up to GLIBC_2.34 plus libgomp.so.1, libcudart.so.12, and libcublas.so.12 (verified via readelf -V -d) and pairs with the pinned CUDA 12.8 cudart companion archive from ggml-org/llama.cpp b11370. Linux and macOS tarballs unpack with a single top directory llama-prism-b12178-03ec600/ stripped by remote_ops.unpack; Windows CUDA 12.4, CUDA 13.3, and CPU zips unpack flat with llama-server.exe beside their DLLs and pair with PrismML's pinned cudart companion zips. Archives over 200 MiB (the Linux CUDA 12.8 build, the Windows CUDA 12.4 and 13.3 builds and their cudart companions) are fetched from byte-identical copies on the project CloudFront under cli/localmodels/engines/prism/, uploaded 2026-11-28 with S3 sha256 metadata and read back: GitHub release downloads crawl from mainland China (
|
|
6
|
+
"note": "Release asset digests from the GitHub release API (PrismML-Eng/llama.cpp prism-b12178-03ec600, commit 03ec60072cdd32a03ae931969af62e57bfb0c8dc, read 2026-11-26). Required for Ternary Bonsai 2.5 27B (PTQ1_0, PQ2_0, and PQ2_0M ggml tensor types 142/143/145, unsupported in upstream llama.cpp). Linux x64 CUDA 12.8 archive imports up to GLIBC_2.34 plus libgomp.so.1, libcudart.so.12, and libcublas.so.12 (verified via readelf -V -d) and pairs with the pinned CUDA 12.8 cudart companion archive from ggml-org/llama.cpp b11370. Linux and macOS tarballs unpack with a single top directory llama-prism-b12178-03ec600/ stripped by remote_ops.unpack; Windows CUDA 12.4, CUDA 13.3, and CPU zips unpack flat with llama-server.exe beside their DLLs and pair with PrismML's pinned cudart companion zips. Archives over 200 MiB (the Linux CUDA 12.8 build, the Windows CUDA 12.4 and 13.3 builds and their cudart companions) are fetched from byte-identical copies on the project CloudFront under cli/localmodels/engines/prism/, uploaded 2026-11-28 with S3 sha256 metadata and read back: GitHub release downloads crawl from mainland China (reference Windows host 2026-11-27: 48.6 KB/s GitHub against ~8 MB/s CloudFront) and npm copies stop at 200 MiB. The originals keep the same file names in the GitHub release above (the Linux cudart companion in ggml-org/llama.cpp b11370).",
|
|
7
7
|
"builds": [
|
|
8
8
|
{
|
|
9
9
|
"platform": "linux",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"assets": [
|
|
18
18
|
{
|
|
19
19
|
"name": "llama-prism-b12178-03ec600-bin-linux-cuda-12.8-x64.tar.gz",
|
|
20
|
-
"url": "https://
|
|
20
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/prism/prism-b12178-03ec600/llama-prism-b12178-03ec600-bin-linux-cuda-12.8-x64.tar.gz",
|
|
21
21
|
"sha256": "a50997fb29bb0684c00cdf21bb1382923c6bc70085a74c9c3d913dcf76af1899",
|
|
22
22
|
"size_bytes": 225887048
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "cudart-llama-b11370-bin-ubuntu-cuda-12.8-x64.tar.gz",
|
|
26
|
-
"url": "https://
|
|
26
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/prism/cudart/cudart-llama-b11370-bin-ubuntu-cuda-12.8-x64.tar.gz",
|
|
27
27
|
"sha256": "7807b4fc01958fc11db9894b2ab791e664b4da999017e70f7b5a7147f6c770e3",
|
|
28
28
|
"size_bytes": 594375807
|
|
29
29
|
}
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
"assets": [
|
|
69
69
|
{
|
|
70
70
|
"name": "llama-prism-b12178-03ec600-bin-win-cuda-12.4-x64.zip",
|
|
71
|
-
"url": "https://
|
|
71
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/prism/prism-b12178-03ec600/llama-prism-b12178-03ec600-bin-win-cuda-12.4-x64.zip",
|
|
72
72
|
"sha256": "f1bef85254012f0e6f25502ee86696c7de6ccc76a922f05c3f23ab2e5719c531",
|
|
73
73
|
"size_bytes": 341653677
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "cudart-llama-bin-win-cuda-12.4-x64.zip",
|
|
77
|
-
"url": "https://
|
|
77
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/prism/cudart/cudart-llama-bin-win-cuda-12.4-x64.zip",
|
|
78
78
|
"sha256": "8c79a9b226de4b3cacfd1f83d24f962d0773be79f1e7b75c6af4ded7e32ae1d6",
|
|
79
79
|
"size_bytes": 391443627
|
|
80
80
|
}
|
|
@@ -89,13 +89,13 @@
|
|
|
89
89
|
"assets": [
|
|
90
90
|
{
|
|
91
91
|
"name": "llama-prism-b12178-03ec600-bin-win-cuda-13.3-x64.zip",
|
|
92
|
-
"url": "https://
|
|
92
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/prism/prism-b12178-03ec600/llama-prism-b12178-03ec600-bin-win-cuda-13.3-x64.zip",
|
|
93
93
|
"sha256": "a34bdb817e797243f86c5e2dd1bdf118d17ea32b6eaa4e6f32c41533b13bc2d8",
|
|
94
94
|
"size_bytes": 216516289
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"name": "cudart-llama-bin-win-cuda-13.3-x64.zip",
|
|
98
|
-
"url": "https://
|
|
98
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/prism/cudart/cudart-llama-bin-win-cuda-13.3-x64.zip",
|
|
99
99
|
"sha256": "1462a050eb4c684921ba51dcc4cc488a036674c3e73e9945ee705b854808d03e",
|
|
100
100
|
"size_bytes": 390970417
|
|
101
101
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "cudart-strata-poly-linux-x64-cuda13.0.3.tar.gz",
|
|
38
|
-
"url": "https://
|
|
38
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/strata-poly/0.1.45-poly.9/cudart-strata-poly-linux-x64-cuda13.0.3.tar.gz",
|
|
39
39
|
"sha256": "189c3a9fb5fd5f87331ffcedf03d5469c2a9c91f46379299ee6ea277364f05d2",
|
|
40
40
|
"size_bytes": 422462968
|
|
41
41
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"tag": "strata-poly-0.2.20-poly.9",
|
|
4
4
|
"commit": "v0.2.20-poly.9",
|
|
5
5
|
"source": "https://github.com/simplexai-labs/PolyStrata/releases/tag/v0.2.20-poly.9",
|
|
6
|
-
"note": "PolyStrata 0.2.20-poly.9 (MIT, commit b9eced7bb2, strata-poly engine 0.1.66) for CUDA 13 NVIDIA Linux/Windows and Apple Silicon macOS Metal recipes (Inkling 2 Mini). Builds on 0.2.20-poly.7 with 0.2.20-poly.8 and 0.2.20-poly.9 fixes: 128K+ VMM KV growth fix (#394), CUDA stream ordering on expert slot updates (#395) and before Engine::cover
|
|
6
|
+
"note": "PolyStrata 0.2.20-poly.9 (MIT, commit b9eced7bb2, strata-poly engine 0.1.66) for CUDA 13 NVIDIA Linux/Windows and Apple Silicon macOS Metal recipes (Inkling 2 Mini). Builds on 0.2.20-poly.7 with 0.2.20-poly.8 and 0.2.20-poly.9 fixes: 128K+ VMM KV growth fix (#394), CUDA stream ordering on expert slot updates (#395) and before Engine::cover VMM rollback, Engine::cover staging reclamation (#373), elastic vision reserve reading (#367, #368), Windows DXGI QueryVideoMemoryInfo VRAM guards + cuMemRelease dynamic shrink/rebound + per-slot phase-aware watchdog, HTTP/1.1 keep-alive & binary token IPC, NVFP4/IQ3 CUDA kernel speedups (#384, #386), and Apple Silicon Metal quantized KV (--kv fp8/q8_0/q4_0), native Metal inkling2v vision with zero-copy SHM IPC, and Metal --batch concurrency. Linux: strata-poly and strata-vision from the release archive with NVIDIA CUDA 13.0.3 runtime libraries (libcublas, libcublasLt, libcudart) reused from 0.1.45-poly.9 under NVIDIA's licence; needs NVIDIA driver for CUDA 13.0 (580 or newer), glibc 2.34, and libstdc++ 12. macOS: arm64 Metal (macOS 15.0 or newer), shipping strata-poly, strata-vision (Metal GPU), and metal/ kernel sources JIT-compiled on startup. Windows: strata-poly.exe and strata-vision.exe (CUDA 13.0) paired with NVIDIA's cuBLAS 13.0.2.14 wheel (nvidia/cu13/bin/x86_64 on lib_dirs). On all three platforms the tag archive supplies PolyStrata's Python server and tokenizer tools under terminal/ (terminal/serve/, terminal/tools/, terminal/strata_control/, terminal/strata_cli/, and LICENSE).",
|
|
7
7
|
"builds": [
|
|
8
8
|
{
|
|
9
9
|
"platform": "linux",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"terminal/tools/",
|
|
34
34
|
"terminal/strata_control/",
|
|
35
35
|
"terminal/strata_cli/",
|
|
36
|
+
"terminal/data/expert-profile-glm.txt",
|
|
36
37
|
"LICENSE"
|
|
37
38
|
],
|
|
38
39
|
"npm_copy": {
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
45
|
"name": "cudart-strata-poly-linux-x64-cuda13.0.3.tar.gz",
|
|
45
|
-
"url": "https://
|
|
46
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/strata-poly/0.1.45-poly.9/cudart-strata-poly-linux-x64-cuda13.0.3.tar.gz",
|
|
46
47
|
"sha256": "189c3a9fb5fd5f87331ffcedf03d5469c2a9c91f46379299ee6ea277364f05d2",
|
|
47
48
|
"size_bytes": 422462968
|
|
48
49
|
}
|
|
@@ -75,6 +76,7 @@
|
|
|
75
76
|
"terminal/tools/",
|
|
76
77
|
"terminal/strata_control/",
|
|
77
78
|
"terminal/strata_cli/",
|
|
79
|
+
"terminal/data/expert-profile-glm.txt",
|
|
78
80
|
"LICENSE"
|
|
79
81
|
],
|
|
80
82
|
"npm_copy": {
|
|
@@ -116,6 +118,7 @@
|
|
|
116
118
|
"terminal/tools/",
|
|
117
119
|
"terminal/strata_control/",
|
|
118
120
|
"terminal/strata_cli/",
|
|
121
|
+
"terminal/data/expert-profile-glm.txt",
|
|
119
122
|
"LICENSE"
|
|
120
123
|
],
|
|
121
124
|
"npm_copy": {
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
"min_glibc": "2.34",
|
|
14
14
|
"variant": "ubuntu22.04-r1",
|
|
15
15
|
"binary": "whisper-server",
|
|
16
|
-
"provenance": "https://
|
|
16
|
+
"provenance": "https://releases.heylinger.com/cli/localmodels/engines/whisper/b5454/whisper-b5454-bin-ubuntu22.04-r1-cuda-12.8-x64.provenance.json",
|
|
17
17
|
"assets": [
|
|
18
18
|
{
|
|
19
19
|
"name": "whisper-b5454-bin-ubuntu22.04-r1-cuda-12.8-x64.tar.gz",
|
|
20
|
-
"url": "https://
|
|
20
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/whisper/b5454/whisper-b5454-bin-ubuntu22.04-r1-cuda-12.8-x64.tar.gz",
|
|
21
21
|
"sha256": "4848c97a7ef34cd0a42a132dbbf6f21a538701f71469f9c861657ff6ed32f314",
|
|
22
22
|
"size_bytes": 162307029
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "cudart-whisper-b5454-bin-ubuntu22.04-r1-cuda-12.8-x64.tar.gz",
|
|
26
|
-
"url": "https://
|
|
26
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/whisper/b5454/cudart-whisper-b5454-bin-ubuntu22.04-r1-cuda-12.8-x64.tar.gz",
|
|
27
27
|
"sha256": "70f571e233c8a89f9fa176bb6861015b5827778b241bf61de55affb6eb270e86",
|
|
28
28
|
"size_bytes": 593656061
|
|
29
29
|
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"assets": [
|
|
74
74
|
{
|
|
75
75
|
"name": "whisper-b5454-bin-macos-arm64.tar.gz",
|
|
76
|
-
"url": "https://
|
|
76
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/whisper/b5454/whisper-b5454-bin-macos-arm64.tar.gz",
|
|
77
77
|
"sha256": "cd70f1be3676db1280775df08294340cb36e625c8370385ca8c2acac7fe0e6d1",
|
|
78
78
|
"size_bytes": 3372342
|
|
79
79
|
}
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"assets": [
|
|
88
88
|
{
|
|
89
89
|
"name": "whisper-b5454-bin-macos-x64.tar.gz",
|
|
90
|
-
"url": "https://
|
|
90
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/whisper/b5454/whisper-b5454-bin-macos-x64.tar.gz",
|
|
91
91
|
"sha256": "445c8f42ac3326221c5c1aa990a49be9590ea33d59b6ffdeadc44d0c5303d5d2",
|
|
92
92
|
"size_bytes": 2623802
|
|
93
93
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"tag": "b11370",
|
|
4
4
|
"commit": "bed0a856606ee4a24a164066f73d2379447033f5",
|
|
5
5
|
"source": "https://github.com/ggml-org/llama.cpp/releases/tag/b11370",
|
|
6
|
-
"note": "Release asset digests from the GitHub release API, read 2026-10-12. b11370 is the build Hermes' catalog constants were measured on. min_glibc is the highest GLIBC symbol version the build's binaries import (objdump -T, 2026-10-20); builds without it were not checked. The ubuntu22.04 variant (2026-10-23) is this repository's rebuild of the same commit for hosts whose glibc is older than upstream's 2.38: scripts/build_cuda_engine.py runs the release workflow's CMake flags in nvidia/cuda:12.8.2-devel-ubuntu22.04 pinned by digest; its provenance JSON records the image, flags and toolchain, and its archives and provenance live on the project CloudFront CDN under cli/localmodels/engines/llama.cpp/b11370-cu12.8-ubuntu22.04-r3/. Every upstream Linux build links GCC's OpenMP runtime (libgomp.so.1, Debian package libgomp1; readelf NEEDED, 2026-10-23), which minimal images lack, so a plan on such a host stops instead of installing it. The ubuntu22.04-r2 rebuild (2026-10-23) carries its own libgomp.so.1 and replaces r1, which needed the system copy. The ubuntu22.04-r3 rebuild (2026-10-26) also compiles the q8_0-q4_0 FlashAttention K-V kernels (GGML_CUDA_FA_QUANTS), which the agent stack's K q8_0 / V q4_0 cache needs to decode at full speed; it replaces r2. Windows x64 builds (2026-11-11) are upstream's win-cuda-12.4/13.4 and win-cpu zips with their cudart companions, digests from the same release API; the CUDA zips hold llama-server.exe beside the ggml DLLs and the cudart zip adds the CUDA runtime DLLs to the same directory.",
|
|
6
|
+
"note": "Release asset digests from the GitHub release API, read 2026-10-12. b11370 is the build Hermes' catalog constants were measured on. min_glibc is the highest GLIBC symbol version the build's binaries import (objdump -T, 2026-10-20); builds without it were not checked. The ubuntu22.04 variant (2026-10-23) is this repository's rebuild of the same commit for hosts whose glibc is older than upstream's 2.38: scripts/build_cuda_engine.py runs the release workflow's CMake flags in nvidia/cuda:12.8.2-devel-ubuntu22.04 pinned by digest; its provenance JSON records the image, flags and toolchain, and its archives and provenance live on the project CloudFront CDN under cli/localmodels/engines/llama.cpp/b11370-cu12.8-ubuntu22.04-r3/. Every upstream Linux build links GCC's OpenMP runtime (libgomp.so.1, Debian package libgomp1; readelf NEEDED, 2026-10-23), which minimal images lack, so a plan on such a host stops instead of installing it. The ubuntu22.04-r2 rebuild (2026-10-23) carries its own libgomp.so.1 and replaces r1, which needed the system copy. The ubuntu22.04-r3 rebuild (2026-10-26) also compiles the q8_0-q4_0 FlashAttention K-V kernels (GGML_CUDA_FA_QUANTS), which the agent stack's K q8_0 / V q4_0 cache needs to decode at full speed (reference benchmark); it replaces r2. Windows x64 builds (2026-11-11) are upstream's win-cuda-12.4/13.4 and win-cpu zips with their cudart companions, digests from the same release API; the CUDA zips hold llama-server.exe beside the ggml DLLs and the cudart zip adds the CUDA runtime DLLs to the same directory.",
|
|
7
7
|
"builds": [
|
|
8
8
|
{
|
|
9
9
|
"platform": "linux",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"min_cuda": "12.8",
|
|
37
37
|
"min_glibc": "2.34",
|
|
38
38
|
"variant": "ubuntu22.04-r3",
|
|
39
|
-
"provenance": "https://
|
|
39
|
+
"provenance": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b11370-cu12.8-ubuntu22.04-r3/llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.provenance.json",
|
|
40
40
|
"assets": [
|
|
41
41
|
{
|
|
42
42
|
"name": "llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
43
|
-
"url": "https://
|
|
43
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b11370-cu12.8-ubuntu22.04-r3/llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
44
44
|
"sha256": "875cf9ee9e29afc60187312363ea721db51bb06138aef7c1ca63fc3d956b25b1",
|
|
45
45
|
"size_bytes": 173034114
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "cudart-llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
49
|
-
"url": "https://
|
|
49
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b11370-cu12.8-ubuntu22.04-r3/cudart-llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
50
50
|
"sha256": "441680ed89b157f7e0bd7285771cc0d40fd61ab1110bf4c67a705dd9417ab624",
|
|
51
51
|
"size_bytes": 593656099
|
|
52
52
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# Ported from NousResearch/hermes-agent hermes_cli/local_runtime (MIT License,
|
|
2
2
|
# Copyright (c) 2025 Nous Research) at commit 7cc3fb8cb55898747dd1dfa56fda3e16ebba028e.
|
|
3
|
-
# Keep algorithm changes in sync with docs/local-models/architecture.md.
|
|
4
3
|
"""Per-layer context-memory estimator + physics check.
|
|
5
4
|
|
|
6
5
|
The estimator is ADVISORY: fit's allocation is authoritative at launch and the touch generation is
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# Ported from NousResearch/hermes-agent hermes_cli/local_runtime (MIT License,
|
|
2
2
|
# Copyright (c) 2025 Nous Research) at commit 7cc3fb8cb55898747dd1dfa56fda3e16ebba028e.
|
|
3
|
-
# Keep algorithm changes in sync with docs/local-models/architecture.md.
|
|
4
3
|
"""GGUF metadata + tensor-table reader (stdlib only).
|
|
5
4
|
|
|
6
5
|
Reads the header only (metadata + tensor infos); never touches tensor data, so it is fast enough to
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Suitability ordering for ``library status`` rows across Apple Silicon, Linux and Windows.
|
|
2
2
|
|
|
3
|
-
Apple Silicon Macs order rows around the Mac small-memory ladder
|
|
3
|
+
Apple Silicon Macs order rows around the Mac small-memory ladder. Linux and
|
|
4
4
|
Windows hosts order rows around validated intelligence, context window, quantization precision,
|
|
5
5
|
actionable driver/runtime upgrades and memory shortfall, demoting the Windows small-card
|
|
6
|
-
fallback below validated models whenever a validated model fits
|
|
6
|
+
fallback below validated models whenever a validated model fits.
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
9
|
from __future__ import annotations
|
|
@@ -83,7 +83,7 @@ def _validated_for(recipe: suite.SuiteRecipe, platform: str) -> bool:
|
|
|
83
83
|
scope = recipe.get("validated_on")
|
|
84
84
|
if not scope:
|
|
85
85
|
return True
|
|
86
|
-
#
|
|
86
|
+
# Linux CUDA evidence also validates native Windows x64 CUDA builds.
|
|
87
87
|
return key in scope or (key == "win32" and "linux" in scope)
|
|
88
88
|
|
|
89
89
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The gate is the agent posture — a window of at least 64K for the
|
|
4
4
|
posture's slots, weights and KV resident. Gated entries are ordered by ``quality.score``, which
|
|
5
|
-
for scored entries is the installed SimplexAI score
|
|
5
|
+
for scored entries is the installed SimplexAI score,
|
|
6
6
|
then by predicted decode speed; ``choose`` applies the user's scenario (``--prefer``).
|
|
7
7
|
``recommend`` and ``stack --llm auto`` both use this module; the catalog's fit and speed physics
|
|
8
8
|
stay in ``catalog``.
|
|
@@ -32,7 +32,7 @@ from localmodels.plan_envelope import PlanError
|
|
|
32
32
|
from localmodels.planning.budget import HARNESS_RAM, RAM_FLOOR, host_ram
|
|
33
33
|
from localmodels.probe import HostFacts
|
|
34
34
|
|
|
35
|
-
# Installed SimplexAI scores closer than this are a tie (
|
|
35
|
+
# Installed SimplexAI scores closer than this are a tie (AIHOT: 3 points or more
|
|
36
36
|
# rarely swap): a challenger with another engine must beat the llama.cpp pick by at least this.
|
|
37
37
|
TIE_BAND = 3
|
|
38
38
|
# Scores within this band are statistically indistinguishable (AIHOT: under 1 point is a coin
|
|
@@ -113,7 +113,7 @@ MAC_DEFAULT_YIELD_SCORE = 50
|
|
|
113
113
|
MAC_LADDER = ("ornith-1.5-9b", "spark-x2.6-4b-q4km")
|
|
114
114
|
MAC_LADDER_FASTEST = ("spark-x2.6-4b-q4km", "ornith-1.5-9b")
|
|
115
115
|
MAC_LADDER_MIN_BYTES = 16 * metal.GIB
|
|
116
|
-
# Validated darwin entries the ladder replaces in automatic selection
|
|
116
|
+
# Validated darwin entries the ladder replaces in automatic selection: Ling-3.0-tiny
|
|
117
117
|
# (25) was the 32 GB+ fallback. Explicit --llm still installs it.
|
|
118
118
|
MAC_LADDER_REPLACES = frozenset({"ling-3.0-tiny"})
|
|
119
119
|
|
|
@@ -135,7 +135,7 @@ class MacLadder:
|
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
def mac_ladder(facts: HostFacts) -> MacLadder | None:
|
|
138
|
-
"""This Mac's ladder
|
|
138
|
+
"""This Mac's ladder, or None off Apple Silicon and below 16 GB."""
|
|
139
139
|
if not metal.supported(facts) or facts["ram"]["total_bytes"] < MAC_LADDER_MIN_BYTES:
|
|
140
140
|
return None
|
|
141
141
|
return MacLadder(MAC_LADDER, MAC_LADDER_FASTEST)
|
|
@@ -154,7 +154,7 @@ def keeps_default(scores: Iterable[int]) -> bool:
|
|
|
154
154
|
|
|
155
155
|
def listed_default(facts: HostFacts, fits: list[tuple[str, int]]) -> str | None:
|
|
156
156
|
"""The ladder rung to list first among ``(id, score)`` fits, or None once another fit
|
|
157
|
-
reaches the yield score
|
|
157
|
+
reaches the yield score or no rung fits."""
|
|
158
158
|
ladder = mac_ladder(facts)
|
|
159
159
|
if ladder is None:
|
|
160
160
|
return None
|
|
@@ -31,7 +31,7 @@ HOST_KEEP_BYTES = 2 * GIB
|
|
|
31
31
|
# (total, working set). M4 16 GB and M6 24 GB read 74.0% (measured on Apple Silicon Macs); oMLX 0.7.4 records 107.5 GiB on a 128 GiB MacBook
|
|
32
32
|
# (omlx/cluster/node_role.py); macOS 27 on the 256 GB M5 Ultra read 222.7 GiB (MT1). A simulated
|
|
33
33
|
# Mac interpolates the share linearly in between; a real one uses its own probe reading, which
|
|
34
|
-
# also shows a raised sysctl (
|
|
34
|
+
# also shows a raised sysctl (e.g. 249036 MiB set, the same value read on a 256 GB Mac).
|
|
35
35
|
_DEFAULT_WORKING_SETS = (
|
|
36
36
|
(16 * GIB, 12713115648),
|
|
37
37
|
(24 * GIB, 19069665280),
|
|
@@ -44,7 +44,7 @@ RAISED_WIRED_FRACTION = 0.95
|
|
|
44
44
|
# The environment every Metal llama-server gets: keep its residency set (weights, KV, compute
|
|
45
45
|
# buffers) wired for a day of idling instead of upstream's few minutes. PIN1 (2026-11-09): by
|
|
46
46
|
# default a 27B UD-IQ3_S server's 15.3 GiB of wired memory dropped to none about 226 s into idling
|
|
47
|
-
# on
|
|
47
|
+
# on macOS, and on a 24 GB Mac under desktop memory pressure 1.4 GiB of it was paged out while
|
|
48
48
|
# idle; with this setting it stayed wired through 6 min idle and an 8 GiB incompressible hog that
|
|
49
49
|
# pushed other apps 5-7 GiB into swap, and a short request's first token came in 1.5 s against
|
|
50
50
|
# 2.8 s. --load-mode mmap+mlock added nothing measurable on top. Other apps take the swap instead.
|
|
@@ -58,8 +58,8 @@ RESERVE_MIN_BYTES = 3 * GIB
|
|
|
58
58
|
RESERVE_MAX_BYTES = 8 * GIB
|
|
59
59
|
# kern.memorystatus_vm_pressure_level: 1 normal, 2 warning, 4 critical. Under warning macOS is
|
|
60
60
|
# already compressing, so a plan that fills the memory available can tip it into critical, where
|
|
61
|
-
# it kills processes (a 73.4 GB plan against 73.8 GB available was aborted
|
|
62
|
-
#
|
|
61
|
+
# it kills processes (a 73.4 GB plan against 73.8 GB available was aborted under memory warning).
|
|
62
|
+
# A shared Mac can sit at warning for hours with tens of GB free, so warning plans
|
|
63
63
|
# keep this share of the RAM available back instead of refusing.
|
|
64
64
|
PRESSURE_NORMAL = 1
|
|
65
65
|
PRESSURE_WARN = 2
|
|
@@ -388,7 +388,7 @@ def owned_bytes(facts: HostFacts) -> int:
|
|
|
388
388
|
def foreign_cached_bytes(facts: HostFacts) -> int:
|
|
389
389
|
"""The file-cached weights of inference servers this tool does not own: an upstream server
|
|
390
390
|
unwires its weights a few minutes into idling, and macOS then counts them as available.
|
|
391
|
-
They are still that server's model
|
|
391
|
+
They are still that server's model, so they are not free for a plan."""
|
|
392
392
|
return sum(
|
|
393
393
|
int(p.get("cached_bytes") or 0) for p in _metal_processes(facts) if p["owned"] is not True
|
|
394
394
|
)
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
"""Memory and capacity pricing as pure functions: per-model memory by context length
|
|
2
|
-
(``memcalc``, read by ``memcalc_load``) and weight size by device class (``sizecalc``).
|
|
3
|
-
See docs/local-models/architecture.md#子包."""
|
|
2
|
+
(``memcalc``, read by ``memcalc_load``) and weight size by device class (``sizecalc``)."""
|
|
@@ -287,7 +287,7 @@ def idle_cards(facts: HostFacts, need_bytes: int) -> list[GPU]:
|
|
|
287
287
|
return False
|
|
288
288
|
# A Windows desktop always holds part of its card through WDDM contexts that are not
|
|
289
289
|
# foreign work (foreign_work); up to the desktop baseline, with no inference server
|
|
290
|
-
# there, the card is still idle
|
|
290
|
+
# there, the card is still idle, and a Strata engine sizes itself from
|
|
291
291
|
# what is free when it starts.
|
|
292
292
|
taken = max(g["used_bytes"], g["total_bytes"] - g["free_bytes"])
|
|
293
293
|
desktop = (
|
|
@@ -517,20 +517,40 @@ def fetch(
|
|
|
517
517
|
raise error or RuntimeError(f"{label} has no download source")
|
|
518
518
|
|
|
519
519
|
|
|
520
|
+
def _missing_members(directory: str, assets: list[remote_ops_common.Archive]) -> set[str]:
|
|
521
|
+
"""Single files the assets' ``members`` name that are not in ``directory``. A lock may list
|
|
522
|
+
one more file of the same archive than the lock that first unpacked it did (the PolyStrata
|
|
523
|
+
0.2.20-poly.9 source archive gained ``terminal/data/expert-profile-glm.txt`` when the GLM
|
|
524
|
+
recipe moved onto it), and the ``.complete`` marker holds only the archive digests."""
|
|
525
|
+
return {
|
|
526
|
+
m
|
|
527
|
+
for a in assets
|
|
528
|
+
for m in a.get("members") or ()
|
|
529
|
+
if not m.endswith("/") and not os.path.lexists(os.path.join(directory, m))
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
|
|
520
533
|
def act_engine(p: remote_ops_common.EngineParams) -> None:
|
|
521
|
-
"""Unpack the pinned release archives into p['dir'].
|
|
534
|
+
"""Unpack the pinned release archives into p['dir']. An engine already unpacked from the same
|
|
535
|
+
archives only gets the member files it lacks, so a running engine's files are not rewritten."""
|
|
522
536
|
directory = remote_ops_common.expand(p["dir"])
|
|
523
537
|
binary = os.path.join(directory, p.get("binary") or "llama-server")
|
|
524
538
|
done_marker = os.path.join(directory, ".complete")
|
|
525
539
|
expected = ",".join(a["sha256"] for a in p["assets"])
|
|
526
|
-
|
|
540
|
+
|
|
541
|
+
def complete() -> bool:
|
|
542
|
+
return (
|
|
543
|
+
os.path.exists(done_marker)
|
|
544
|
+
and remote_ops_common.read_text(done_marker).strip() == expected
|
|
545
|
+
)
|
|
546
|
+
|
|
547
|
+
if complete() and not _missing_members(directory, p["assets"]):
|
|
527
548
|
remote_ops_common.emit("result", binary=binary, reused=True)
|
|
528
549
|
return
|
|
529
550
|
with remote_ops_mirrors.engine_lock(directory):
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
):
|
|
551
|
+
unpacked = complete()
|
|
552
|
+
missing = _missing_members(directory, p["assets"]) if unpacked else set()
|
|
553
|
+
if unpacked and not missing:
|
|
534
554
|
remote_ops_common.emit("result", binary=binary, reused=True)
|
|
535
555
|
return
|
|
536
556
|
os.makedirs(directory, exist_ok=True)
|
|
@@ -540,6 +560,11 @@ def act_engine(p: remote_ops_common.EngineParams) -> None:
|
|
|
540
560
|
[(os.path.join(cache, a["name"]), a["size_bytes"]) for a in p["assets"]]
|
|
541
561
|
):
|
|
542
562
|
a = p["assets"][i]
|
|
563
|
+
keep = tuple(a.get("members") or ())
|
|
564
|
+
if unpacked:
|
|
565
|
+
keep = tuple(m for m in keep if m in missing)
|
|
566
|
+
if not keep:
|
|
567
|
+
continue
|
|
543
568
|
archive = os.path.join(cache, a["name"])
|
|
544
569
|
switched = fetch(
|
|
545
570
|
a["url"],
|
|
@@ -552,7 +577,7 @@ def act_engine(p: remote_ops_common.EngineParams) -> None:
|
|
|
552
577
|
)
|
|
553
578
|
if switched in ("cn", "global"):
|
|
554
579
|
active_region = switched
|
|
555
|
-
remote_ops_common.unpack(archive, directory,
|
|
580
|
+
remote_ops_common.unpack(archive, directory, keep)
|
|
556
581
|
if not os.access(binary, os.X_OK):
|
|
557
582
|
raise RuntimeError(f"the engine has no executable {os.path.relpath(binary, directory)}")
|
|
558
583
|
remote_ops_common.write_text(done_marker, expected)
|
|
@@ -35,7 +35,7 @@ SLOW_MIN_REMAINING_S = 30.0
|
|
|
35
35
|
# finish last (work stealing), split by the two connections' rates so both end together; a
|
|
36
36
|
# stalled connection loses all of its range. A piece is stolen only when the thief would spend
|
|
37
37
|
# at least STEAL_MIN_S on it, so the extra request (TLS, a Hub redirect) is worth it. Counts come
|
|
38
|
-
# from
|
|
38
|
+
# from multi-connection download throughput benchmarks: from
|
|
39
39
|
# China the Hugging Face CDN (also behind hf-mirror) caps each connection near 0.1 MB/s, so 16
|
|
40
40
|
# connections fetch about 16 times as fast; ModelScope reaches the link's ~100 MB/s with 8.
|
|
41
41
|
CONNECTIONS = 8
|
|
@@ -57,7 +57,7 @@ def _delete(path: str, remove: Callable[[str], None] = os.remove) -> None:
|
|
|
57
57
|
"""Delete one of a stopped service's files or emptied directories. Windows refuses while
|
|
58
58
|
another process still has it open, and a server that was just ended keeps its log and its
|
|
59
59
|
working directory open until its memory is torn down: seconds for a 10 GB llama-server
|
|
60
|
-
(
|
|
60
|
+
(observed as WinError 32 on server.log right after stopping on Windows). So a refusal is
|
|
61
61
|
retried there for RELEASE_WAIT_S; elsewhere, and after that, it is raised."""
|
|
62
62
|
deadline = time.monotonic() + RELEASE_WAIT_S
|
|
63
63
|
while True:
|
|
@@ -236,7 +236,7 @@ def _solid_png(rgb: tuple[int, int, int], side: int = 224) -> bytes:
|
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
def _picture_answer(root: str, p: remote_ops_common.VerifyParams) -> str:
|
|
239
|
-
"""The model's answer, with its reasoning, about a synthetic red picture
|
|
239
|
+
"""The model's answer, with its reasoning, about a synthetic red picture."""
|
|
240
240
|
image = "data:image/png;base64," + base64.b64encode(_solid_png((220, 20, 20))).decode()
|
|
241
241
|
parts = [
|
|
242
242
|
{"type": "text", "text": PICTURE_PROMPT},
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
},
|
|
177
177
|
"launchers": {
|
|
178
178
|
"win32-x64": {
|
|
179
|
-
"url": "https://
|
|
179
|
+
"url": "https://releases.heylinger.com/cli/simplex-installer/localmodels-tools-20261028/5f362bed89424350/pi-win32-x64.exe",
|
|
180
180
|
"algorithm": "sha256",
|
|
181
181
|
"digest": "5f362bed894243500b603cbb4996c9e408f547dd209ce9007bad745abc0d2a34",
|
|
182
182
|
"maxBytes": 1982464,
|
|
@@ -57,7 +57,7 @@ def plan_component(
|
|
|
57
57
|
if owned := _existing_parts(role, root):
|
|
58
58
|
return owned
|
|
59
59
|
if role == "decision":
|
|
60
|
-
# With sharing consent the free VRAM decides whoever else uses a card
|
|
60
|
+
# With sharing consent the free VRAM decides whoever else uses a card.
|
|
61
61
|
if not share_gpu and budget.unknown_services(facts):
|
|
62
62
|
raise WaitingForResourcesError("gpu")
|
|
63
63
|
candidates = budget.sharing_cards(facts, 0) if share_gpu else budget.idle_cards(facts, 0)
|
|
@@ -446,7 +446,11 @@ def filter_visible_status_rows(
|
|
|
446
446
|
*,
|
|
447
447
|
show_hidden: bool,
|
|
448
448
|
) -> list[_RowT]:
|
|
449
|
-
"""Omit
|
|
449
|
+
"""Omit retired voice models in every state, so callers never offer one.
|
|
450
|
+
|
|
451
|
+
Their files and records stay on disk and every verb still addresses them by ID, so an
|
|
452
|
+
owner who already downloaded one can still remove it with ``--all`` discovery.
|
|
453
|
+
"""
|
|
450
454
|
if show_hidden:
|
|
451
455
|
return rows
|
|
452
|
-
return [row for row in rows if row["id"] not in hidden_ids
|
|
456
|
+
return [row for row in rows if row["id"] not in hidden_ids]
|
|
@@ -71,9 +71,9 @@ def add_parser(sub: argparse._SubParsersAction[argparse.ArgumentParser]) -> None
|
|
|
71
71
|
cli_help.document(
|
|
72
72
|
status_p,
|
|
73
73
|
"Print one localmodels.speech-status/v1 JSON document describing configuration, live "
|
|
74
|
-
"sidecar status, and visible v1 speech models with license disclosures.
|
|
75
|
-
"
|
|
76
|
-
"
|
|
74
|
+
"sidecar status, and visible v1 speech models with license disclosures. Whisper models "
|
|
75
|
+
"are hidden in every state unless --all or LOCALMODELS_VOICE_INCLUDE_GPU=1 is set, and "
|
|
76
|
+
"a saved hidden model_id is reported as the default model. Read-only.",
|
|
77
77
|
examples=[("%(prog)s --base-dir /srv/models --json", "")],
|
|
78
78
|
)
|
|
79
79
|
|