@simplexai/localmodels-darwin-x64 0.1.0-dev.64 → 0.1.0-dev.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bootstrap.identity +1 -1
- package/bootstrap.sha256 +125 -121
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/__main__.py +2 -2
- package/modules/localmodels/approval.py +5 -3
- package/modules/localmodels/auth_proxy.py +34 -2
- package/modules/localmodels/bifrost_checks.py +2 -1
- package/modules/localmodels/catalog.json +504 -18
- package/modules/localmodels/catalog.py +2 -1
- package/modules/localmodels/catalog_recipes.py +3 -0
- package/modules/localmodels/component.py +1 -1
- package/modules/localmodels/context_policy.py +1 -1
- package/modules/localmodels/custom_hub.py +54 -6
- package/modules/localmodels/custom_probe.py +33 -5
- package/modules/localmodels/debug_stub_server.py +34 -1
- package/modules/localmodels/deploy.py +45 -285
- package/modules/localmodels/deployment_lifecycle.py +167 -0
- package/modules/localmodels/download-mirrors.json +43 -3
- package/modules/localmodels/draft_spec.py +43 -1
- package/modules/localmodels/engine_adapters/__init__.py +4 -2
- package/modules/localmodels/engine_adapters/auxiliary.py +4 -1
- package/modules/localmodels/engine_adapters/llama_cpp.py +539 -0
- package/modules/localmodels/engines-b11583.json +9 -5
- package/modules/localmodels/engines-b12757-mix-ef2df21.json +85 -1
- package/modules/localmodels/engines.json +9 -5
- package/modules/localmodels/gateway.py +124 -13
- package/modules/localmodels/gateway_accept.py +1 -6
- package/modules/localmodels/gateway_cli.py +13 -24
- package/modules/localmodels/gateway_ops.py +185 -0
- package/modules/localmodels/gateway_server.py +3 -2
- package/modules/localmodels/harness.py +13 -16
- package/modules/localmodels/harness_core.py +4 -9
- package/modules/localmodels/harness_gateway.py +18 -6
- package/modules/localmodels/harness_probe.py +64 -3
- package/modules/localmodels/hosts.py +22 -34
- package/modules/localmodels/library_convert.py +3 -3
- package/modules/localmodels/library_custom.py +15 -13
- package/modules/localmodels/library_elastic.py +27 -13
- package/modules/localmodels/library_jobs.py +151 -28
- package/modules/localmodels/library_model.py +22 -2
- package/modules/localmodels/library_order.py +5 -4
- package/modules/localmodels/library_poly.py +2 -2
- package/modules/localmodels/library_pricing.py +34 -318
- package/modules/localmodels/library_serve.py +20 -12
- package/modules/localmodels/library_smoke.py +8 -1
- package/modules/localmodels/library_state.py +12 -0
- package/modules/localmodels/library_status.py +26 -16
- package/modules/localmodels/llm_rank.py +1 -1
- package/modules/localmodels/magpie_legacy.py +160 -0
- package/modules/localmodels/magpie_setup.py +6 -1
- package/modules/localmodels/pi_profile.py +3 -7
- package/modules/localmodels/plan_envelope.py +1 -1
- package/modules/localmodels/{budget.py → planning/budget.py} +56 -33
- package/modules/localmodels/{stack_llm_ram.py → planning/llm_ram.py} +11 -1
- package/modules/localmodels/planning/memory_pools.py +403 -0
- package/modules/localmodels/recommend.py +1 -1
- package/modules/localmodels/recommend_cli.py +3 -4
- package/modules/localmodels/remote_ops_mirrors.py +55 -19
- package/modules/localmodels/residency_host.py +1 -1
- package/modules/localmodels/service_control.py +4 -4
- package/modules/localmodels/service_deployment.py +4 -4
- package/modules/localmodels/service_wiring.py +17 -19
- package/modules/localmodels/setup_inspection.py +29 -2
- package/modules/localmodels/setup_inspection_harness.py +5 -2
- package/modules/localmodels/setup_text.py +6 -0
- package/modules/localmodels/setup_upgrade.py +3 -12
- package/modules/localmodels/slot_cache.py +1 -3
- package/modules/localmodels/speech_admission.py +17 -5
- package/modules/localmodels/speech_catalog.py +5 -1
- package/modules/localmodels/speech_cli.py +5 -5
- package/modules/localmodels/speech_jobs.py +103 -20
- package/modules/localmodels/speech_model.py +2 -0
- package/modules/localmodels/speech_server.py +132 -9
- package/modules/localmodels/speech_state.py +11 -0
- package/modules/localmodels/speech_worker_sensevoice.py +215 -19
- package/modules/localmodels/speech_workers.py +79 -7
- package/modules/localmodels/stack.py +15 -6
- package/modules/localmodels/stack_auto.py +10 -4
- package/modules/localmodels/stack_aux_gpu.py +1 -1
- package/modules/localmodels/stack_binding.py +24 -143
- package/modules/localmodels/stack_capacity.py +4 -4
- package/modules/localmodels/stack_card.py +1 -1
- package/modules/localmodels/stack_cleanup.py +3 -3
- package/modules/localmodels/stack_cli.py +3 -0
- package/modules/localmodels/stack_client_settings.py +9 -2
- package/modules/localmodels/stack_compose.py +42 -9
- package/modules/localmodels/stack_console.py +2 -2
- package/modules/localmodels/stack_debug.py +1 -1
- package/modules/localmodels/stack_decision.py +1 -1
- package/modules/localmodels/stack_doctor.py +10 -7
- package/modules/localmodels/stack_down.py +3 -3
- package/modules/localmodels/stack_gpu_memory.py +1 -1
- package/modules/localmodels/stack_hardware.py +3 -3
- package/modules/localmodels/stack_hardware_text.py +1 -1
- package/modules/localmodels/stack_lifecycle.py +7 -7
- package/modules/localmodels/stack_memory.py +1 -1
- package/modules/localmodels/stack_mlx.py +1 -1
- package/modules/localmodels/stack_plan.py +18 -13
- package/modules/localmodels/stack_ports.py +60 -29
- package/modules/localmodels/stack_preflight.py +4 -3
- package/modules/localmodels/stack_remove.py +13 -6
- package/modules/localmodels/stack_review.py +3 -5
- package/modules/localmodels/stack_rollback.py +1 -1
- package/modules/localmodels/stack_route.py +5 -4
- package/modules/localmodels/stack_suite.py +17 -4
- package/modules/localmodels/stack_summary.py +1 -1
- package/modules/localmodels/stack_try.py +8 -13
- package/modules/localmodels/stack_up.py +10 -9
- package/modules/localmodels/stack_update.py +2 -1
- package/modules/localmodels/stack_verify.py +4 -30
- package/modules/localmodels/stack_view.py +6 -4
- package/modules/localmodels/stack_view_apply.py +2 -2
- package/modules/localmodels/stack_view_text.py +2 -6
- package/modules/localmodels/stack_view_tick.py +2 -2
- package/modules/localmodels/stack_view_words.py +5 -2
- package/modules/localmodels/stack_warm.py +1 -1
- package/modules/localmodels/suite.py +1 -1
- package/modules/localmodels/tui_views.py +11 -5
- package/modules/{simplex_localmodels-0.1.0.dev64.dist-info → simplex_localmodels-0.1.0.dev66.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev64.dist-info → simplex_localmodels-0.1.0.dev66.dist-info}/RECORD +122 -118
- package/modules/{simplex_localmodels-0.1.0.dev64.dist-info → simplex_localmodels-0.1.0.dev66.dist-info}/licenses/NOTICE +3 -0
- package/package.json +1 -1
- package/tool.json +1 -1
- package/modules/localmodels/library_vram.py +0 -123
- /package/modules/{simplex_localmodels-0.1.0.dev64.dist-info → simplex_localmodels-0.1.0.dev66.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev64.dist-info → simplex_localmodels-0.1.0.dev66.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev64.dist-info → simplex_localmodels-0.1.0.dev66.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -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 live
|
|
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 (evidence/2026-10-25-vram-stack-probe-r3-lab12021); 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",
|
|
@@ -81,17 +81,21 @@
|
|
|
81
81
|
"min_cuda": "12.8",
|
|
82
82
|
"min_glibc": "2.34",
|
|
83
83
|
"variant": "ubuntu22.04-r3",
|
|
84
|
-
"provenance": "
|
|
84
|
+
"provenance": "https://d2ikbbcl3j6jz9.cloudfront.net/cli/localmodels/engines/llama.cpp/b11583-cu12.8-ubuntu22.04-r3/llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.provenance.json",
|
|
85
85
|
"assets": [
|
|
86
86
|
{
|
|
87
87
|
"name": "llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
88
|
-
"url": "
|
|
88
|
+
"url": "https://d2ikbbcl3j6jz9.cloudfront.net/cli/localmodels/engines/llama.cpp/b11583-cu12.8-ubuntu22.04-r3/llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
89
89
|
"sha256": "4769908025bb3d1dfc64fbcde373931542e5baed696a282ddec3b84980e789d3",
|
|
90
|
-
"size_bytes": 173682824
|
|
90
|
+
"size_bytes": 173682824,
|
|
91
|
+
"npm_copy": {
|
|
92
|
+
"package": "@simplexai/engine-llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64",
|
|
93
|
+
"version": "0.0.0-sha256-4769908025bb3d1d"
|
|
94
|
+
}
|
|
91
95
|
},
|
|
92
96
|
{
|
|
93
97
|
"name": "cudart-llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
94
|
-
"url": "
|
|
98
|
+
"url": "https://d2ikbbcl3j6jz9.cloudfront.net/cli/localmodels/engines/llama.cpp/b11583-cu12.8-ubuntu22.04-r3/cudart-llama-b11583-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
95
99
|
"sha256": "474f6d382f7e707f94f83f542d6bfcd24c3c04ea1ab12461f34bb7e7305936cd",
|
|
96
100
|
"size_bytes": 593656098
|
|
97
101
|
}
|
|
@@ -3,8 +3,53 @@
|
|
|
3
3
|
"tag": "b12757-mix-ef2df21",
|
|
4
4
|
"commit": "9b3ec1144de6b33c2f1589e81ae49f51b310a9ba",
|
|
5
5
|
"source": "https://github.com/unslothai/llama.cpp/releases/tag/b12757-mix-ef2df21",
|
|
6
|
-
"note": "
|
|
6
|
+
"note": "Release asset digests from the GitHub release API, llama-prebuilt-sha256.json, and llama-prebuilt-manifest.json (unslothai/llama.cpp b12757-mix-ef2df21, upstream llama.cpp b12757 + Unsloth looped Inkling 2 / inkling2_loop & DSpark patches, published 2026-11-26). Supports both standard llama.cpp GGUFs and mainline inkling2_loop / earlier inkling2 architectures (including ISTA-DASLab Inkling-2-Mini-GSQ-RCO-GGUF, which needs llama.cpp >= b12611). Linux x64 CUDA 12 portable (CUDA 12.8, SM 70-120, Ubuntu 22.04) and Linux x64 CPU archives unpack flat with ./llama-server and import up to GLIBC_2.34 plus libgomp.so.1; Linux and Windows CUDA 12 builds pair with the pinned CUDA 12 cudart companion archives from ggml-org/llama.cpp b11370 (matching engines-b12588-mix-c0c3de8.json). Apple Silicon Metal tarball includes late-Nov Metal kernel speedups (+27.3% decode, +22-32% prefill, -711 MiB RSS on Inkling 2 Mini vs b12588-mix-c0c3de8) and unpacks with a single top directory llama-b12757-mix-ef2df21/ stripped by remote_ops.unpack.",
|
|
7
7
|
"builds": [
|
|
8
|
+
{
|
|
9
|
+
"platform": "linux",
|
|
10
|
+
"arch": "x64",
|
|
11
|
+
"backend": "cuda",
|
|
12
|
+
"min_cuda": "12.8",
|
|
13
|
+
"min_glibc": "2.34",
|
|
14
|
+
"host_libraries": {
|
|
15
|
+
"libgomp.so.1": "libgomp1"
|
|
16
|
+
},
|
|
17
|
+
"assets": [
|
|
18
|
+
{
|
|
19
|
+
"name": "app-b12757-mix-ef2df21-linux-x64-cuda12-portable.tar.gz",
|
|
20
|
+
"url": "https://github.com/unslothai/llama.cpp/releases/download/b12757-mix-ef2df21/app-b12757-mix-ef2df21-linux-x64-cuda12-portable.tar.gz",
|
|
21
|
+
"sha256": "2ab10b2cf84db075c8e68b7aa53241c089752dbb8b20ff58caf7c7d5e27bbb47",
|
|
22
|
+
"size_bytes": 516171497
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "cudart-llama-b11370-bin-ubuntu-cuda-12.8-x64.tar.gz",
|
|
26
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/cudart-llama-b11370-bin-ubuntu-cuda-12.8-x64.tar.gz",
|
|
27
|
+
"sha256": "7807b4fc01958fc11db9894b2ab791e664b4da999017e70f7b5a7147f6c770e3",
|
|
28
|
+
"size_bytes": 594375807
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"platform": "linux",
|
|
34
|
+
"arch": "x64",
|
|
35
|
+
"backend": "cpu",
|
|
36
|
+
"min_glibc": "2.34",
|
|
37
|
+
"host_libraries": {
|
|
38
|
+
"libgomp.so.1": "libgomp1"
|
|
39
|
+
},
|
|
40
|
+
"assets": [
|
|
41
|
+
{
|
|
42
|
+
"name": "app-b12757-mix-ef2df21-linux-x64-cpu.tar.gz",
|
|
43
|
+
"url": "https://github.com/unslothai/llama.cpp/releases/download/b12757-mix-ef2df21/app-b12757-mix-ef2df21-linux-x64-cpu.tar.gz",
|
|
44
|
+
"sha256": "eac03cddfa2c9b4736410afdb3ff338c38401009df2cdccccaac949199c873a7",
|
|
45
|
+
"size_bytes": 19437388,
|
|
46
|
+
"npm_copy": {
|
|
47
|
+
"package": "@simplexai/engine-app-b12757-mix-ef2df21-linux-x64-cpu",
|
|
48
|
+
"version": "0.0.0-sha256-eac03cddfa2c9b47"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
8
53
|
{
|
|
9
54
|
"platform": "darwin",
|
|
10
55
|
"arch": "arm64",
|
|
@@ -21,6 +66,45 @@
|
|
|
21
66
|
}
|
|
22
67
|
}
|
|
23
68
|
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"platform": "win32",
|
|
72
|
+
"arch": "x64",
|
|
73
|
+
"backend": "cuda",
|
|
74
|
+
"min_cuda": "12.8",
|
|
75
|
+
"binary": "llama-server.exe",
|
|
76
|
+
"assets": [
|
|
77
|
+
{
|
|
78
|
+
"name": "app-b12757-mix-ef2df21-windows-x64-cuda12-portable.zip",
|
|
79
|
+
"url": "https://github.com/unslothai/llama.cpp/releases/download/b12757-mix-ef2df21/app-b12757-mix-ef2df21-windows-x64-cuda12-portable.zip",
|
|
80
|
+
"sha256": "87e0b17b806f4779aba800fbed4555ad392afc2d8c88efeff4478aa1267799be",
|
|
81
|
+
"size_bytes": 511491314
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "cudart-llama-bin-win-cuda-12.4-x64.zip",
|
|
85
|
+
"url": "https://github.com/ggml-org/llama.cpp/releases/download/b11370/cudart-llama-bin-win-cuda-12.4-x64.zip",
|
|
86
|
+
"sha256": "8c79a9b226de4b3cacfd1f83d24f962d0773be79f1e7b75c6af4ded7e32ae1d6",
|
|
87
|
+
"size_bytes": 391443627
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"platform": "win32",
|
|
93
|
+
"arch": "x64",
|
|
94
|
+
"backend": "cpu",
|
|
95
|
+
"binary": "llama-server.exe",
|
|
96
|
+
"assets": [
|
|
97
|
+
{
|
|
98
|
+
"name": "app-b12757-mix-ef2df21-windows-x64-cpu.zip",
|
|
99
|
+
"url": "https://github.com/unslothai/llama.cpp/releases/download/b12757-mix-ef2df21/app-b12757-mix-ef2df21-windows-x64-cpu.zip",
|
|
100
|
+
"sha256": "7a99d62feafadb6d262c2b8f5d09c4c50e06a178e6cca5f85d5e9d45818e666a",
|
|
101
|
+
"size_bytes": 21670230,
|
|
102
|
+
"npm_copy": {
|
|
103
|
+
"package": "@simplexai/engine-app-b12757-mix-ef2df21-windows-x64-cpu",
|
|
104
|
+
"version": "0.0.0-sha256-7a99d62feafadb6d"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
]
|
|
24
108
|
}
|
|
25
109
|
]
|
|
26
110
|
}
|
|
@@ -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 live
|
|
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 (evidence/2026-10-25-vram-stack-probe-r3-lab12021); 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",
|
|
@@ -40,17 +40,21 @@
|
|
|
40
40
|
"min_cuda": "12.8",
|
|
41
41
|
"min_glibc": "2.34",
|
|
42
42
|
"variant": "ubuntu22.04-r3",
|
|
43
|
-
"provenance": "
|
|
43
|
+
"provenance": "https://d2ikbbcl3j6jz9.cloudfront.net/cli/localmodels/engines/llama.cpp/b11370-cu12.8-ubuntu22.04-r3/llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.provenance.json",
|
|
44
44
|
"assets": [
|
|
45
45
|
{
|
|
46
46
|
"name": "llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
47
|
-
"url": "
|
|
47
|
+
"url": "https://d2ikbbcl3j6jz9.cloudfront.net/cli/localmodels/engines/llama.cpp/b11370-cu12.8-ubuntu22.04-r3/llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
48
48
|
"sha256": "875cf9ee9e29afc60187312363ea721db51bb06138aef7c1ca63fc3d956b25b1",
|
|
49
|
-
"size_bytes": 173034114
|
|
49
|
+
"size_bytes": 173034114,
|
|
50
|
+
"npm_copy": {
|
|
51
|
+
"package": "@simplexai/engine-llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64",
|
|
52
|
+
"version": "0.0.0-sha256-875cf9ee9e29afc6"
|
|
53
|
+
}
|
|
50
54
|
},
|
|
51
55
|
{
|
|
52
56
|
"name": "cudart-llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
53
|
-
"url": "
|
|
57
|
+
"url": "https://d2ikbbcl3j6jz9.cloudfront.net/cli/localmodels/engines/llama.cpp/b11370-cu12.8-ubuntu22.04-r3/cudart-llama-b11370-bin-ubuntu22.04-r3-cuda-12.8-x64.tar.gz",
|
|
54
58
|
"sha256": "441680ed89b157f7e0bd7285771cc0d40fd61ab1110bf4c67a705dd9417ab624",
|
|
55
59
|
"size_bytes": 593656099
|
|
56
60
|
}
|
|
@@ -19,6 +19,7 @@ from pathlib import Path
|
|
|
19
19
|
from typing import Literal, TypedDict
|
|
20
20
|
|
|
21
21
|
from localmodels import (
|
|
22
|
+
bifrost_checks,
|
|
22
23
|
bifrost_clients,
|
|
23
24
|
gateway_accept,
|
|
24
25
|
gateway_admin,
|
|
@@ -30,6 +31,7 @@ from localmodels import (
|
|
|
30
31
|
harness_gateway,
|
|
31
32
|
harness_probe,
|
|
32
33
|
hosts,
|
|
34
|
+
magpie_legacy,
|
|
33
35
|
pi_profile,
|
|
34
36
|
process_identity,
|
|
35
37
|
runtime_io,
|
|
@@ -91,14 +93,12 @@ def require_magpie(out: subprocess.CompletedProcess[str], what: str) -> None:
|
|
|
91
93
|
raise HarnessError(f"magpie {what} failed (exit {out.returncode})")
|
|
92
94
|
|
|
93
95
|
|
|
94
|
-
def _bifrost(plan: ToolPlan) -> bool:
|
|
95
|
-
return harness_core.gateway_kind(plan.get("gateway")) == "bifrost" # type: ignore[arg-type]
|
|
96
|
-
|
|
97
|
-
|
|
98
96
|
def ensure_gateway(plan: ToolPlan) -> str:
|
|
99
97
|
"""Reuse a gateway that answers; otherwise start the one the plan names."""
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
return _gateway(plan).ensure(plan)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def _ensure_magpie(plan: ToolPlan) -> str:
|
|
102
102
|
action = next(t for t in plan["tools"] if t["tool"] == "gateway")
|
|
103
103
|
if run_magpie(plan, "healthcheck", timeout=20).returncode == 0:
|
|
104
104
|
return "reused"
|
|
@@ -112,10 +112,29 @@ def ensure_gateway(plan: ToolPlan) -> str:
|
|
|
112
112
|
return "started"
|
|
113
113
|
|
|
114
114
|
|
|
115
|
+
def answers(plan: HarnessPlan) -> bool:
|
|
116
|
+
"""The plan's gateway is the one this tool runs there, and it answers its health check."""
|
|
117
|
+
return _gateway(plan).answers(plan)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def _answers_magpie(plan: HarnessPlan) -> bool:
|
|
121
|
+
try:
|
|
122
|
+
env = harness_gateway.checked_gateway_environment(plan)
|
|
123
|
+
except HarnessError:
|
|
124
|
+
return False
|
|
125
|
+
magpie = tool_path(plan, "magpie")
|
|
126
|
+
return harness_core.run_tool([magpie, "healthcheck"], timeout=20, env=env).returncode == 0
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def wired_providers(plan: HarnessPlan, doc: hosts.Owned) -> set[str]:
|
|
130
|
+
"""The provider ids the plan's gateway holds now: its Bifrost config, or the ones this tool
|
|
131
|
+
added to Magpie (the owned manifest)."""
|
|
132
|
+
return _gateway(plan).wired_providers(doc)
|
|
133
|
+
|
|
134
|
+
|
|
115
135
|
def revive(plan: HarnessPlan, started: str | None) -> str:
|
|
116
|
-
if
|
|
117
|
-
|
|
118
|
-
return _revive_magpie(plan, started)
|
|
136
|
+
"""``stack up``: start the plan's gateway again if it does not answer."""
|
|
137
|
+
return _gateway(plan).revive(plan, started)
|
|
119
138
|
|
|
120
139
|
|
|
121
140
|
def _revive_magpie(plan: HarnessPlan, started: str | None) -> str:
|
|
@@ -427,10 +446,17 @@ def wire(
|
|
|
427
446
|
point pi at it. Idempotent: providers are updated by id, and adding a group by its name
|
|
428
447
|
replaces it with its rules. A re-sync (``select_pi=False``) leaves the gateway keys alone, so a
|
|
429
448
|
key the user removed stays removed. A Bifrost plan goes to ``gateway_bifrost.wire``."""
|
|
449
|
+
return _gateway(plan).wire(plan, llm_key, decision_key, aux, select_pi)
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
def _wire_magpie(
|
|
453
|
+
plan: HarnessPlan,
|
|
454
|
+
llm_key: str,
|
|
455
|
+
decision_key: str | None,
|
|
456
|
+
aux: list[AuxEndpoint],
|
|
457
|
+
select_pi: bool,
|
|
458
|
+
) -> list[str]:
|
|
430
459
|
tools_dir = plan["tools_dir"]
|
|
431
|
-
if _bifrost(plan):
|
|
432
|
-
done = leave_magpie(tools_dir) if select_pi else []
|
|
433
|
-
return done + gateway_bifrost.wire(plan, llm_key, decision_key, aux, select_pi=select_pi)
|
|
434
460
|
done = leave(tools_dir) if select_pi else []
|
|
435
461
|
if select_pi and (key := gateway_keys.ensure(plan)):
|
|
436
462
|
done.append(key)
|
|
@@ -692,13 +718,18 @@ def accept(
|
|
|
692
718
|
gateway (the decision model must be consulted), one embedding, rerank or transcription request
|
|
693
719
|
per wired auxiliary (Magpie's usage log must gain its row), and one pi prompt with the stack's model.
|
|
694
720
|
A Bifrost plan is accepted by ``bifrost_checks.accept``."""
|
|
721
|
+
return _gateway(plan).accept(plan, decision_key, aux, timeout)
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
def _accept_magpie(
|
|
725
|
+
plan: HarnessPlan, decision_key: str | None, aux: list[AuxEndpoint], timeout: float
|
|
726
|
+
) -> list[Check]:
|
|
695
727
|
return gateway_accept.accept(
|
|
696
728
|
plan,
|
|
697
729
|
decision_key,
|
|
698
730
|
aux,
|
|
699
731
|
timeout,
|
|
700
732
|
aux_providers=AUX_PROVIDERS,
|
|
701
|
-
is_bifrost=_bifrost(plan),
|
|
702
733
|
post_fn=_post,
|
|
703
734
|
magpie=run_magpie,
|
|
704
735
|
run_tool=run_tool,
|
|
@@ -706,3 +737,83 @@ def accept(
|
|
|
706
737
|
calls_fn=logged_calls,
|
|
707
738
|
after_fn=logged_after,
|
|
708
739
|
)
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
class _BifrostGateway:
|
|
743
|
+
"""This tool's Bifrost, which ``gateway_bifrost`` runs and ``bifrost_checks`` accepts."""
|
|
744
|
+
|
|
745
|
+
def ensure(self, plan: ToolPlan) -> str:
|
|
746
|
+
return gateway_bifrost.ensure(plan)
|
|
747
|
+
|
|
748
|
+
def revive(self, plan: HarnessPlan, started: str | None) -> str:
|
|
749
|
+
return gateway_bifrost.revive(plan)
|
|
750
|
+
|
|
751
|
+
def answers(self, plan: HarnessPlan) -> bool:
|
|
752
|
+
try:
|
|
753
|
+
record = gateway_bifrost.require_target(plan)
|
|
754
|
+
except HarnessError:
|
|
755
|
+
return False
|
|
756
|
+
return bool(
|
|
757
|
+
record
|
|
758
|
+
and gateway_bifrost.owned_listener(record)
|
|
759
|
+
and gateway_bifrost.healthy(plan["gateway"]["addr"])
|
|
760
|
+
)
|
|
761
|
+
|
|
762
|
+
def wired_providers(self, doc: hosts.Owned) -> set[str]:
|
|
763
|
+
return bifrost_checks.wired_providers(doc)
|
|
764
|
+
|
|
765
|
+
def wire(
|
|
766
|
+
self,
|
|
767
|
+
plan: HarnessPlan,
|
|
768
|
+
llm_key: str,
|
|
769
|
+
decision_key: str | None,
|
|
770
|
+
aux: list[AuxEndpoint],
|
|
771
|
+
select_pi: bool,
|
|
772
|
+
) -> list[str]:
|
|
773
|
+
done = leave_magpie(plan["tools_dir"]) if select_pi else []
|
|
774
|
+
return done + gateway_bifrost.wire(plan, llm_key, decision_key, aux, select_pi=select_pi)
|
|
775
|
+
|
|
776
|
+
def accept(
|
|
777
|
+
self, plan: HarnessPlan, decision_key: str | None, aux: list[AuxEndpoint], timeout: float
|
|
778
|
+
) -> list[Check]:
|
|
779
|
+
return bifrost_checks.accept(plan, decision_key, aux, timeout)
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
class _MagpieGateway(_BifrostGateway):
|
|
783
|
+
"""Legacy Magpie, which this module runs through the ``magpie`` CLI."""
|
|
784
|
+
|
|
785
|
+
def ensure(self, plan: ToolPlan) -> str:
|
|
786
|
+
return _ensure_magpie(plan)
|
|
787
|
+
|
|
788
|
+
def revive(self, plan: HarnessPlan, started: str | None) -> str:
|
|
789
|
+
return _revive_magpie(plan, started)
|
|
790
|
+
|
|
791
|
+
def answers(self, plan: HarnessPlan) -> bool:
|
|
792
|
+
return _answers_magpie(plan)
|
|
793
|
+
|
|
794
|
+
def wired_providers(self, doc: hosts.Owned) -> set[str]:
|
|
795
|
+
return set(doc["gateway"]["providers"])
|
|
796
|
+
|
|
797
|
+
def wire(
|
|
798
|
+
self,
|
|
799
|
+
plan: HarnessPlan,
|
|
800
|
+
llm_key: str,
|
|
801
|
+
decision_key: str | None,
|
|
802
|
+
aux: list[AuxEndpoint],
|
|
803
|
+
select_pi: bool,
|
|
804
|
+
) -> list[str]:
|
|
805
|
+
return _wire_magpie(plan, llm_key, decision_key, aux, select_pi)
|
|
806
|
+
|
|
807
|
+
def accept(
|
|
808
|
+
self, plan: HarnessPlan, decision_key: str | None, aux: list[AuxEndpoint], timeout: float
|
|
809
|
+
) -> list[Check]:
|
|
810
|
+
return _accept_magpie(plan, decision_key, aux, timeout)
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
_BIFROST = _BifrostGateway()
|
|
814
|
+
_MAGPIE = _MagpieGateway()
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
def _gateway(plan: ToolPlan) -> _BifrostGateway:
|
|
818
|
+
"""The implementation of the gateway the plan names: the one place this module asks."""
|
|
819
|
+
return _MAGPIE if magpie_legacy.of(plan.get("gateway")).legacy else _BIFROST # type: ignore[arg-type]
|
|
@@ -101,7 +101,6 @@ def accept(
|
|
|
101
101
|
timeout: float = 600,
|
|
102
102
|
*,
|
|
103
103
|
aux_providers: dict[str, str],
|
|
104
|
-
is_bifrost: bool,
|
|
105
104
|
post_fn: PostFn = post,
|
|
106
105
|
magpie: MagpieFn,
|
|
107
106
|
run_tool: Callable[..., subprocess.CompletedProcess[str]],
|
|
@@ -112,11 +111,7 @@ def accept(
|
|
|
112
111
|
"""Each claim needs a request: provider tests through Magpie, one routed turn through the
|
|
113
112
|
gateway (the decision model must be consulted), one embedding, rerank or transcription request
|
|
114
113
|
per wired auxiliary (Magpie's usage log must gain its row), and one pi prompt with the stack's model.
|
|
115
|
-
|
|
116
|
-
if is_bifrost:
|
|
117
|
-
from localmodels import bifrost_checks
|
|
118
|
-
|
|
119
|
-
return bifrost_checks.accept(plan, decision_key, aux, timeout)
|
|
114
|
+
Magpie only: a Bifrost plan is accepted by ``bifrost_checks.accept``."""
|
|
120
115
|
gw = plan["gateway"]
|
|
121
116
|
checks: list[Check] = []
|
|
122
117
|
|
|
@@ -26,6 +26,7 @@ from localmodels import (
|
|
|
26
26
|
gateway_server,
|
|
27
27
|
harness,
|
|
28
28
|
http_local,
|
|
29
|
+
magpie_legacy,
|
|
29
30
|
runtime_cli,
|
|
30
31
|
runtime_io,
|
|
31
32
|
)
|
|
@@ -35,11 +36,11 @@ from localmodels.gateway_server import read_state as read_state
|
|
|
35
36
|
from localmodels.gateway_server import selected_runtime as selected_runtime
|
|
36
37
|
|
|
37
38
|
|
|
38
|
-
def artifact_for(native_platform: str, kind: str =
|
|
39
|
+
def artifact_for(native_platform: str, kind: str = magpie_legacy.MAGPIE) -> dict[str, Any]:
|
|
39
40
|
platform, arch = native_platform.split("-", 1)
|
|
40
41
|
platform = "windows" if platform == "win32" else platform
|
|
41
|
-
|
|
42
|
-
tool =
|
|
42
|
+
adapter = magpie_legacy.for_kind(kind)
|
|
43
|
+
tool = harness.load_lock()[adapter.tool]
|
|
43
44
|
build = next(
|
|
44
45
|
(b for b in tool["builds"] if b["platform"] == platform and b["arch"] == arch),
|
|
45
46
|
None,
|
|
@@ -52,9 +53,7 @@ def artifact_for(native_platform: str, kind: str = "magpie") -> dict[str, Any]:
|
|
|
52
53
|
digest=build["sha256"],
|
|
53
54
|
maxBytes=build["size_bytes"],
|
|
54
55
|
format="binary",
|
|
55
|
-
executable=(
|
|
56
|
-
if kind == "magpie"
|
|
57
|
-
else "bifrost-http",
|
|
56
|
+
executable=adapter.executable(platform),
|
|
58
57
|
)
|
|
59
58
|
|
|
60
59
|
|
|
@@ -83,7 +82,7 @@ def reuse_binary(artifact: dict[str, Any], destination: Path) -> bool:
|
|
|
83
82
|
def choose_kind(
|
|
84
83
|
choice: str, runtime: str | None, row: dict[str, Any], root: Path, state: dict[str, Any]
|
|
85
84
|
) -> str:
|
|
86
|
-
if choice
|
|
85
|
+
if choice != "auto" and not magpie_legacy.known(choice):
|
|
87
86
|
raise ValueError("Unknown gateway kind")
|
|
88
87
|
if choice == "magpie":
|
|
89
88
|
return choice
|
|
@@ -132,7 +131,7 @@ def build_plan(
|
|
|
132
131
|
}
|
|
133
132
|
kind = choose_kind(gateway, runtime, row, root, state)
|
|
134
133
|
platform = runtime_cli.platform()
|
|
135
|
-
artifact = artifact_for(platform
|
|
134
|
+
artifact = artifact_for(platform, kind)
|
|
136
135
|
target = root / artifact["executable"]
|
|
137
136
|
action, download_bytes, disk_bytes = "download", artifact["size_bytes"], artifact["size_bytes"]
|
|
138
137
|
if target.exists() or target.is_symlink():
|
|
@@ -148,11 +147,7 @@ def build_plan(
|
|
|
148
147
|
runtime=runtime,
|
|
149
148
|
kind=kind,
|
|
150
149
|
platform=platform,
|
|
151
|
-
version=(
|
|
152
|
-
harness.load_lock()["bifrost"]["version"]
|
|
153
|
-
if kind == "bifrost"
|
|
154
|
-
else harness.load_lock()["magpie"]["version"]
|
|
155
|
-
),
|
|
150
|
+
version=harness.load_lock()[magpie_legacy.for_kind(kind).tool]["version"],
|
|
156
151
|
action=action,
|
|
157
152
|
artifacts=[artifact],
|
|
158
153
|
downloadBytes=download_bytes,
|
|
@@ -239,7 +234,7 @@ def _stop(root: Path) -> dict[str, Any]:
|
|
|
239
234
|
except (OSError, ValueError, urllib.error.URLError, http.client.HTTPException):
|
|
240
235
|
pass # The server may have closed between its status and stop requests.
|
|
241
236
|
if worker_idle(root):
|
|
242
|
-
if
|
|
237
|
+
if not magpie_legacy.of(state).legacy:
|
|
243
238
|
gateway_bifrost.stop_serve(root / "bifrost")
|
|
244
239
|
result = status(root)
|
|
245
240
|
if result["ready"]:
|
|
@@ -263,11 +258,7 @@ def _port() -> int:
|
|
|
263
258
|
|
|
264
259
|
|
|
265
260
|
def ensure_binary(root: Path, kind: str, event: runtime_io.Event) -> None:
|
|
266
|
-
artifact = (
|
|
267
|
-
artifact_for(runtime_cli.platform())
|
|
268
|
-
if kind == "magpie"
|
|
269
|
-
else artifact_for(runtime_cli.platform(), kind)
|
|
270
|
-
)
|
|
261
|
+
artifact = artifact_for(runtime_cli.platform(), kind)
|
|
271
262
|
binary = root / artifact["executable"]
|
|
272
263
|
if binary.exists() or binary.is_symlink():
|
|
273
264
|
runtime_io.private_permissions(binary)
|
|
@@ -278,7 +269,7 @@ def ensure_binary(root: Path, kind: str, event: runtime_io.Event) -> None:
|
|
|
278
269
|
staged = Path(temporary) / artifact["executable"]
|
|
279
270
|
if reuse_binary(artifact, staged):
|
|
280
271
|
event({"kind": "stage", "stage": f"reuse-{kind}", "state": "succeeded"})
|
|
281
|
-
elif kind
|
|
272
|
+
elif not magpie_legacy.for_kind(kind).legacy and "npm" in artifact:
|
|
282
273
|
# Beside the binary, not in the staging directory: a later ensure resumes it,
|
|
283
274
|
# and removing the gateway root removes it too.
|
|
284
275
|
tarball = root / f".{artifact['name']}.tgz" # versioned: no stale resume
|
|
@@ -296,7 +287,7 @@ def wait_ready(
|
|
|
296
287
|
event: runtime_io.Event,
|
|
297
288
|
worker: subprocess.Popen[bytes] | None = None,
|
|
298
289
|
) -> dict[str, Any]:
|
|
299
|
-
timeout =
|
|
290
|
+
timeout = magpie_legacy.for_kind(kind).health_timeout_s or gateway_bifrost.HEALTH_TIMEOUT_S
|
|
300
291
|
deadline = time.monotonic() + timeout
|
|
301
292
|
while time.monotonic() < deadline:
|
|
302
293
|
if worker is not None and worker.poll() is not None:
|
|
@@ -356,9 +347,7 @@ def ensure(
|
|
|
356
347
|
_stop(root)
|
|
357
348
|
if state.get("kind", "magpie") != kind:
|
|
358
349
|
# The previous upstream has exited; only its private config is removed.
|
|
359
|
-
config = (
|
|
360
|
-
root / "home" / ".config" / "magpie" if kind == "bifrost" else root / "bifrost"
|
|
361
|
-
)
|
|
350
|
+
config = root.joinpath(*magpie_legacy.of(state).app_config)
|
|
362
351
|
if config.exists() or config.is_symlink():
|
|
363
352
|
runtime_io.validate_runtime_root(config)
|
|
364
353
|
shutil.rmtree(config)
|