The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(pm): ship llama.cpp v0.5.0 (b11146) with Linux x64 CUDA
ethernet54e2a59bbcac
diff --git a/pm/lock.json b/pm/lock.jsonindex 6a40a170477..65ff7fe9c2e 100644--- a/pm/lock.json+++ b/pm/lock.json@@ -316,99 +316,109 @@"llamacpp-cpu": {"artifacts": {"darwin-arm64": {- "sha256": "033c845c1df9bf945ff37bb193238b40910b2244be3e1e637b2ceb5878f1a6f5",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-macos-arm64.tar.gz"+ "sha256": "1ad3f9eff80edb9dbef4259ad564d1720612ef7eea48fa4afed0e54f5f3d5711",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-macos-arm64.tar.gz"},"darwin-x64": {- "sha256": "03430a394d0a169a5e6d8f01c09f48cf58eb026af6fc95940a4a528e2e50cf38",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-macos-x64.tar.gz"+ "sha256": "305f0e3a17d2c01eb205cd0a62128357f1ec3b55329cb084d94e5ec0115d7a3b",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-macos-x64.tar.gz"},"linux-arm64": {- "sha256": "5f0e9c95d970892e43380f82ebcab960edfd20a1cd0f7abffa13b29fdb924949",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-ubuntu-arm64.tar.gz"+ "sha256": "4aeda6fe68831547e49b7fa87607383ca5352b3d72ca5f70d52ed265f58c131f",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-ubuntu-arm64.tar.gz"},"linux-x64": {- "sha256": "9abf88aea48a55d0f80edb1ee20220b186848cca0b4e919d71518cfd7ca67443",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-ubuntu-x64.tar.gz"+ "sha256": "c150306eb16b5ab696f76a8bdf810c35fd98a24e82158742e6fa28f420ff8410",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-ubuntu-x64.tar.gz"},"win32-arm64": {- "sha256": "4b6a004b076eea47c318bea35cf1db2ff2bf037738b04645646ae8d7c3159478",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-win-cpu-arm64.zip"+ "sha256": "1727d241f3bf6d27360e984e851cf013928fd655bf89f8628e70da027f377b7d",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-win-cpu-arm64.zip"},"win32-x64": {- "sha256": "917f39c076402c421224824607397af20f53625a60defc20e8dd22446bf4c5d7",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-win-cpu-x64.zip"+ "sha256": "14cf1303ca9ac3abd94816850532f9f9a69ac66fbaca3776fc6f9061c2fac1d1",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-win-cpu-x64.zip"}},- "version": "10964"+ "version": "11146"},"llamacpp-cuda": {"artifacts": {+ "linux-x64": [+ {+ "sha256": "1603d9c00a4b6eac8298c5c7868cdb080a3ac31948ab1e457441d71ce274dd7e",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-ubuntu-cuda-13.4-x64.tar.gz"+ },+ {+ "sha256": "7c2af505f8b26ecd3707ab7723fa985fee1df233b7c1d60e5e17724b536d15bb",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/cudart-llama-b11146-bin-ubuntu-cuda-13.4-x64.tar.gz"+ }+ ],"win32-arm64": [{- "sha256": "93590d8c74fb2e729b06160b524ee06ebed2aed5619b8c8fbd52a431e453831c",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-win-cuda-13.4-arm64.zip"+ "sha256": "a4060b5031a0e862e225d4a7c4aa403852ebedf598906ef8258a86cb77de8351",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-win-cuda-13.4-arm64.zip"},{"sha256": "642dcde8805b3e3165ca710a5443b3b4044b27d96bd3ee3132473988c9bcb774",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/cudart-llama-bin-win-cuda-13.4-arm64.zip"+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/cudart-llama-bin-win-cuda-13.4-arm64.zip"}],"win32-x64": [{- "sha256": "cd63ae76ad78a1540aa0f30f6c6284bab14c146d99a58f70c3f0a38cb9c62351",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-win-cuda-13.3-x64.zip"+ "sha256": "b1866c0ce76bc7bfb0c24b33e9a37e9669f1be18539b12c74ce361f81c41f047",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-win-cuda-13.4-x64.zip"},{- "sha256": "1462a050eb4c684921ba51dcc4cc488a036674c3e73e9945ee705b854808d03e",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/cudart-llama-bin-win-cuda-13.3-x64.zip"+ "sha256": "738f8c251ac22b70c3ae6f83a10cf222725df0395246a2cf58f32bdb85fbe668",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/cudart-llama-bin-win-cuda-13.4-x64.zip"}]},- "version": "10964"+ "version": "11146"},"llamacpp-hip": {"artifacts": {"linux-x64": {- "sha256": "162b9645b84fa0a354767ccb5379b1457701134dc1ff4cd8b0ecc5ccec248455",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-ubuntu-rocm-10.0-x64.tar.gz"+ "sha256": "50e79dc559a11af3ea59391d416e9a704a715ac6be94352dbba710782c5dd7d1",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-ubuntu-rocm-10.0-x64.tar.gz"},"win32-x64": {- "sha256": "1f75c2a7cc64b7d4ee30f1e5a65ebec3681e4a67be788fc7251abc898f98748e",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-win-rocm-10.0-x64.zip"+ "sha256": "5dee283ec0fd5f38f29df0929769a07266ac6047f74381c153eb54b441e4ef99",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-win-rocm-10.0-x64.zip"}},- "version": "10964"+ "version": "11146"},"llamacpp-metal": {"artifacts": {"darwin-arm64": {- "sha256": "033c845c1df9bf945ff37bb193238b40910b2244be3e1e637b2ceb5878f1a6f5",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-macos-arm64.tar.gz"+ "sha256": "1ad3f9eff80edb9dbef4259ad564d1720612ef7eea48fa4afed0e54f5f3d5711",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-macos-arm64.tar.gz"},"darwin-x64": {- "sha256": "03430a394d0a169a5e6d8f01c09f48cf58eb026af6fc95940a4a528e2e50cf38",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-macos-x64.tar.gz"+ "sha256": "305f0e3a17d2c01eb205cd0a62128357f1ec3b55329cb084d94e5ec0115d7a3b",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-macos-x64.tar.gz"}},- "version": "10964"+ "version": "11146"},"llamacpp-vulkan": {"artifacts": {"linux-arm64": {- "sha256": "f7864baa0edf5a059fb42c5efb5aceb96075aa1f41e6c3142b71ca69286cb0bb",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-ubuntu-vulkan-arm64.tar.gz"+ "sha256": "5dcebe3ecbcb43a1ed85e3284453f9edf54dcca833e1cb1f54b4022b753c1da5",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-ubuntu-vulkan-arm64.tar.gz"},"linux-x64": {- "sha256": "55d1e58e14c11eedea090bf088fdeefbfe7b4b09ee03bf6dba9834651769afcf",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-ubuntu-vulkan-x64.tar.gz"+ "sha256": "d3ce40fce7403cc93bcf5718fc46c6efb61ed9709f8e5d9f10c86bf0e30e8fb3",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-ubuntu-vulkan-x64.tar.gz"},"win32-x64": {- "sha256": "1ee3ad952f4ba71f438bd6d7bebef19e1c7af04adcaa35d08b4ddabb27d4c642",- "url": "https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-bin-win-vulkan-x64.zip"+ "sha256": "55a378aa095b466979d85075234f66d7655c7a7483222af0c006c0e55b4d7bd6",+ "url": "https://github.com/ggml-org/llama.cpp/releases/download/b11146/llama-b11146-bin-win-vulkan-x64.zip"}},- "version": "10964"+ "version": "11146"},"node": {"artifacts": {diff --git a/pm/packages.py b/pm/packages.pyindex ce26dd6a5f3..dd2d943cc36 100644--- a/pm/packages.py+++ b/pm/packages.py@@ -1139,23 +1139,42 @@ _release_digest_cache: dict[tuple, dict] = {}@registerclass LlamaCppCuda(LlamaCpp):- """Windows only: upstream publishes no prebuilt Linux CUDA archive at- current tags, so NVIDIA Linux users run the vulkan build."""+ """CUDA 13.4 everywhere upstream builds it: 13.x drivers run any 13.x+ runtime (minor-version compatibility), and 13.4 is the only line upstream+ ships for win-arm64. Linux archives first appeared after b10964, and+ upstream dropped win-cuda-13.3 at the same time.++ The engine archive carries no CUDA libraries (end users have no toolkit),+ so each target pins a second cudart archive too."""name = "llamacpp-cuda"backend = "cuda"- # CUDA 13.3 verified against 13.1/13.2 drivers; arm64 prebuilts landed- # on 13.4 (the only CUDA line upstream builds for win-arm64).assets = {- "win32-x64": "win-cuda-13.3-x64",+ "win32-x64": "win-cuda-13.4-x64","win32-arm64": "win-cuda-13.4-arm64",+ "linux-x64": "ubuntu-cuda-13.4-x64",}- _CUDART = {"win32-x64": "13.3-x64", "win32-arm64": "13.4-arm64"}def _asset_names(self, version: str, target: str) -> list[str]:- return super()._asset_names(version, target) + [- f"cudart-llama-bin-win-cuda-{self._CUDART[target]}.zip"- ]+ # Upstream names the Windows cudart zip without the build tag and the+ # Linux one with it.+ infix = self.assets[target]+ cudart = (+ f"cudart-llama-bin-{infix}.zip"+ if target.startswith("win32")+ else f"cudart-llama-b{version}-bin-{infix}.tar.gz"+ )+ return super()._asset_names(version, target) + [cudart]++ def stage(self, store: Store, staged: Path, version: str, target: str) -> None:+ """The Linux cudart tarball unpacks into its own top-level dir, but the+ engine's RUNPATH is $ORIGIN, so its libraries must sit beside+ llama-server. The Windows zip is flat and needs no hoist."""+ super().stage(store, staged, version, target)+ for extra in sorted(staged.glob("cudart-*")):+ if extra.is_dir():+ merge_tree(extra, staged)+ shutil.rmtree(extra)@registerdiff --git a/tests/hermes_cli/test_local_quickstart.py b/tests/hermes_cli/test_local_quickstart.pyindex 18436aac068..13f59d918e8 100644--- a/tests/hermes_cli/test_local_quickstart.py+++ b/tests/hermes_cli/test_local_quickstart.py@@ -141,7 +141,7 @@ def test_quickstart_runs_all_three_legs(client, capable_hardware, monkeypatch, tcalls: list[str] = []# Supply the same supported backend to preflight and the stubbed install;- # host auto-detection may select CUDA without a published Linux archive.+ # host auto-detection may select a GPU backend this test host cannot install.from hermes_cli.config import load_config, save_configconfig = load_config()diff --git a/tests/hermes_cli/test_local_runtime_pm.py b/tests/hermes_cli/test_local_runtime_pm.pyindex 63cc820c00a..54dc0d577a8 100644--- a/tests/hermes_cli/test_local_runtime_pm.py+++ b/tests/hermes_cli/test_local_runtime_pm.py@@ -9,7 +9,7 @@ from pm.lock import Lockfile@pytest.mark.parametrize("target,vendor,expected", [- ("linux-x64", "nvidia", "vulkan"),+ ("linux-x64", "nvidia", "cuda"),("linux-arm64", "nvidia", "vulkan"),("win32-arm64", "nvidia", "cuda"),("win32-arm64", "AMD Radeon", "cpu"),@@ -20,7 +20,24 @@ from pm.lock import Lockfiledef test_auto_backend_uses_only_compatible_pins(target, vendor, expected):assert binaries.resolve_backend("auto", gpu_vendor=vendor, target=target) == expectedwith pytest.raises(binaries.BinaryResolutionError):- binaries.resolve_backend("cuda", target="linux-x64")+ binaries.resolve_backend("cuda", target="linux-arm64")+++def test_linux_cuda_runtime_libraries_land_beside_the_server(tmp_path):+ """The engine's RUNPATH is $ORIGIN and its archive carries no CUDA libraries,+ so the cudart tarball's own top-level dir must be hoisted next to llama-server."""+ package = pm.get_package("llamacpp-cuda")+ staged = tmp_path / "tree"+ (staged / "llama-b1").mkdir(parents=True)+ (staged / "llama-b1" / "llama-server").write_bytes(b"engine")+ (staged / "cudart-llama-b1-bin-ubuntu-cuda-13.4-x64").mkdir()+ (staged / "cudart-llama-b1-bin-ubuntu-cuda-13.4-x64" / "libcudart.so.13").write_bytes(b"rt")++ package.stage(None, staged, "1", "linux-x64")++ assert package.binary(staged, "linux-x64").is_file()+ assert (staged / "libcudart.so.13").is_file()+ assert not list(staged.glob("cudart-*"))def test_missing_pin_is_refused_instead_of_constructing_download_url(tmp_path, monkeypatch):diff --git a/website/docs/user-guide/local-models.md b/website/docs/user-guide/local-models.mdindex 7519399caad..c94b59aa72b 100644--- a/website/docs/user-guide/local-models.md+++ b/website/docs/user-guide/local-models.md@@ -176,7 +176,7 @@ Selecting a local model as your main model uses the standard## Requirements and limits- **Windows:** CUDA on supported NVIDIA targets, Vulkan on x64, or CPU.- **Linux:** Vulkan or CPU; the pinned release has no prebuilt CUDA archive.+ **Linux:** CUDA on x64 NVIDIA (needs a CUDA 13 driver), Vulkan, or CPU.**macOS:** Metal or CPU. HIP/ROCm is an explicit choice on supported x64targets. Unsupported backend/target pairs fail before any download.- A GPU with 8 GB+ of memory runs the small catalog models comfortably;