@simplexai/localmodels-win32-x64 0.1.0-dev.111 → 0.1.0-dev.112
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 +32 -32
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/catalog.json +64 -40
- package/modules/localmodels/catalog_recipes.py +10 -1
- package/modules/localmodels/deploy.py +9 -4
- package/modules/localmodels/engine_adapters/suite_plan.py +4 -0
- package/modules/localmodels/engines.json +96 -91
- package/modules/localmodels/engines.py +9 -2
- package/modules/localmodels/library_cli.py +2 -1
- package/modules/localmodels/library_jobs.py +47 -11
- package/modules/localmodels/library_model.py +3 -1
- package/modules/localmodels/library_poly.py +75 -36
- package/modules/localmodels/library_pricing.py +125 -20
- package/modules/localmodels/library_serve.py +68 -14
- package/modules/localmodels/library_state.py +3 -0
- package/modules/localmodels/library_status.py +11 -1
- package/modules/localmodels/region.py +5 -9
- package/modules/localmodels/remote_ops_download.py +14 -5
- package/modules/localmodels/stack_suite.py +14 -1
- package/modules/localmodels/suite.py +30 -5
- package/modules/localmodels/web/view/i18n.js +1 -1
- package/modules/localmodels/web/view/view.js +11 -3
- package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/RECORD +28 -28
- package/package.json +1 -1
- package/tool.json +1 -1
- /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/licenses/LICENSE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -428,15 +428,20 @@ def _read_key_file(path: Path) -> str | None:
|
|
|
428
428
|
return key
|
|
429
429
|
|
|
430
430
|
|
|
431
|
-
def
|
|
432
|
-
"""Read a local deployment's pinned or existing API key without generating
|
|
433
|
-
|
|
431
|
+
def saved_api_key_in(deploy_dir: str | Path) -> str | None:
|
|
432
|
+
"""Read a local deployment directory's pinned or existing API key without generating one."""
|
|
433
|
+
root = Path(os.path.expanduser(str(deploy_dir)))
|
|
434
434
|
for name in (PINNED_API_KEY_NAME, "api-key"):
|
|
435
|
-
if key := _read_key_file(
|
|
435
|
+
if key := _read_key_file(root / name):
|
|
436
436
|
return key
|
|
437
437
|
return None
|
|
438
438
|
|
|
439
439
|
|
|
440
|
+
def saved_api_key(plan: Plan) -> str | None:
|
|
441
|
+
"""Read a local deployment's pinned or existing API key without generating a new one."""
|
|
442
|
+
return saved_api_key_in(plan["service"]["deploy_dir"])
|
|
443
|
+
|
|
444
|
+
|
|
440
445
|
def resolve_api_key(
|
|
441
446
|
plan: Plan,
|
|
442
447
|
*,
|
|
@@ -202,6 +202,10 @@ def _profile_template(
|
|
|
202
202
|
)
|
|
203
203
|
if matched_card_args and any(group.get("parallel") for group in matched_card_args):
|
|
204
204
|
profile_template["parallel"] = suite.effective_parallel(r, matched_card_args)
|
|
205
|
+
if facts["platform"] == "darwin" and (metal_parallel := r.get("metal_parallel")):
|
|
206
|
+
# A recipe whose CUDA tier is the offload one (parallel: 1, BasinKV's shared hot slab)
|
|
207
|
+
# still runs native Metal KV in parallel on Apple Silicon unified memory.
|
|
208
|
+
profile_template["parallel"] = int(metal_parallel)
|
|
205
209
|
adapter.finish_profile(profile_template, options, facts)
|
|
206
210
|
return profile_template
|
|
207
211
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "localmodels.engine-lock/v1",
|
|
3
|
-
"tag": "
|
|
4
|
-
"commit": "
|
|
5
|
-
"source": "https://github.com/ggml-org/llama.cpp/releases/tag/
|
|
6
|
-
"note": "Release asset digests from the GitHub release API,
|
|
3
|
+
"tag": "b12977",
|
|
4
|
+
"commit": "1579b02545274244eb159d204218d8dfab37baf0",
|
|
5
|
+
"source": "https://github.com/ggml-org/llama.cpp/releases/tag/b12977",
|
|
6
|
+
"note": "Release asset digests from the GitHub release API (ggml-org/llama.cpp b12977, published 2026-12-04T07:46:23Z; the v1.1.1 release tag of 2026-12-04T08:21:49Z names the same commit 1579b02545274244eb159d204218d8dfab37baf0). This is the one ggml-org llama.cpp build the catalog runs: every LLM, decision, embedding and reranker row runs it, replacing b11370, b11583 and b12973 (the unslothai mix forks keep their own rows and their own locks). Verified on the real archives, 2026-12-04: the Linux x64 CPU tarball matches its digest (59087e9af2e630a53bc41949c297b69a34d8c2b5aa6b60e1aa1fe11804d0a76b) and its llama-server reports 1.1.1-dev (build 12977, commit 1579b0254), imports at most GLIBC 2.34, links libgomp.so.1 from libggml-base/libggml-cpu (readelf NEEDED), and its --help lists every SERVER_FLAGS option plus --ple/--shard, --lazy-mode, --load-mode, -ot, --mmproj and --spec-type draft-simple/eagle3/mtp/dflash/dspark; tools/server/server.cpp registers POST /v1/systemone (the decision models' vllm-d3 contract). Upstream's Linux x64 CUDA 12.8 and 13.5 archives are compiled in an nvidia/cuda devel-ubuntu24.04 container (.github/workflows/release.yml) and import GLIBC 2.38, so Ubuntu 22.04 (glibc 2.35) hosts and minimal Linux containers without libgomp1 select this repository's ubuntu22.04-r3 rebuild: it bundles libgomp.so.1 behind RUNPATH $ORIGIN, compiles q8_0-q4_0 and f8_e4m3-f8_e4m3 FlashAttention K-V kernels, imports at most GLIBC 2.34 across all 54 ELF files, and passes bare ubuntu:22.04 and ubuntu:24.04 container audits (--network none, no added packages). The CPU and Vulkan x64 builds import at most GLIBC 2.34, so 22.04 hosts keep those. Windows CUDA 12.4/13.5 companion cudart zips are upstream's, and their digests are unchanged from b12973.",
|
|
7
7
|
"builds": [
|
|
8
8
|
{
|
|
9
9
|
"platform": "linux",
|
|
10
10
|
"arch": "x64",
|
|
11
11
|
"backend": "cuda",
|
|
12
12
|
"min_cuda": "12.8",
|
|
13
|
+
"min_glibc": "2.38",
|
|
13
14
|
"host_libraries": {
|
|
14
15
|
"libgomp.so.1": "libgomp1"
|
|
15
16
|
},
|
|
16
17
|
"assets": [
|
|
17
18
|
{
|
|
18
|
-
"name": "llama-
|
|
19
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size_bytes":
|
|
19
|
+
"name": "llama-b12977-bin-ubuntu-cuda-12.8-x64.tar.gz",
|
|
20
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-cuda-12.8-x64.tar.gz",
|
|
21
|
+
"sha256": "894a5a682bf6dd95782b2f3225da8eb042ec99dc1d934b0d6d8ac1088a2b9ef9",
|
|
22
|
+
"size_bytes": 229754183
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
|
-
"name": "cudart-llama-
|
|
25
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size_bytes":
|
|
25
|
+
"name": "cudart-llama-b12977-bin-ubuntu-cuda-12.8-x64.tar.gz",
|
|
26
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/cudart-llama-b12977-bin-ubuntu-cuda-12.8-x64.tar.gz",
|
|
27
|
+
"sha256": "55bdcd57443b431f9397a7256dc9d292ceb9b001e452405be0d72662bc948964",
|
|
28
|
+
"size_bytes": 594373580
|
|
28
29
|
}
|
|
29
|
-
]
|
|
30
|
-
"min_glibc": "2.38"
|
|
30
|
+
]
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"platform": "linux",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"min_cuda": "12.8",
|
|
37
37
|
"min_glibc": "2.34",
|
|
38
38
|
"variant": "ubuntu22.04-r3",
|
|
39
|
-
"provenance": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/
|
|
39
|
+
"provenance": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b12977-cu12.8-ubuntu22.04-r3/llama-b12977-bin-ubuntu22.04-r3-cuda-12.8-x64.provenance.json",
|
|
40
40
|
"assets": [
|
|
41
41
|
{
|
|
42
|
-
"name": "llama-
|
|
43
|
-
"url": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/
|
|
44
|
-
"sha256": "
|
|
45
|
-
"size_bytes":
|
|
42
|
+
"name": "llama-b12977-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
43
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b12977-cu12.8-ubuntu22.04-r3/llama-b12977-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
44
|
+
"sha256": "45c146a7f0ab79184cca27f8394583c269d7ba2504219cb314520c60639b86db",
|
|
45
|
+
"size_bytes": 228089015
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
"name": "cudart-llama-
|
|
49
|
-
"url": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/
|
|
50
|
-
"sha256": "
|
|
51
|
-
"size_bytes":
|
|
48
|
+
"name": "cudart-llama-b12977-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
49
|
+
"url": "https://releases.heylinger.com/cli/localmodels/engines/llama.cpp/b12977-cu12.8-ubuntu22.04-r3/cudart-llama-b12977-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
50
|
+
"sha256": "bea30a93a9d056779aaba6994fddd0abf5dbe6d365418594964f2ff9ed1c9958",
|
|
51
|
+
"size_bytes": 593656164
|
|
52
52
|
}
|
|
53
53
|
]
|
|
54
54
|
},
|
|
@@ -56,46 +56,47 @@
|
|
|
56
56
|
"platform": "linux",
|
|
57
57
|
"arch": "x64",
|
|
58
58
|
"backend": "cuda",
|
|
59
|
-
"min_cuda": "13.
|
|
59
|
+
"min_cuda": "13.5",
|
|
60
|
+
"min_glibc": "2.38",
|
|
60
61
|
"host_libraries": {
|
|
61
62
|
"libgomp.so.1": "libgomp1"
|
|
62
63
|
},
|
|
63
64
|
"assets": [
|
|
64
65
|
{
|
|
65
|
-
"name": "llama-
|
|
66
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
67
|
-
"sha256": "
|
|
68
|
-
"size_bytes":
|
|
66
|
+
"name": "llama-b12977-bin-ubuntu-cuda-13.5-x64.tar.gz",
|
|
67
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-cuda-13.5-x64.tar.gz",
|
|
68
|
+
"sha256": "2681e4e0c6ce86cd6ff90130b830a8afbeeb8da66ecb31003c22fd9b3e12b043",
|
|
69
|
+
"size_bytes": 233670050
|
|
69
70
|
},
|
|
70
71
|
{
|
|
71
|
-
"name": "cudart-llama-
|
|
72
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
73
|
-
"sha256": "
|
|
74
|
-
"size_bytes":
|
|
72
|
+
"name": "cudart-llama-b12977-bin-ubuntu-cuda-13.5-x64.tar.gz",
|
|
73
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/cudart-llama-b12977-bin-ubuntu-cuda-13.5-x64.tar.gz",
|
|
74
|
+
"sha256": "3be25df1d65371c4d7bba014ed12b8c4f2fcc557c3df2202b781503b6b876ba2",
|
|
75
|
+
"size_bytes": 444080262
|
|
75
76
|
}
|
|
76
|
-
]
|
|
77
|
-
"min_glibc": "2.38"
|
|
77
|
+
]
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"platform": "linux",
|
|
81
81
|
"arch": "arm64",
|
|
82
82
|
"backend": "cuda",
|
|
83
|
-
"min_cuda": "13.
|
|
83
|
+
"min_cuda": "13.5",
|
|
84
|
+
"min_glibc": "2.38",
|
|
84
85
|
"host_libraries": {
|
|
85
86
|
"libgomp.so.1": "libgomp1"
|
|
86
87
|
},
|
|
87
88
|
"assets": [
|
|
88
89
|
{
|
|
89
|
-
"name": "llama-
|
|
90
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
91
|
-
"sha256": "
|
|
92
|
-
"size_bytes":
|
|
90
|
+
"name": "llama-b12977-bin-ubuntu-cuda-13.5-arm64.tar.gz",
|
|
91
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-cuda-13.5-arm64.tar.gz",
|
|
92
|
+
"sha256": "add44c88a3ba71f6738f7d8532786d1281a93606410e6e1cd53dd219828e0ca1",
|
|
93
|
+
"size_bytes": 228562021
|
|
93
94
|
},
|
|
94
95
|
{
|
|
95
|
-
"name": "cudart-llama-
|
|
96
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
97
|
-
"sha256": "
|
|
98
|
-
"size_bytes":
|
|
96
|
+
"name": "cudart-llama-b12977-bin-ubuntu-cuda-13.5-arm64.tar.gz",
|
|
97
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/cudart-llama-b12977-bin-ubuntu-cuda-13.5-arm64.tar.gz",
|
|
98
|
+
"sha256": "30ce779518936d77631f76c507dfe944074b3b1e3018e900c4252377e1378853",
|
|
99
|
+
"size_bytes": 559873948
|
|
99
100
|
}
|
|
100
101
|
]
|
|
101
102
|
},
|
|
@@ -103,15 +104,16 @@
|
|
|
103
104
|
"platform": "linux",
|
|
104
105
|
"arch": "x64",
|
|
105
106
|
"backend": "vulkan",
|
|
107
|
+
"min_glibc": "2.34",
|
|
106
108
|
"host_libraries": {
|
|
107
109
|
"libgomp.so.1": "libgomp1"
|
|
108
110
|
},
|
|
109
111
|
"assets": [
|
|
110
112
|
{
|
|
111
|
-
"name": "llama-
|
|
112
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
113
|
-
"sha256": "
|
|
114
|
-
"size_bytes":
|
|
113
|
+
"name": "llama-b12977-bin-ubuntu-vulkan-x64.tar.gz",
|
|
114
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-vulkan-x64.tar.gz",
|
|
115
|
+
"sha256": "0c594d3959fc30b3bec61f7a6a488552bc78d97f3793ebd9e96400a4c168381a",
|
|
116
|
+
"size_bytes": 36505403
|
|
115
117
|
}
|
|
116
118
|
]
|
|
117
119
|
},
|
|
@@ -119,15 +121,16 @@
|
|
|
119
121
|
"platform": "linux",
|
|
120
122
|
"arch": "arm64",
|
|
121
123
|
"backend": "vulkan",
|
|
124
|
+
"min_glibc": "2.38",
|
|
122
125
|
"host_libraries": {
|
|
123
126
|
"libgomp.so.1": "libgomp1"
|
|
124
127
|
},
|
|
125
128
|
"assets": [
|
|
126
129
|
{
|
|
127
|
-
"name": "llama-
|
|
128
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
129
|
-
"sha256": "
|
|
130
|
-
"size_bytes":
|
|
130
|
+
"name": "llama-b12977-bin-ubuntu-vulkan-arm64.tar.gz",
|
|
131
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-vulkan-arm64.tar.gz",
|
|
132
|
+
"sha256": "de471cf4f19b56cf41e08ea224ab821977a5d04073e493719e1b37fea0148611",
|
|
133
|
+
"size_bytes": 29302450
|
|
131
134
|
}
|
|
132
135
|
]
|
|
133
136
|
},
|
|
@@ -135,15 +138,16 @@
|
|
|
135
138
|
"platform": "linux",
|
|
136
139
|
"arch": "x64",
|
|
137
140
|
"backend": "rocm",
|
|
141
|
+
"min_glibc": "2.38",
|
|
138
142
|
"host_libraries": {
|
|
139
143
|
"libgomp.so.1": "libgomp1"
|
|
140
144
|
},
|
|
141
145
|
"assets": [
|
|
142
146
|
{
|
|
143
|
-
"name": "llama-
|
|
144
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
145
|
-
"sha256": "
|
|
146
|
-
"size_bytes":
|
|
147
|
+
"name": "llama-b12977-bin-ubuntu-rocm-10.0-x64.tar.gz",
|
|
148
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-rocm-10.0-x64.tar.gz",
|
|
149
|
+
"sha256": "5ceb725790715a57e3dce0f4098bb46e8794fcc7cebb1d8af828d033d6a5f911",
|
|
150
|
+
"size_bytes": 305991898
|
|
147
151
|
}
|
|
148
152
|
]
|
|
149
153
|
},
|
|
@@ -151,32 +155,33 @@
|
|
|
151
155
|
"platform": "linux",
|
|
152
156
|
"arch": "x64",
|
|
153
157
|
"backend": "cpu",
|
|
158
|
+
"min_glibc": "2.34",
|
|
154
159
|
"host_libraries": {
|
|
155
160
|
"libgomp.so.1": "libgomp1"
|
|
156
161
|
},
|
|
157
162
|
"assets": [
|
|
158
163
|
{
|
|
159
|
-
"name": "llama-
|
|
160
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
161
|
-
"sha256": "
|
|
162
|
-
"size_bytes":
|
|
164
|
+
"name": "llama-b12977-bin-ubuntu-x64.tar.gz",
|
|
165
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-x64.tar.gz",
|
|
166
|
+
"sha256": "59087e9af2e630a53bc41949c297b69a34d8c2b5aa6b60e1aa1fe11804d0a76b",
|
|
167
|
+
"size_bytes": 23770604
|
|
163
168
|
}
|
|
164
|
-
]
|
|
165
|
-
"min_glibc": "2.34"
|
|
169
|
+
]
|
|
166
170
|
},
|
|
167
171
|
{
|
|
168
172
|
"platform": "linux",
|
|
169
173
|
"arch": "arm64",
|
|
170
174
|
"backend": "cpu",
|
|
175
|
+
"min_glibc": "2.38",
|
|
171
176
|
"host_libraries": {
|
|
172
177
|
"libgomp.so.1": "libgomp1"
|
|
173
178
|
},
|
|
174
179
|
"assets": [
|
|
175
180
|
{
|
|
176
|
-
"name": "llama-
|
|
177
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
178
|
-
"sha256": "
|
|
179
|
-
"size_bytes":
|
|
181
|
+
"name": "llama-b12977-bin-ubuntu-arm64.tar.gz",
|
|
182
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-arm64.tar.gz",
|
|
183
|
+
"sha256": "529eec8ca95e3efda5bfe0adc5d9b14ea034dfeb43d6916028f75e74aa071b8d",
|
|
184
|
+
"size_bytes": 19314037
|
|
180
185
|
}
|
|
181
186
|
]
|
|
182
187
|
},
|
|
@@ -186,10 +191,10 @@
|
|
|
186
191
|
"backend": "metal",
|
|
187
192
|
"assets": [
|
|
188
193
|
{
|
|
189
|
-
"name": "llama-
|
|
190
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
191
|
-
"sha256": "
|
|
192
|
-
"size_bytes":
|
|
194
|
+
"name": "llama-b12977-bin-macos-arm64.tar.gz",
|
|
195
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-macos-arm64.tar.gz",
|
|
196
|
+
"sha256": "3eca6041c3a4e1a42c56136c34b88c55f5dc52028b8947f3e688548de1d7b1c9",
|
|
197
|
+
"size_bytes": 17066377
|
|
193
198
|
}
|
|
194
199
|
]
|
|
195
200
|
},
|
|
@@ -199,10 +204,10 @@
|
|
|
199
204
|
"backend": "cpu",
|
|
200
205
|
"assets": [
|
|
201
206
|
{
|
|
202
|
-
"name": "llama-
|
|
203
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
204
|
-
"sha256": "
|
|
205
|
-
"size_bytes":
|
|
207
|
+
"name": "llama-b12977-bin-macos-x64.tar.gz",
|
|
208
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-macos-x64.tar.gz",
|
|
209
|
+
"sha256": "3c8fd1a9910907f13bb47481499222bad2ad47d23772347cb1c16663ace83a0f",
|
|
210
|
+
"size_bytes": 12780508
|
|
206
211
|
}
|
|
207
212
|
]
|
|
208
213
|
},
|
|
@@ -214,14 +219,14 @@
|
|
|
214
219
|
"binary": "llama-server.exe",
|
|
215
220
|
"assets": [
|
|
216
221
|
{
|
|
217
|
-
"name": "llama-
|
|
218
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
219
|
-
"sha256": "
|
|
220
|
-
"size_bytes":
|
|
222
|
+
"name": "llama-b12977-bin-win-cuda-12.4-x64.zip",
|
|
223
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-win-cuda-12.4-x64.zip",
|
|
224
|
+
"sha256": "0a95aeee1a1289fb88b982f40885d9a404a5d924d127c8f8b75e6242a24a9591",
|
|
225
|
+
"size_bytes": 375547503
|
|
221
226
|
},
|
|
222
227
|
{
|
|
223
228
|
"name": "cudart-llama-bin-win-cuda-12.4-x64.zip",
|
|
224
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
229
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/cudart-llama-bin-win-cuda-12.4-x64.zip",
|
|
225
230
|
"sha256": "8c79a9b226de4b3cacfd1f83d24f962d0773be79f1e7b75c6af4ded7e32ae1d6",
|
|
226
231
|
"size_bytes": 391443627
|
|
227
232
|
}
|
|
@@ -231,20 +236,20 @@
|
|
|
231
236
|
"platform": "win32",
|
|
232
237
|
"arch": "x64",
|
|
233
238
|
"backend": "cuda",
|
|
234
|
-
"min_cuda": "13.
|
|
239
|
+
"min_cuda": "13.5",
|
|
235
240
|
"binary": "llama-server.exe",
|
|
236
241
|
"assets": [
|
|
237
242
|
{
|
|
238
|
-
"name": "llama-
|
|
239
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
240
|
-
"sha256": "
|
|
241
|
-
"size_bytes":
|
|
243
|
+
"name": "llama-b12977-bin-win-cuda-13.5-x64.zip",
|
|
244
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-win-cuda-13.5-x64.zip",
|
|
245
|
+
"sha256": "9498ee96fc0f1864422d0d9cc82edb0d5e604e3dc1b4dc80560d356a5d623a6e",
|
|
246
|
+
"size_bytes": 234761095
|
|
242
247
|
},
|
|
243
248
|
{
|
|
244
|
-
"name": "cudart-llama-bin-win-cuda-13.
|
|
245
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
246
|
-
"sha256": "
|
|
247
|
-
"size_bytes":
|
|
249
|
+
"name": "cudart-llama-bin-win-cuda-13.5-x64.zip",
|
|
250
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/cudart-llama-bin-win-cuda-13.5-x64.zip",
|
|
251
|
+
"sha256": "c2bf4cc202bfbaaa7a0b75f5082457c3811326947bb216059b72839d844e9cba",
|
|
252
|
+
"size_bytes": 426314199
|
|
248
253
|
}
|
|
249
254
|
]
|
|
250
255
|
},
|
|
@@ -255,10 +260,10 @@
|
|
|
255
260
|
"binary": "llama-server.exe",
|
|
256
261
|
"assets": [
|
|
257
262
|
{
|
|
258
|
-
"name": "llama-
|
|
259
|
-
"url": "https://github.com/ggml-org/llama.cpp/releases/download/
|
|
260
|
-
"sha256": "
|
|
261
|
-
"size_bytes":
|
|
263
|
+
"name": "llama-b12977-bin-win-cpu-x64.zip",
|
|
264
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-win-cpu-x64.zip",
|
|
265
|
+
"sha256": "1c61e1b217253870cd32b1f8b066c8d9873776b30a3f26720f33468361dd78f8",
|
|
266
|
+
"size_bytes": 25598865
|
|
262
267
|
}
|
|
263
268
|
]
|
|
264
269
|
}
|
|
@@ -94,8 +94,15 @@ def _cuda_tuple(version: str) -> tuple[int, int]:
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
def engine_lock_path(tag: str | None = None) -> Path:
|
|
97
|
-
"""engines.json pins the LLM engine; a component pinned to another tag has its own lock.
|
|
98
|
-
|
|
97
|
+
"""engines.json pins the LLM engine; a component pinned to another tag has its own lock.
|
|
98
|
+
A tag naming the default lock's own release resolves to engines.json, so the newest
|
|
99
|
+
release needs no second copy of the same lock."""
|
|
100
|
+
if tag is None:
|
|
101
|
+
return ENGINE_LOCK
|
|
102
|
+
path = ENGINE_LOCK.with_name(f"engines-{tag}.json")
|
|
103
|
+
if not path.is_file() and _load_engine_lock(ENGINE_LOCK)["tag"] == tag:
|
|
104
|
+
return ENGINE_LOCK
|
|
105
|
+
return path
|
|
99
106
|
|
|
100
107
|
|
|
101
108
|
def engine_lock_commit(tag: str | None) -> str | None:
|
|
@@ -92,7 +92,8 @@ def add_parser(sub: argparse._SubParsersAction[argparse.ArgumentParser]) -> None
|
|
|
92
92
|
cli_help.document(
|
|
93
93
|
download,
|
|
94
94
|
"Download and verify the model's files into the pool it fits best, then load it when "
|
|
95
|
-
"that pool has room (else it stays idle with note NO_ROOM_TO_LOAD)."
|
|
95
|
+
"that pool has room (else it stays idle with note NO_ROOM_TO_LOAD). A model this "
|
|
96
|
+
"computer cannot load for memory now still downloads and stays idle without loading.",
|
|
96
97
|
examples=[("%(prog)s qwen3.8-27b-iq3s:UD-IQ3_S --jsonl", "")],
|
|
97
98
|
)
|
|
98
99
|
load = verbs.add_parser("load", help="start a downloaded model's server")
|
|
@@ -562,6 +562,7 @@ def _shared(model: str, plan: Plan, handle: JobHandle, run: Executor, waiting: l
|
|
|
562
562
|
|
|
563
563
|
|
|
564
564
|
def _refuse_download(lib: library_status.Library, model: Model) -> library_pricing.Priced:
|
|
565
|
+
"""Reject a download only for a hard blocker; a memory shortfall still downloads."""
|
|
565
566
|
if (problem := library_pricing.platform_problem(lib.facts)) is not None:
|
|
566
567
|
raise LibraryError("PLATFORM_UNSUPPORTED", problem)
|
|
567
568
|
job, alive = lib.jobs.get(model.id, (None, False))
|
|
@@ -570,8 +571,13 @@ def _refuse_download(lib: library_status.Library, model: Model) -> library_prici
|
|
|
570
571
|
if model.id in lib.records:
|
|
571
572
|
raise LibraryError("INVALID_STATE", f"{model.id} is already downloaded")
|
|
572
573
|
priced = lib.judge(model)
|
|
574
|
+
download_bytes = (
|
|
575
|
+
sum(f["size_bytes"] for f in priced.plan["files"])
|
|
576
|
+
if priced.plan is not None
|
|
577
|
+
else library_pricing.floor_metadata(lib.facts, model)[3]
|
|
578
|
+
)
|
|
573
579
|
reason = library_pricing.download_reason(
|
|
574
|
-
lib.facts, priced, library_pricing.base_free(lib.base_dir)
|
|
580
|
+
lib.facts, priced, library_pricing.base_free(lib.base_dir), download_bytes
|
|
575
581
|
)
|
|
576
582
|
if reason is not None:
|
|
577
583
|
code = reason["code"]
|
|
@@ -593,6 +599,8 @@ def _refuse_download(lib: library_status.Library, model: Model) -> library_prici
|
|
|
593
599
|
elif code == "GPU_UNSUPPORTED":
|
|
594
600
|
vendor = reason.get("gpu_vendor") or "unknown"
|
|
595
601
|
detail = f"{model.id} requires an NVIDIA or Apple Silicon GPU (detected: {vendor})"
|
|
602
|
+
elif code == "DISK_INSUFFICIENT":
|
|
603
|
+
detail = f"{model.id} needs more free disk space than this computer has"
|
|
596
604
|
else:
|
|
597
605
|
detail = f"{model.id} cannot be downloaded here"
|
|
598
606
|
error = LibraryError(code, detail)
|
|
@@ -658,6 +666,21 @@ def _fetch_and_commit(
|
|
|
658
666
|
runtime_index.refresh()
|
|
659
667
|
|
|
660
668
|
|
|
669
|
+
def _plan_to_download(
|
|
670
|
+
lib: library_status.Library, model: Model, priced: library_pricing.Priced, base_dir: str
|
|
671
|
+
) -> tuple[Plan, str]:
|
|
672
|
+
"""The plan and pool a download writes: the priced one, else a download-only plan (fit none)."""
|
|
673
|
+
if priced.plan is not None:
|
|
674
|
+
return priced.plan, priced.pool
|
|
675
|
+
pool = priced.pool or priced.download_pool
|
|
676
|
+
return (
|
|
677
|
+
library_pricing.download_plan(
|
|
678
|
+
lib.facts, model, pool, base_dir, lib.catalog, priced.need_bytes
|
|
679
|
+
),
|
|
680
|
+
pool,
|
|
681
|
+
)
|
|
682
|
+
|
|
683
|
+
|
|
661
684
|
def download(
|
|
662
685
|
model_id: str,
|
|
663
686
|
base_dir: str,
|
|
@@ -665,12 +688,17 @@ def download(
|
|
|
665
688
|
autoload: bool,
|
|
666
689
|
load: Callable[[str, str, list[str]], Row],
|
|
667
690
|
) -> Row:
|
|
668
|
-
"""Fetch the model into ``base_dir``, record it, then load it when its pool has room.
|
|
691
|
+
"""Fetch the model into ``base_dir``, record it, then load it when its pool has room.
|
|
692
|
+
|
|
693
|
+
A model this computer cannot load now (memory or VRAM short) still downloads: the entry is
|
|
694
|
+
recorded ``idle`` with the standby note ``NO_ROOM_TO_LOAD`` and no load attempt, and
|
|
695
|
+
``library load`` prices live memory again when the user asks for it.
|
|
696
|
+
"""
|
|
669
697
|
lib = library_status.Library.read(probe(), base_dir)
|
|
670
698
|
model = library_pricing.find(model_id, lib.catalog)
|
|
671
699
|
priced = _refuse_download(lib, model)
|
|
672
|
-
|
|
673
|
-
|
|
700
|
+
plan, pool = _plan_to_download(lib, model, priced, base_dir)
|
|
701
|
+
files = dests(plan)
|
|
674
702
|
memory = memory_pools.memory_bytes(plan)
|
|
675
703
|
cancel_on_sigterm()
|
|
676
704
|
with library_state.locked(): # validated again with the claim, as one step
|
|
@@ -679,12 +707,12 @@ def download(
|
|
|
679
707
|
raise LibraryError("INVALID_STATE", f"{model.id} is already downloaded")
|
|
680
708
|
others = claimed_elsewhere(model.id)
|
|
681
709
|
mine = [f for f in files if os.path.realpath(f) not in others]
|
|
682
|
-
job = library_state.acquire("download", model.id,
|
|
710
|
+
job = library_state.acquire("download", model.id, pool, memory, mine, files)
|
|
683
711
|
claims = [job]
|
|
684
712
|
with library_state.held(claims):
|
|
685
713
|
handle = library_state.JobHandle(job)
|
|
686
714
|
try:
|
|
687
|
-
_fetch_and_commit(model, plan, handle,
|
|
715
|
+
_fetch_and_commit(model, plan, handle, pool, memory, base_dir, mine, files)
|
|
688
716
|
except KeyboardInterrupt: # anywhere before the commit (a cancel's SIGTERM may land
|
|
689
717
|
# after the transfer, while waiting to commit): what it claimed, unless the record
|
|
690
718
|
# took the files or something else needs them now
|
|
@@ -714,25 +742,33 @@ def download(
|
|
|
714
742
|
if library_state.load(model.id) is None and library_state.current(job):
|
|
715
743
|
_give_up(model.id, job, handle)
|
|
716
744
|
raise
|
|
717
|
-
if not autoload:
|
|
745
|
+
if not autoload or priced.fit == "none":
|
|
746
|
+
if priced.fit == "none":
|
|
747
|
+
_note_no_room(model.id)
|
|
748
|
+
runtime_index.refresh()
|
|
718
749
|
return library_status.model_row(library_status.Library.read(probe(), base_dir), model.id)
|
|
719
750
|
try:
|
|
720
751
|
return load(model.id, base_dir, [])
|
|
721
752
|
except LibraryError as exc:
|
|
722
753
|
if exc.code != "LOAD_NO_ROOM":
|
|
723
754
|
raise
|
|
755
|
+
_note_no_room(model.id)
|
|
756
|
+
runtime_index.refresh()
|
|
757
|
+
return library_status.model_row(library_status.Library.read(probe(), base_dir), model.id)
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
def _note_no_room(model_id: str) -> None:
|
|
761
|
+
"""Mark a downloaded entry that cannot load now with the standby note."""
|
|
724
762
|
with library_state.locked(): # a load or remove admitted since then owns the record now:
|
|
725
763
|
# this note must never put a record it changed back (loaded to idle, removed to present)
|
|
726
|
-
record_ = library_state.load(
|
|
764
|
+
record_ = library_state.load(model_id)
|
|
727
765
|
if (
|
|
728
766
|
record_ is not None
|
|
729
767
|
and record_["state"] == "idle"
|
|
730
|
-
and library_state.read_job(
|
|
768
|
+
and library_state.read_job(model_id) is None
|
|
731
769
|
):
|
|
732
770
|
record_["note"] = {"code": NO_ROOM_TO_LOAD}
|
|
733
771
|
library_state.save(record_)
|
|
734
|
-
runtime_index.refresh()
|
|
735
|
-
return library_status.model_row(library_status.Library.read(probe(), base_dir), model.id)
|
|
736
772
|
|
|
737
773
|
|
|
738
774
|
def cancel(model_id: str, base_dir: str) -> Row:
|
|
@@ -291,7 +291,9 @@ class _Availability(TypedDict):
|
|
|
291
291
|
|
|
292
292
|
|
|
293
293
|
class Availability(_Availability, total=False):
|
|
294
|
-
|
|
294
|
+
# Why the model cannot be downloaded, or, on a downloadable row whose fit is "none", why it
|
|
295
|
+
# cannot load now (MEMORY_INSUFFICIENT with the VRAM/RAM shortfall).
|
|
296
|
+
reason: Reason
|
|
295
297
|
|
|
296
298
|
|
|
297
299
|
class _Download(TypedDict):
|