@simplexai/localmodels-linux-arm64 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.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/bootstrap.identity +1 -1
  3. package/bootstrap.sha256 +32 -32
  4. package/modules/localmodels/__init__.py +1 -1
  5. package/modules/localmodels/catalog.json +64 -40
  6. package/modules/localmodels/catalog_recipes.py +10 -1
  7. package/modules/localmodels/deploy.py +9 -4
  8. package/modules/localmodels/engine_adapters/suite_plan.py +4 -0
  9. package/modules/localmodels/engines.json +96 -91
  10. package/modules/localmodels/engines.py +9 -2
  11. package/modules/localmodels/library_cli.py +2 -1
  12. package/modules/localmodels/library_jobs.py +47 -11
  13. package/modules/localmodels/library_model.py +3 -1
  14. package/modules/localmodels/library_poly.py +75 -36
  15. package/modules/localmodels/library_pricing.py +125 -20
  16. package/modules/localmodels/library_serve.py +68 -14
  17. package/modules/localmodels/library_state.py +3 -0
  18. package/modules/localmodels/library_status.py +11 -1
  19. package/modules/localmodels/region.py +5 -9
  20. package/modules/localmodels/remote_ops_download.py +14 -5
  21. package/modules/localmodels/stack_suite.py +14 -1
  22. package/modules/localmodels/suite.py +30 -5
  23. package/modules/localmodels/web/view/i18n.js +1 -1
  24. package/modules/localmodels/web/view/view.js +11 -3
  25. package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/METADATA +1 -1
  26. package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/RECORD +28 -28
  27. package/package.json +1 -1
  28. package/tool.json +1 -1
  29. /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/WHEEL +0 -0
  30. /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/entry_points.txt +0 -0
  31. /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/licenses/LICENSE +0 -0
  32. /package/modules/{simplex_localmodels-0.1.0.dev111.dist-info → simplex_localmodels-0.1.0.dev112.dist-info}/licenses/NOTICE +0 -0
  33. /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 saved_api_key(plan: Plan) -> str | None:
432
- """Read a local deployment's pinned or existing API key without generating a new one."""
433
- deploy_dir = Path(os.path.expanduser(plan["service"]["deploy_dir"]))
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(deploy_dir / name):
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": "b11370",
4
- "commit": "bed0a856606ee4a24a164066f73d2379447033f5",
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 (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.",
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-b11370-bin-ubuntu-cuda-12.8-x64.tar.gz",
19
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-ubuntu-cuda-12.8-x64.tar.gz",
20
- "sha256": "047089347a554f06ada3d8036be8c74cba0e77add5188f31fd502303de5d272c",
21
- "size_bytes": 171364601
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-b11370-bin-ubuntu-cuda-12.8-x64.tar.gz",
25
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/cudart-llama-b11370-bin-ubuntu-cuda-12.8-x64.tar.gz",
26
- "sha256": "7807b4fc01958fc11db9894b2ab791e664b4da999017e70f7b5a7147f6c770e3",
27
- "size_bytes": 594375807
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/b11370-cu12.8-ubuntu22.04-r3/llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.provenance.json",
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-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
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
- "sha256": "875cf9ee9e29afc60187312363ea721db51bb06138aef7c1ca63fc3d956b25b1",
45
- "size_bytes": 173034114
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-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
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
- "sha256": "441680ed89b157f7e0bd7285771cc0d40fd61ab1110bf4c67a705dd9417ab624",
51
- "size_bytes": 593656099
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.4",
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-b11370-bin-ubuntu-cuda-13.4-x64.tar.gz",
66
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-ubuntu-cuda-13.4-x64.tar.gz",
67
- "sha256": "81ced34431758b1d1932cf7eb99852598c76bec1885009f4519ad4f54bb0159b",
68
- "size_bytes": 152247644
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-b11370-bin-ubuntu-cuda-13.4-x64.tar.gz",
72
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/cudart-llama-b11370-bin-ubuntu-cuda-13.4-x64.tar.gz",
73
- "sha256": "5b610baaf6ae4f86215610ecf248e4444ca1cbb50770d80350ba365a1dad1ce9",
74
- "size_bytes": 440236606
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.4",
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-b11370-bin-ubuntu-cuda-13.4-arm64.tar.gz",
90
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-ubuntu-cuda-13.4-arm64.tar.gz",
91
- "sha256": "d417ce88799fb5bca9a51b53c36585fec9d7a8e7415873424919af0cb64d33e2",
92
- "size_bytes": 147493813
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-b11370-bin-ubuntu-cuda-13.4-arm64.tar.gz",
96
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/cudart-llama-b11370-bin-ubuntu-cuda-13.4-arm64.tar.gz",
97
- "sha256": "204bbe1ec25f6927163b0a765e691f8530364af005c1e1633ef0845beb80f302",
98
- "size_bytes": 552521500
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-b11370-bin-ubuntu-vulkan-x64.tar.gz",
112
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-ubuntu-vulkan-x64.tar.gz",
113
- "sha256": "46bb8add9cf46dee199692cf7852927758d7b2ad663949d81c8c80974032a398",
114
- "size_bytes": 31577653
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-b11370-bin-ubuntu-vulkan-arm64.tar.gz",
128
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-ubuntu-vulkan-arm64.tar.gz",
129
- "sha256": "cb8ab033dd9565e0d82aa3b6c407527966661d8a1736ae083c417338025d4e9d",
130
- "size_bytes": 24820336
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-b11370-bin-ubuntu-rocm-10.0-x64.tar.gz",
144
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-ubuntu-rocm-10.0-x64.tar.gz",
145
- "sha256": "29725bca551c9275156860410fe5c550b85dfc684aeac7eaf09f175d13a565d0",
146
- "size_bytes": 243244213
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-b11370-bin-ubuntu-x64.tar.gz",
160
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-ubuntu-x64.tar.gz",
161
- "sha256": "1c86f91cb0e2bbf5bce7eae7c0ce6beb95137e41251b1dbb19839175d624d0cf",
162
- "size_bytes": 17634362
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-b11370-bin-ubuntu-arm64.tar.gz",
177
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-ubuntu-arm64.tar.gz",
178
- "sha256": "2589668b61f4b2a2baa1a860c45e3dbd75af89e3620340589929632d981d28f2",
179
- "size_bytes": 13661001
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-b11370-bin-macos-arm64.tar.gz",
190
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-macos-arm64.tar.gz",
191
- "sha256": "9d7d074ca8db0c2233af760ca2ad89182a52c909abdcbfa3b94e27fb78de9355",
192
- "size_bytes": 11894187
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-b11370-bin-macos-x64.tar.gz",
203
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-macos-x64.tar.gz",
204
- "sha256": "2bdcdc8936621840fc246198da8a7d4e87d2db58ae232c6126ee54b594be3746",
205
- "size_bytes": 11445204
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-b11370-bin-win-cuda-12.4-x64.zip",
218
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-win-cuda-12.4-x64.zip",
219
- "sha256": "7b512fc9fdf3e0e430264fabd0ab7991641d82e268cd984fee675ac77d3470a4",
220
- "size_bytes": 263457938
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/b11370/cudart-llama-bin-win-cuda-12.4-x64.zip",
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.4",
239
+ "min_cuda": "13.5",
235
240
  "binary": "llama-server.exe",
236
241
  "assets": [
237
242
  {
238
- "name": "llama-b11370-bin-win-cuda-13.4-x64.zip",
239
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-win-cuda-13.4-x64.zip",
240
- "sha256": "05a1e951d7eb3fb32a8159b6f6dc06f5e8f681154b57369d585ae4100bae4999",
241
- "size_bytes": 152876036
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.4-x64.zip",
245
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/cudart-llama-bin-win-cuda-13.4-x64.zip",
246
- "sha256": "738f8c251ac22b70c3ae6f83a10cf222725df0395246a2cf58f32bdb85fbe668",
247
- "size_bytes": 423535356
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-b11370-bin-win-cpu-x64.zip",
259
- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/llama-b11370-bin-win-cpu-x64.zip",
260
- "sha256": "e433a6b1592af1deedf001dcc1abc933e990be8dc94e5d28104c3c4406a1d35f",
261
- "size_bytes": 19333283
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
- return ENGINE_LOCK if tag is None else ENGINE_LOCK.with_name(f"engines-{tag}.json")
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
- assert priced.plan is not None
673
- plan, files = priced.plan, dests(priced.plan)
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, priced.pool, memory, mine, files)
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, priced.pool, memory, base_dir, mine, files)
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(model.id)
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(model.id) is None
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
- reason: Reason # only when not downloadable
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):