@simplexai/localmodels-linux-arm64 0.1.0-dev.110 → 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 +52 -52
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/catalog.json +482 -103
- package/modules/localmodels/catalog_recipes.py +10 -1
- package/modules/localmodels/custom_hub.py +66 -2
- package/modules/localmodels/custom_hub_http.py +18 -0
- package/modules/localmodels/deploy.py +70 -5
- package/modules/localmodels/download-mirrors.json +70 -0
- package/modules/localmodels/engine_adapters/strata_poly.py +20 -4
- package/modules/localmodels/engine_adapters/suite_plan.py +7 -0
- package/modules/localmodels/engines-strata-poly-0.2.20-poly.10.json +132 -0
- package/modules/localmodels/engines.json +96 -91
- package/modules/localmodels/engines.py +9 -2
- package/modules/localmodels/http_local.py +46 -0
- package/modules/localmodels/library_cli.py +2 -1
- package/modules/localmodels/library_custom.py +73 -0
- package/modules/localmodels/library_jobs.py +47 -23
- package/modules/localmodels/library_model.py +3 -1
- package/modules/localmodels/library_poly.py +78 -33
- package/modules/localmodels/library_presentation.py +28 -0
- package/modules/localmodels/library_pricing.py +125 -20
- package/modules/localmodels/library_serve.py +90 -27
- package/modules/localmodels/library_smoke.py +1 -1
- package/modules/localmodels/library_state.py +23 -1
- package/modules/localmodels/library_status.py +57 -56
- package/modules/localmodels/mirrors.py +217 -21
- package/modules/localmodels/npm_transport.py +46 -35
- package/modules/localmodels/plan_envelope.py +8 -1
- package/modules/localmodels/region.py +90 -23
- package/modules/localmodels/remote_ops_common.py +1 -0
- package/modules/localmodels/remote_ops_download.py +583 -126
- package/modules/localmodels/remote_ops_prepare.py +8 -2
- package/modules/localmodels/remote_ops_ranges.py +80 -44
- package/modules/localmodels/remote_ops_redirect.py +3 -1
- package/modules/localmodels/remote_ops_remove.py +4 -2
- package/modules/localmodels/runtime_index.py +3 -1
- package/modules/localmodels/stack.py +1 -6
- package/modules/localmodels/stack_suite.py +15 -2
- package/modules/localmodels/{strata-poly-serve-0.2.20-poly.9.txt → strata-poly-serve-0.2.20-poly.10.txt} +1 -1
- package/modules/localmodels/suite.py +110 -8
- 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.dev110.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev110.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/RECORD +48 -48
- package/package.json +1 -1
- package/tool.json +1 -1
- package/modules/localmodels/engines-strata-poly-0.2.20-poly.9.json +0 -132
- /package/modules/{simplex_localmodels-0.1.0.dev110.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev110.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev110.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/licenses/LICENSE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev110.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev110.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -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:
|
|
@@ -6,9 +6,14 @@ ASCII/English-only place so higher modules avoid repeating the same boilerplate.
|
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
|
+
import contextlib
|
|
9
10
|
import hashlib
|
|
11
|
+
import http.client
|
|
10
12
|
import os
|
|
13
|
+
import time
|
|
14
|
+
import urllib.error
|
|
11
15
|
import urllib.request
|
|
16
|
+
from collections.abc import Callable
|
|
12
17
|
from pathlib import Path
|
|
13
18
|
from typing import Any
|
|
14
19
|
|
|
@@ -57,3 +62,44 @@ def write_private_text(path: Path, text: str) -> None:
|
|
|
57
62
|
with os.fdopen(fd, "w", encoding="utf-8") as handle:
|
|
58
63
|
handle.write(text)
|
|
59
64
|
os.replace(temporary, path)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _is_connection_refused(exc: BaseException) -> bool:
|
|
68
|
+
if isinstance(exc, ConnectionRefusedError):
|
|
69
|
+
return True
|
|
70
|
+
return isinstance(getattr(exc, "reason", None), ConnectionRefusedError)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def probe_health(
|
|
74
|
+
url: str,
|
|
75
|
+
*,
|
|
76
|
+
timeout: float = 3.0,
|
|
77
|
+
retries: int = 3,
|
|
78
|
+
backoff_s: float = 0.5,
|
|
79
|
+
sleep: Callable[[float], None] | None = None,
|
|
80
|
+
) -> bool:
|
|
81
|
+
"""Probe a loopback ``/health`` URL with bounded retries on transient timeouts or errors.
|
|
82
|
+
|
|
83
|
+
Fails fast on ``ConnectionRefusedError`` or HTTP 4xx so dead servers do not stall callers.
|
|
84
|
+
"""
|
|
85
|
+
opener = no_proxy_opener()
|
|
86
|
+
attempts = max(1, retries)
|
|
87
|
+
pause = time.sleep if sleep is None else sleep
|
|
88
|
+
for attempt in range(attempts):
|
|
89
|
+
try:
|
|
90
|
+
with opener.open(url, timeout=timeout) as response:
|
|
91
|
+
if response.status == 200:
|
|
92
|
+
return True
|
|
93
|
+
if 400 <= response.status < 500:
|
|
94
|
+
return False
|
|
95
|
+
except urllib.error.HTTPError as exc:
|
|
96
|
+
with contextlib.suppress(Exception):
|
|
97
|
+
exc.close()
|
|
98
|
+
if 400 <= exc.code < 500:
|
|
99
|
+
return False
|
|
100
|
+
except (OSError, http.client.HTTPException) as exc:
|
|
101
|
+
if _is_connection_refused(exc):
|
|
102
|
+
return False
|
|
103
|
+
if attempt + 1 < attempts and backoff_s > 0:
|
|
104
|
+
pause(backoff_s * (attempt + 1))
|
|
105
|
+
return False
|
|
@@ -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")
|
|
@@ -30,6 +30,7 @@ from localmodels import (
|
|
|
30
30
|
library_state,
|
|
31
31
|
library_status,
|
|
32
32
|
plan_envelope,
|
|
33
|
+
region,
|
|
33
34
|
remote_ops,
|
|
34
35
|
remote_ops_download,
|
|
35
36
|
runtime_index,
|
|
@@ -358,6 +359,9 @@ def _build_download_plan(
|
|
|
358
359
|
engine_doc: dict[str, object],
|
|
359
360
|
est_memory: int,
|
|
360
361
|
n_ctx_train: int,
|
|
362
|
+
attach_mirrors: bool = True,
|
|
363
|
+
has_token: bool = False,
|
|
364
|
+
existing_mirrors: Mapping[str, Sequence[remote_ops.Source]] | None = None,
|
|
361
365
|
) -> Plan:
|
|
362
366
|
base = base_dir.rstrip("/")
|
|
363
367
|
models_dir = f"{base}/models"
|
|
@@ -375,6 +379,13 @@ def _build_download_plan(
|
|
|
375
379
|
}
|
|
376
380
|
for f in all_files
|
|
377
381
|
]
|
|
382
|
+
if attach_mirrors:
|
|
383
|
+
_attach_modelscope_mirrors(planned_files, fetched, has_token=has_token)
|
|
384
|
+
elif existing_mirrors:
|
|
385
|
+
for item in planned_files:
|
|
386
|
+
prior = existing_mirrors.get(item["path"])
|
|
387
|
+
if prior:
|
|
388
|
+
item["mirrors"] = list(prior)
|
|
378
389
|
stem = re.sub(r"\.gguf$", "", Path(weight_files[0].path).name, flags=re.IGNORECASE)
|
|
379
390
|
model_alias = gguf.model_id_from_stem(stem)
|
|
380
391
|
where = plan_envelope.deployment(
|
|
@@ -454,6 +465,62 @@ def _build_download_plan(
|
|
|
454
465
|
)
|
|
455
466
|
|
|
456
467
|
|
|
468
|
+
def _offline_download() -> bool:
|
|
469
|
+
return os.environ.get("SIMPLEX_OFFLINE", "").strip().lower() in {"1", "true", "yes"}
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
def _download_region() -> str:
|
|
473
|
+
"""Region used when a custom download plan looks for a ModelScope copy.
|
|
474
|
+
|
|
475
|
+
``fetch_repo(hub="auto")`` stays on ``readonly_region`` so search and inspect never probe
|
|
476
|
+
and never write ``region.json``. A download plan matches catalog downloads by calling
|
|
477
|
+
``current_region()`` (explicit env, a fresh cache, or a probe).
|
|
478
|
+
"""
|
|
479
|
+
return region.current_region()
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
def _explicit_hf_endpoint(fetched: custom_hub.FetchedRepo) -> bool:
|
|
483
|
+
if os.environ.get("HF_ENDPOINT", "").strip():
|
|
484
|
+
return True
|
|
485
|
+
ep = (fetched.endpoint or "").rstrip("/")
|
|
486
|
+
return bool(ep) and ep not in (region.HF_API, region.HF_MIRROR)
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
def _attach_modelscope_mirrors(
|
|
490
|
+
planned_files: list[ReusableFile],
|
|
491
|
+
fetched: custom_hub.FetchedRepo,
|
|
492
|
+
*,
|
|
493
|
+
has_token: bool = False,
|
|
494
|
+
) -> None:
|
|
495
|
+
"""In cn, mount a same-sha256 ModelScope copy of a public Hugging Face custom file.
|
|
496
|
+
|
|
497
|
+
The download still accepts bytes only when their SHA-256 matches. Offline mode, an explicit
|
|
498
|
+
HF endpoint, gated or token-authenticated repos (preventing private repo leakage to public
|
|
499
|
+
modelscope.cn and public probes under corporate HF_ENDPOINT), a non-cn region, and any
|
|
500
|
+
listing failure leave the plan unchanged.
|
|
501
|
+
"""
|
|
502
|
+
if (
|
|
503
|
+
fetched.hub != "huggingface"
|
|
504
|
+
or _offline_download()
|
|
505
|
+
or _explicit_hf_endpoint(fetched)
|
|
506
|
+
or fetched.gated
|
|
507
|
+
or has_token
|
|
508
|
+
or bool(custom_hub.resolve_token("huggingface", None, hub_explicit=True))
|
|
509
|
+
):
|
|
510
|
+
return
|
|
511
|
+
if _download_region() != "cn":
|
|
512
|
+
return
|
|
513
|
+
mirrors = custom_hub.modelscope_mirror_urls(fetched.repo_id, planned_files, timeout=2.0)
|
|
514
|
+
for item in planned_files:
|
|
515
|
+
url = mirrors.get(item["path"])
|
|
516
|
+
if not url or url == item.get("url"):
|
|
517
|
+
continue
|
|
518
|
+
existing = list(item.get("mirrors") or [])
|
|
519
|
+
if any(entry.get("url") == url for entry in existing):
|
|
520
|
+
continue
|
|
521
|
+
item["mirrors"] = [*existing, {"source": "modelscope", "url": url}]
|
|
522
|
+
|
|
523
|
+
|
|
457
524
|
def _auth_headers_for_plan(
|
|
458
525
|
plan: Plan, token: str | None, *, hub: CustomHub
|
|
459
526
|
) -> dict[str, str] | None:
|
|
@@ -650,6 +717,7 @@ def download_custom(payload: Mapping[str, object], base_dir: str) -> Row:
|
|
|
650
717
|
engine_doc=engine_doc,
|
|
651
718
|
est_memory=est_memory,
|
|
652
719
|
n_ctx_train=remote_header.n_ctx_train if remote_header is not None else 32768,
|
|
720
|
+
has_token=bool(resolved_token),
|
|
653
721
|
)
|
|
654
722
|
_check_disk_and_memory(
|
|
655
723
|
custom_model_id,
|
|
@@ -835,6 +903,9 @@ def _commit_custom_record(
|
|
|
835
903
|
sha_overrides=sha_overrides,
|
|
836
904
|
header=local_header,
|
|
837
905
|
)
|
|
906
|
+
prior_mirrors: dict[str, list[remote_ops.Source]] = {
|
|
907
|
+
f["path"]: list(f["mirrors"]) for f in plan["files"] if f.get("mirrors")
|
|
908
|
+
}
|
|
838
909
|
final_plan = _build_download_plan(
|
|
839
910
|
facts=facts,
|
|
840
911
|
base_dir=base_dir,
|
|
@@ -850,6 +921,8 @@ def _commit_custom_record(
|
|
|
850
921
|
engine_doc=engine_doc,
|
|
851
922
|
est_memory=est_memory,
|
|
852
923
|
n_ctx_train=local_header.n_ctx_train if local_header is not None else 32768,
|
|
924
|
+
attach_mirrors=False,
|
|
925
|
+
existing_mirrors=prior_mirrors,
|
|
853
926
|
)
|
|
854
927
|
selector = library_direct.pi_model(custom_model_id, str(final_plan["endpoint"]["model"]))
|
|
855
928
|
record: Record = library_state.new_record(
|