diff --git a/ci/platform-matrix.json b/ci/platform-matrix.json
index f903e2ffc8f..71387c2530c 100644
--- a/ci/platform-matrix.json
+++ b/ci/platform-matrix.json
@@ -1,7 +1,7 @@
{
"$comment": "Single source of truth for NemoClaw launch claims and platform support. Covers platforms, inference providers, supported agents, messaging integrations, and deployment paths. Scripts read this to generate README and docs tables. QA/CI update platform/provider rows; the engineering owner reviews other rows. Docs are derived.",
"version": "1.1",
- "updated": "2026-07-12",
+ "updated": "2026-07-15",
"project_status": {
"stage": "alpha",
@@ -64,7 +64,7 @@
"status": "deferred",
"prd_priority": "P1",
"ci_tested": false,
- "notes": "The PRD marks this platform as P1. Workstation form-factor with NVIDIA GPUs and the same Docker + NVIDIA Container Toolkit + CDI requirements as DGX Spark. Onboard path not yet validated end-to-end on the hardware; vLLM defaults to `deepseek-ai/DeepSeek-V4-Flash` for this host class and will move out of `deferred` once the hardware run is signed off."
+ "notes": "The PRD marks this platform as P1. Workstation form-factor with NVIDIA GPUs and the same Docker + NVIDIA Container Toolkit + CDI requirements as DGX Spark. The installer detects DGX Station and offers express install with the pinned `nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4` recipe, including an approximately 352 GB model download, without follow-up provider, model, policy, or sandbox-name choices. Pass `--station-deepseek` to use `deepseek-ai/DeepSeek-V4-Flash` for a Station demo while retaining the one-confirmation express flow. Direct managed-vLLM onboarding still defaults to `deepseek-ai/DeepSeek-V4-Flash` when no model override is set. The full NemoClaw onboarding path, including the express recipe, has not been validated end-to-end on physical DGX Station hardware and remains `deferred` until that run is signed off."
},
{
"name": "NVIDIA RTX (consumer and Pro workstation GPUs)",
@@ -147,7 +147,7 @@
"name": "Local vLLM (managed install/start)",
"status": "caveated",
"endpoint_type": "Local OpenAI-compatible",
- "notes": "Appears by default on DGX Spark and DGX Station. DGX Station remains deferred until its managed-vLLM onboarding path is validated end-to-end on physical hardware. Generic Linux NVIDIA GPU hosts require `NEMOCLAW_EXPERIMENTAL=1` or `NEMOCLAW_PROVIDER=install-vllm`. Host must have the NVIDIA Container Toolkit installed and a CDI spec present (`onboard` asserts CDI presence). NemoClaw pins each host profile to an immutable NGC platform digest. DGX Spark and DGX Station use the `linux/arm64` digest published under `nvcr.io/nvidia/vllm:26.05.post1-py3`; generic Linux NVIDIA GPU hosts use the matching `linux/arm64` or `linux/amd64` digest published under `nvcr.io/nvidia/vllm:26.03.post1-py3`. Validated defaults are listed in `src/lib/inference/vllm-models.ts`: DGX Spark uses `nvidia/Qwen3.6-35B-A3B-NVFP4`, DGX Station uses `deepseek-ai/DeepSeek-V4-Flash`, and Linux NVIDIA GPU uses `nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8`. Image pulls require NGC registry login (`docker login nvcr.io`); onboard prompts for the NGC API key when authentication is missing."
+ "notes": "Appears by default on DGX Spark and DGX Station. DGX Station remains deferred until its managed-vLLM onboarding path is validated end-to-end on physical hardware. Generic Linux NVIDIA GPU hosts require `NEMOCLAW_EXPERIMENTAL=1` or `NEMOCLAW_PROVIDER=install-vllm`. Host must have the NVIDIA Container Toolkit installed and a CDI spec present (`onboard` asserts CDI presence). NemoClaw pins runtime images to immutable digests. DGX Spark and DGX Station models without a model-specific runtime use the `linux/arm64` digest published under `nvcr.io/nvidia/vllm:26.05.post1-py3`; generic Linux NVIDIA GPU hosts use the matching `linux/arm64` or `linux/amd64` digest published under `nvcr.io/nvidia/vllm:26.03.post1-py3`. The DGX Station express installer selects `nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4` with a pinned Hugging Face revision and the multi-platform index digest published under `vllm/vllm-openai:v0.22.0`; that index resolves to the `linux/arm64` manifest on Station. Direct managed-vLLM profile defaults are listed in `src/lib/inference/vllm-models.ts`: DGX Spark uses `nvidia/Qwen3.6-35B-A3B-NVFP4`, DGX Station uses `deepseek-ai/DeepSeek-V4-Flash`, and Linux NVIDIA GPU uses `nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8`. Image pulls from `nvcr.io` require NGC registry login (`docker login nvcr.io`); onboard prompts for the NGC API key when authentication is missing."
}
],
diff --git a/docs/get-started/quickstart.mdx b/docs/get-started/quickstart.mdx
index 62e3dcadcb0..327f0ede767 100644
--- a/docs/get-started/quickstart.mdx
+++ b/docs/get-started/quickstart.mdx
@@ -120,6 +120,8 @@ Use these details when your first-run path needs more control.
On macOS, start Docker Desktop or Colima first.
DGX Spark, DGX Station, and Windows WSL offer an interactive express-install path that chooses a managed local inference option for the platform.
+ On DGX Station, accepting the express prompt selects the pinned `nemotron-3-ultra-550b-a55b` managed-vLLM recipe and completes onboarding without more provider, model, policy, or sandbox-name choices.
+ Pass `--station-deepseek` to use DeepSeek V4 Flash for a Station demo instead.
Refer to [Platform Support](../reference/platform-support) and [Choose an Inference Provider](../inference/learn-and-choose/choose-inference-provider) for the current platform behavior.
If `nemoclaw` is not found after installation and you use nvm or fnm, open a new terminal or reload your shell profile.
@@ -186,12 +188,19 @@ Use these details when your first-run path needs more control.
On DGX Spark, DGX Station, and Windows WSL, interactive installation offers express install after you accept the third-party software notice.
Express install switches onboarding to non-interactive mode, allows `sudo` password prompts for required host changes, and selects the managed local inference path for that platform.
- DGX Spark uses managed vLLM with `qwen3.6-35b-a3b-nvfp4` by default, and DGX Station uses `deepseek-v4-flash` by default.
+ DGX Spark uses managed vLLM with `qwen3.6-35b-a3b-nvfp4` by default.
+ DGX Station express install explicitly selects `nemotron-3-ultra-550b-a55b` instead of the Station managed-vLLM profile default, `deepseek-v4-flash`, and discloses the approximately `352 GB` model download before confirmation.
+ To select DeepSeek V4 Flash while retaining the one-confirmation Station express flow, run `curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash -s -- --station-deepseek`.
Unless `NEMOCLAW_POLICY_TIER` is set, express install applies policy in `suggested` mode with the `balanced` tier, including the base sandbox policy and supported package, model, web-search, and local-inference presets.
Express install uses `my-assistant` as the sandbox name across all platforms unless `NEMOCLAW_SANDBOX_NAME` is set.
Windows WSL selects the Windows-host Ollama setup path.
Set `NEMOCLAW_NO_EXPRESS=1` to skip the express prompt, or set `NEMOCLAW_PROVIDER` before launching the installer to choose a provider yourself.
+
+ Express install automates the configuration but does not change DGX Station's Deferred support status.
+ Full NemoClaw onboarding with this recipe has not completed end-to-end validation on physical DGX Station hardware.
+
+
The installer auto-launches `nemoclaw onboard` when it can find the new binary.
If it cannot find the binary or blocking host preflight checks fail, it prints diagnostics and a `To finish setup, run:` block with the explicit `nemoclaw onboard` command.
diff --git a/docs/inference/choose-inference-provider.mdx b/docs/inference/choose-inference-provider.mdx
index a7521fc8b2e..a87cc050137 100644
--- a/docs/inference/choose-inference-provider.mdx
+++ b/docs/inference/choose-inference-provider.mdx
@@ -32,7 +32,7 @@ Use this status table to distinguish validated provider integrations from adapte
| Local Ollama | Tested with limitations | Local Ollama API | Available when Ollama is installed or running on the host. Validated default models: `qwen3.6:35b` (high VRAM), `nemotron-3-nano:30b` (medium VRAM), `qwen3.5:9b` (low VRAM fallback). |
| Local NVIDIA NIM | Experimental | Local OpenAI-compatible | Requires `NEMOCLAW_EXPERIMENTAL=1` and a NIM-capable NVIDIA GPU. Host must have the NVIDIA Container Toolkit installed and a CDI spec present (`onboard` asserts CDI presence with `assertCdiNvidiaGpuSpecPresent`, `src/lib/onboard/fatal-runtime-preflight.ts`). NIM images pull from `nvcr.io` and require NGC registry login. NemoClaw gates this path behind the experimental flag because it does not auto-select a NIM image for the host today. You must explicitly pick from the validated image list. On Linux arm64 DGX Spark and DGX Station hosts, onboarding warns that some NIM images may not publish a `linux/arm64` manifest; the warning is advisory, and the selected image pull can still fail when the registry has no matching platform manifest. Managed vLLM has host-specific default models and is not gated on the same boxes. Validated images referenced in `src/lib/inference/config.ts` and `nemoclaw/src/index.ts`: `nvidia/nemotron-3-super-120b-a12b` (default cloud model), `nvidia/nemotron-3-nano-30b-a3b`, `nvidia/llama-3.3-nemotron-super-49b-v1.5`. |
| Local vLLM (already running) | Tested with limitations | Local OpenAI-compatible | Appears in the onboarding menu when NemoClaw detects a server already on `localhost:8000`. No flag required. Model is whatever the existing server serves. |
-| Local vLLM (managed install/start) | Tested with limitations | Local OpenAI-compatible | Appears by default on DGX Spark and DGX Station. DGX Station remains deferred until its managed-vLLM onboarding path is validated end-to-end on physical hardware. Generic Linux NVIDIA GPU hosts require `NEMOCLAW_EXPERIMENTAL=1` or `NEMOCLAW_PROVIDER=install-vllm`. Host must have the NVIDIA Container Toolkit installed and a CDI spec present (`onboard` asserts CDI presence). NemoClaw pins each host profile to an immutable NGC platform digest. DGX Spark and DGX Station use the `linux/arm64` digest published under `nvcr.io/nvidia/vllm:26.05.post1-py3`; generic Linux NVIDIA GPU hosts use the matching `linux/arm64` or `linux/amd64` digest published under `nvcr.io/nvidia/vllm:26.03.post1-py3`. Validated defaults are listed in `src/lib/inference/vllm-models.ts`: DGX Spark uses `nvidia/Qwen3.6-35B-A3B-NVFP4`, DGX Station uses `deepseek-ai/DeepSeek-V4-Flash`, and Linux NVIDIA GPU uses `nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8`. Image pulls require NGC registry login (`docker login nvcr.io`); onboard prompts for the NGC API key when authentication is missing. |
+| Local vLLM (managed install/start) | Tested with limitations | Local OpenAI-compatible | Appears by default on DGX Spark and DGX Station. DGX Station remains deferred until its managed-vLLM onboarding path is validated end-to-end on physical hardware. Generic Linux NVIDIA GPU hosts require `NEMOCLAW_EXPERIMENTAL=1` or `NEMOCLAW_PROVIDER=install-vllm`. Host must have the NVIDIA Container Toolkit installed and a CDI spec present (`onboard` asserts CDI presence). NemoClaw pins runtime images to immutable digests. DGX Spark and DGX Station models without a model-specific runtime use the `linux/arm64` digest published under `nvcr.io/nvidia/vllm:26.05.post1-py3`; generic Linux NVIDIA GPU hosts use the matching `linux/arm64` or `linux/amd64` digest published under `nvcr.io/nvidia/vllm:26.03.post1-py3`. The DGX Station express installer selects `nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4` with a pinned Hugging Face revision and the multi-platform index digest published under `vllm/vllm-openai:v0.22.0`; that index resolves to the `linux/arm64` manifest on Station. Direct managed-vLLM profile defaults are listed in `src/lib/inference/vllm-models.ts`: DGX Spark uses `nvidia/Qwen3.6-35B-A3B-NVFP4`, DGX Station uses `deepseek-ai/DeepSeek-V4-Flash`, and Linux NVIDIA GPU uses `nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8`. Image pulls from `nvcr.io` require NGC registry login (`docker login nvcr.io`); onboard prompts for the NGC API key when authentication is missing. |
{/* provider-status:end */}
## Hosted Providers
diff --git a/docs/inference/set-up-vllm.mdx b/docs/inference/set-up-vllm.mdx
index 8f0357c445f..fdab181047e 100644
--- a/docs/inference/set-up-vllm.mdx
+++ b/docs/inference/set-up-vllm.mdx
@@ -79,16 +79,18 @@ NemoClaw pulls the vLLM image, downloads model weights into `~/.cache/huggingfac
The container carries a NemoClaw ownership label so later onboarding runs can distinguish it from a bring-your-own server without trusting the container name alone.
If an existing `nemoclaw-vllm` container does not carry that label, NemoClaw preserves it and asks you to remove or rename it before installing managed vLLM.
If another vLLM server already occupies port `8000`, the managed path stops and asks you to select the existing server or stop it first.
-Managed profiles use immutable NGC platform digests:
+Managed profiles and model-specific recipes use immutable image digests:
-- DGX Spark and DGX Station use the `linux/arm64` digest `sha256:9204569b17ee4c0eff75194b8e6e458479c8aee18953b5ab9cf359fcdac659e2` with a compressed layer size of `9.60 GB` under `nvcr.io/nvidia/vllm:26.05.post1-py3`.
- DGX Station remains deferred until this path is validated end-to-end on physical hardware.
+- DGX Spark and DGX Station models without a model-specific runtime use the `linux/arm64` digest `sha256:9204569b17ee4c0eff75194b8e6e458479c8aee18953b5ab9cf359fcdac659e2` with a compressed layer size of `9.60 GB` under `nvcr.io/nvidia/vllm:26.05.post1-py3`.
+- The DGX Station Nemotron 3 Ultra express recipe uses the multi-platform index digest `sha256:0fec7ec5f3e6bc168e54899935fb0557da908a4832a1dbc88e2debcf2f889416` under `vllm/vllm-openai:v0.22.0`; on DGX Station, that index selects a `linux/arm64` manifest with a compressed layer size of `10.67 GB`.
+ It also pins Hugging Face revision `183968f87ae4cedce3039313cac1fd43d112c578` for the approximately `352.38 GB` model download.
- Generic Linux `arm64` hosts use `sha256:447995cbb57e6c7cf792cab95e9852e5f62b5fb6d2f39e030fa4eda9a54eadb4` with a compressed layer size of `9.28 GB` under `nvcr.io/nvidia/vllm:26.03.post1-py3`.
- Generic Linux `amd64` hosts use `sha256:7be6c2f676c36059a494fe17254e69ae5c677535ba6191044e5fc8e42a91c773` with a compressed layer size of `8.93 GB` under `nvcr.io/nvidia/vllm:26.03.post1-py3`.
Image pulls from `nvcr.io` require NGC registry login.
+The Station Nemotron 3 Ultra recipe pulls its vLLM image from Docker Hub instead.
-The first run can take 10 to 30 minutes.
+The first run duration depends on image and model size, storage performance, and network throughput.
Later runs reuse the cached image and model weights.
The managed container uses Docker's `--restart unless-stopped` policy, so Docker restarts it unless an operator explicitly stops it.
@@ -108,30 +110,34 @@ The model-download helper and the long-lived vLLM container use `--pull=never`,
NemoClaw treats `/var/run/docker.sock` and `/run/docker.sock` as the local default Docker socket paths.
It cannot inspect daemon storage through a remote endpoint, a named non-default Docker context, or another Unix socket.
When both `DOCKER_CONTEXT` and `DOCKER_HOST` are set, NemoClaw follows Docker CLI precedence and uses `DOCKER_CONTEXT`.
-When the check is inconclusive, NemoClaw prints the reason, approximate image requirement, and diagnostic commands, then continues with the pull without claiming that capacity is sufficient.
+Before a registered model with pinned size metadata is downloaded, NemoClaw also checks the filesystem that contains the host Hugging Face cache.
+When a Docker image-storage check is inconclusive, NemoClaw prints the reason, approximate requirement, and diagnostic commands, then continues without claiming that capacity is sufficient.
+An inconclusive model-cache check is guarded like an insufficient result because a registered model download can be hundreds of gigabytes: interactive setup requires explicit confirmation, and non-interactive setup stops unless the disk-space override is set.
When verified capacity is insufficient, the warning identifies the image, available capacity, approximate requirement, checked path and source, remediation, and diagnostic commands.
Interactive setup continues only when you enter `y` or `yes` explicitly.
-Pressing **Enter**, entering `n` or `no`, or entering any other response stops before the guarded image pull starts.
+Pressing **Enter**, entering `n` or `no`, or entering any other response stops before the guarded image or model download starts.
`--yes` and `NEMOCLAW_YES=1` do not accept a verified insufficient-storage warning.
-Non-interactive setup stops unless you set `NEMOCLAW_IGNORE_VLLM_DISK_SPACE=1` exactly.
-The override applies only when NemoClaw verifies that Docker image storage is insufficient.
-Use it only after you independently verify that Docker storage can complete the image pull.
-Inconclusive checks continue automatically and do not require the override.
+They also do not accept an inconclusive model-cache warning.
+Non-interactive setup stops for verified insufficient capacity or inconclusive model-cache capacity unless you set `NEMOCLAW_IGNORE_VLLM_DISK_SPACE=1` exactly.
+The override applies when NemoClaw verifies that Docker image storage or model-cache storage is insufficient and when model-cache capacity cannot be verified.
+Use it only after you independently verify that the relevant filesystem can complete the download.
+An inconclusive Docker image-storage check retains its existing automatic-continue behavior and does not require the override.
-This preflight checks only the pinned vLLM container image.
-It does not estimate or gate the Hugging Face model-weight download into `~/.cache/huggingface`.
-Before the first managed-vLLM run, verify that the filesystem backing your model cache has enough free space for the selected model.
+The model-cache guard applies when the selected registered recipe declares a pinned snapshot size.
+NemoClaw creates `~/.cache/huggingface` as the host user and runs the one-shot download container with the host UID and GID, avoiding root-owned cache paths.
+Hugging Face credentials are forwarded only to that temporary downloader, not retained by the long-lived vLLM container.
+A legacy root-owned or otherwise unwritable cache stops before the image pull and prints a safe ownership-repair command; NemoClaw never changes its ownership automatically.
If image pull output stops making progress, a watchdog stops the stalled pull without imposing a fixed wall-clock limit on slow but active downloads.
If vLLM does not become ready, NemoClaw prints a short tail of the container logs before exiting.
-Managed vLLM uses these profile defaults:
+When you start managed vLLM outside the installer express flow, NemoClaw uses these profile defaults:
| Host profile | Default model |
|---|---|
@@ -139,6 +145,16 @@ Managed vLLM uses these profile defaults:
| DGX Station | `deepseek-ai/DeepSeek-V4-Flash` |
| Linux with an NVIDIA GPU | `nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8` |
+On DGX Station, accepting the installer express prompt sets `NEMOCLAW_VLLM_MODEL=nemotron-3-ultra-550b-a55b` and overrides the profile default.
+Pass `--station-deepseek` to select the existing `deepseek-v4-flash` recipe while retaining the same one-confirmation express flow.
+The registered Ultra recipe tracks the [official DGX Station deployment guide](https://github.com/NVIDIA-NeMo/Nemotron/blob/287ae845639d2ce998998cb8fd1f70a3fa943c0b/usage-cookbook/Nemotron-3-Ultra/StationDeploymentGuide/README.md) and configures the pinned model revision, CPU offload, `16 GB` of shared memory, memory/stack ulimits, MTP speculative decoding, and the Nemotron reasoning and tool-call parsers.
+NemoClaw intentionally keeps its existing bridge-networked managed-inference topology instead of importing the playbook's host-network setting.
+The container publishes port `8000` through Docker, so apply the firewall guidance at the top of this page.
+
+
+DGX Station and its managed-vLLM paths remain Deferred until NemoClaw completes end-to-end validation on physical DGX Station hardware.
+
+
## Run Non-Interactive Onboarding
Use an already-running server.
@@ -158,6 +174,7 @@ NEMOCLAW_PROVIDER=install-vllm \
On DGX Spark and DGX Station, `NEMOCLAW_PROVIDER=install-vllm` is sufficient for a non-interactive run.
Add `NEMOCLAW_EXPERIMENTAL=1` on a generic Linux NVIDIA GPU host.
Non-interactive runs use the profile default unless you set `NEMOCLAW_VLLM_MODEL`.
+On DGX Station, a direct provider-only run therefore selects `deepseek-v4-flash`; the installer express flow sets the Nemotron 3 Ultra override for you.
## Select a Managed Model
@@ -169,14 +186,16 @@ NemoClaw applies the registered `vllm serve` arguments, including the reasoning
| `qwen3.6-27b` | `Qwen/Qwen3.6-27B-FP8` | Supported override. |
| `qwen3.6-35b-a3b-nvfp4` | `nvidia/Qwen3.6-35B-A3B-NVFP4` | DGX Spark default. |
| `nemotron-3-nano-4b` | `nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8` | Generic Linux NVIDIA GPU default. |
-| `deepseek-v4-flash` | `deepseek-ai/DeepSeek-V4-Flash` | DGX Station default. |
+| `deepseek-v4-flash` | `deepseek-ai/DeepSeek-V4-Flash` | DGX Station profile default outside express install. |
+| `nemotron-3-ultra-550b-a55b` | `nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4` | DGX Station express-install selection with a pinned model revision and model-specific vLLM image. |
| `deepseek-r1-distill-70b` | `deepseek-ai/DeepSeek-R1-Distill-Llama-70B` | Gated and requires license acceptance. |
Slugs are case-insensitive, and NemoClaw also accepts the full Hugging Face model ID.
An unrecognized value fails before image or model downloads and prints the valid slugs.
Gated models require a Hugging Face token.
-Export `HF_TOKEN` before onboarding so NemoClaw can forward it to the managed container.
+Export `HF_TOKEN` before onboarding so NemoClaw can forward it temporarily to the one-shot model downloader.
+The token is not retained in the long-lived managed vLLM container after the explicit download completes.
```bash
export HF_TOKEN=""
diff --git a/docs/reference/commands.mdx b/docs/reference/commands.mdx
index 12cf87ee0c9..035cec8f89b 100644
--- a/docs/reference/commands.mdx
+++ b/docs/reference/commands.mdx
@@ -3286,9 +3286,9 @@ Set them before running `$$nemoclaw onboard`.
| `SANDBOX_NAME` | sandbox name | Compatibility spelling used after `NEMOCLAW_SANDBOX_NAME` and `NEMOCLAW_SANDBOX`. |
| `NEMOCLAW_INSTALL_REF` | git ref | For internal installer commands: the git ref to install from. Overridden by the `--install-ref` flag. |
| `NEMOCLAW_INSTALL_TAG` | release tag | For internal installer commands: the release tag to install. Defaults to the admin-promoted `lkg` tag when unset. Overridden by the `--install-tag` flag. |
-| `NEMOCLAW_VLLM_MODEL` | registry slug or Hugging Face model id | Selects the model the managed-vLLM install path serves. Recognised slugs: `qwen3.6-27b`, `qwen3.6-35b-a3b-nvfp4`, `nemotron-3-nano-4b`, `deepseek-v4-flash`, `deepseek-r1-distill-70b`. Unset uses the per-platform profile default. Gated models (e.g. `deepseek-r1-distill-70b`) require `HF_TOKEN` or `HUGGING_FACE_HUB_TOKEN`. |
+| `NEMOCLAW_VLLM_MODEL` | registry slug or Hugging Face model id | Selects the model the managed-vLLM install path serves. Recognised slugs: `qwen3.6-27b`, `qwen3.6-35b-a3b-nvfp4`, `nemotron-3-nano-4b`, `deepseek-v4-flash`, `nemotron-3-ultra-550b-a55b`, `deepseek-r1-distill-70b`. Unset uses the per-platform profile default. The DGX Station express installer sets `nemotron-3-ultra-550b-a55b` explicitly. Gated models (e.g. `deepseek-r1-distill-70b`) require `HF_TOKEN` or `HUGGING_FACE_HUB_TOKEN`. |
| `NEMOCLAW_VLLM_EXTRA_ARGS_JSON` | JSON array of non-blank strings | Appends advanced operator-owned tokens to the managed `vllm serve` command after NemoClaw's registry defaults. Example: `["--max-num-seqs","2"]`. Malformed JSON, non-string tokens, or blank tokens fail before Docker work starts. |
-| `NEMOCLAW_IGNORE_VLLM_DISK_SPACE` | exactly `1` | Allows managed vLLM to continue when verified Docker image-storage capacity is insufficient; other values do not bypass the check. Inconclusive image-storage checks report diagnostics and continue automatically. The check does not cover Hugging Face model-cache capacity. |
+| `NEMOCLAW_IGNORE_VLLM_DISK_SPACE` | exactly `1` | Allows managed vLLM to continue when verified Docker image-storage or registered model-cache capacity is insufficient, or when registered model-cache capacity cannot be measured; other values do not bypass either check. An inconclusive Docker image-storage check reports diagnostics and retains its existing automatic-continue behavior. |
| `NEMOCLAW_MINIMAL_BOOTSTRAP` | `1` to enable | Skips default OpenClaw workspace-template seeding for new pristine workspaces. Existing files are not deleted; refer to [Understand Runtime Changes](../manage-sandboxes/configure-sandboxes/understand-runtime-changes). |
diff --git a/docs/reference/platform-support.mdx b/docs/reference/platform-support.mdx
index e02d2cab64b..35a31916def 100644
--- a/docs/reference/platform-support.mdx
+++ b/docs/reference/platform-support.mdx
@@ -82,7 +82,7 @@ For the onboarding-time supported set without deferred rows, refer to [Prerequis
| macOS (Apple Silicon) | Colima, Docker Desktop | Tested with limitations | P0 | Yes | Start the container runtime (Colima or Docker Desktop) before running the installer. Homebrew Colima users must install both Colima and the Docker CLI (`brew install colima docker`) before `docker info` can work. Xcode Command Line Tools (`xcode-select --install`) are typically required for Node native modules during install. NemoClaw recommends them but does not enforce them during preflight. |
| DGX Spark | Docker | Tested | P1 | Yes | Use the standard installer and `$$nemoclaw onboard`. For an end-to-end walkthrough with local inference, see the [NVIDIA Spark playbook](https://build.nvidia.com/spark/nemoclaw). |
| Windows WSL2 | Docker Desktop (WSL backend) | Tested with limitations | P1 | No | Requires WSL2 with Docker Desktop backend. |
-| DGX Station | Docker | Deferred | P1 | No | The PRD marks this platform as P1. Workstation form-factor with NVIDIA GPUs and the same Docker + NVIDIA Container Toolkit + CDI requirements as DGX Spark. Onboard path not yet validated end-to-end on the hardware; vLLM defaults to `deepseek-ai/DeepSeek-V4-Flash` for this host class and will move out of `deferred` once the hardware run is signed off. |
+| DGX Station | Docker | Deferred | P1 | No | The PRD marks this platform as P1. Workstation form-factor with NVIDIA GPUs and the same Docker + NVIDIA Container Toolkit + CDI requirements as DGX Spark. The installer detects DGX Station and offers express install with the pinned `nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4` recipe, including an approximately 352 GB model download, without follow-up provider, model, policy, or sandbox-name choices. Pass `--station-deepseek` to use `deepseek-ai/DeepSeek-V4-Flash` for a Station demo while retaining the one-confirmation express flow. Direct managed-vLLM onboarding still defaults to `deepseek-ai/DeepSeek-V4-Flash` when no model override is set. The full NemoClaw onboarding path, including the express recipe, has not been validated end-to-end on physical DGX Station hardware and remains `deferred` until that run is signed off. |
| NVIDIA RTX (consumer and Pro workstation GPUs) | Docker | Deferred | P1 | No | The PRD marks this platform as P1. Covers RTX consumer cards and RTX Pro workstation cards on Linux hosts that meet the generic-Linux-GPU requirements (NVIDIA Container Toolkit + CDI present). The provider menu emits managed vLLM behind `NEMOCLAW_EXPERIMENTAL=1` or `NEMOCLAW_PROVIDER=install-vllm` for this host class today; the end-to-end onboard path on this hardware is not yet validated in CI. |
{/* platform-matrix-full:end */}
@@ -104,7 +104,7 @@ NemoClaw routes inference through the OpenShell gateway. Each row below is a pro
| Local Ollama | Tested with limitations | Local Ollama API | Available when Ollama is installed or running on the host. Validated default models: `qwen3.6:35b` (high VRAM), `nemotron-3-nano:30b` (medium VRAM), `qwen3.5:9b` (low VRAM fallback). |
| Local NVIDIA NIM | Experimental | Local OpenAI-compatible | Requires `NEMOCLAW_EXPERIMENTAL=1` and a NIM-capable NVIDIA GPU. Host must have the NVIDIA Container Toolkit installed and a CDI spec present (`onboard` asserts CDI presence with `assertCdiNvidiaGpuSpecPresent`, `src/lib/onboard/fatal-runtime-preflight.ts`). NIM images pull from `nvcr.io` and require NGC registry login. NemoClaw gates this path behind the experimental flag because it does not auto-select a NIM image for the host today. You must explicitly pick from the validated image list. On Linux arm64 DGX Spark and DGX Station hosts, onboarding warns that some NIM images may not publish a `linux/arm64` manifest; the warning is advisory, and the selected image pull can still fail when the registry has no matching platform manifest. Managed vLLM has host-specific default models and is not gated on the same boxes. Validated images referenced in `src/lib/inference/config.ts` and `nemoclaw/src/index.ts`: `nvidia/nemotron-3-super-120b-a12b` (default cloud model), `nvidia/nemotron-3-nano-30b-a3b`, `nvidia/llama-3.3-nemotron-super-49b-v1.5`. |
| Local vLLM (already running) | Tested with limitations | Local OpenAI-compatible | Appears in the onboarding menu when NemoClaw detects a server already on `localhost:8000`. No flag required. Model is whatever the existing server serves. |
-| Local vLLM (managed install/start) | Tested with limitations | Local OpenAI-compatible | Appears by default on DGX Spark and DGX Station. DGX Station remains deferred until its managed-vLLM onboarding path is validated end-to-end on physical hardware. Generic Linux NVIDIA GPU hosts require `NEMOCLAW_EXPERIMENTAL=1` or `NEMOCLAW_PROVIDER=install-vllm`. Host must have the NVIDIA Container Toolkit installed and a CDI spec present (`onboard` asserts CDI presence). NemoClaw pins each host profile to an immutable NGC platform digest. DGX Spark and DGX Station use the `linux/arm64` digest published under `nvcr.io/nvidia/vllm:26.05.post1-py3`; generic Linux NVIDIA GPU hosts use the matching `linux/arm64` or `linux/amd64` digest published under `nvcr.io/nvidia/vllm:26.03.post1-py3`. Validated defaults are listed in `src/lib/inference/vllm-models.ts`: DGX Spark uses `nvidia/Qwen3.6-35B-A3B-NVFP4`, DGX Station uses `deepseek-ai/DeepSeek-V4-Flash`, and Linux NVIDIA GPU uses `nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8`. Image pulls require NGC registry login (`docker login nvcr.io`); onboard prompts for the NGC API key when authentication is missing. |
+| Local vLLM (managed install/start) | Tested with limitations | Local OpenAI-compatible | Appears by default on DGX Spark and DGX Station. DGX Station remains deferred until its managed-vLLM onboarding path is validated end-to-end on physical hardware. Generic Linux NVIDIA GPU hosts require `NEMOCLAW_EXPERIMENTAL=1` or `NEMOCLAW_PROVIDER=install-vllm`. Host must have the NVIDIA Container Toolkit installed and a CDI spec present (`onboard` asserts CDI presence). NemoClaw pins runtime images to immutable digests. DGX Spark and DGX Station models without a model-specific runtime use the `linux/arm64` digest published under `nvcr.io/nvidia/vllm:26.05.post1-py3`; generic Linux NVIDIA GPU hosts use the matching `linux/arm64` or `linux/amd64` digest published under `nvcr.io/nvidia/vllm:26.03.post1-py3`. The DGX Station express installer selects `nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4` with a pinned Hugging Face revision and the multi-platform index digest published under `vllm/vllm-openai:v0.22.0`; that index resolves to the `linux/arm64` manifest on Station. Direct managed-vLLM profile defaults are listed in `src/lib/inference/vllm-models.ts`: DGX Spark uses `nvidia/Qwen3.6-35B-A3B-NVFP4`, DGX Station uses `deepseek-ai/DeepSeek-V4-Flash`, and Linux NVIDIA GPU uses `nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8`. Image pulls from `nvcr.io` require NGC registry login (`docker login nvcr.io`); onboard prompts for the NGC API key when authentication is missing. |
{/* provider-status-full:end */}
## Messaging Integrations
diff --git a/install.sh b/install.sh
index 44619f21d4c..ab867b4c891 100755
--- a/install.sh
+++ b/install.sh
@@ -113,6 +113,7 @@ bootstrap_usage() {
printf " curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash -s -- [options]\n\n"
printf " Options:\n"
printf " --non-interactive Skip prompts (uses env vars / defaults)\n"
+ printf " --station-deepseek Use DeepSeek V4 Flash for DGX Station express install\n"
printf " --yes-i-accept-third-party-software Accept the third-party software notice without prompting\n"
printf " --fresh Discard any failed/interrupted onboarding session and start over\n"
printf " --version, -v Print installer version and exit\n"
diff --git a/scripts/install.sh b/scripts/install.sh
index a07ffb8df9c..efd5c0eb0a6 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -747,6 +747,7 @@ usage() {
printf " --non-interactive Skip prompts (uses env vars / defaults)\n"
printf " --yes-i-accept-third-party-software Accept the third-party software notice without prompting\n"
printf " --fresh Discard any failed/interrupted onboarding session and start over\n"
+ printf " --station-deepseek Use DeepSeek V4 Flash for DGX Station express install\n"
printf " --version, -v Print installer version and exit\n"
printf " --help, -h Show this help message and exit\n\n"
printf " ${C_DIM}Environment:${C_RESET}\n"
@@ -2851,6 +2852,81 @@ detect_express_platform() {
esac
}
+STATION_ULTRA_VLLM_MODEL="nemotron-3-ultra-550b-a55b"
+STATION_ULTRA_SERVED_MODEL="nvidia/nemotron-3-ultra-550b-a55b"
+STATION_DEEPSEEK_VLLM_MODEL="deepseek-v4-flash"
+STATION_DEEPSEEK_SERVED_MODEL="deepseek-ai/DeepSeek-V4-Flash"
+
+normalize_station_vllm_model() {
+ printf "%s" "${1:-}" | tr '[:upper:]' '[:lower:]' | sed 's/^[[:space:]]*//; s/[[:space:]]*$//'
+}
+
+validate_station_deepseek_override() {
+ local platform="$1"
+ if [ "${STATION_DEEPSEEK:-}" != "1" ]; then
+ return 0
+ fi
+ if [ "$platform" != "DGX Station" ]; then
+ error "--station-deepseek requires a detected DGX Station (detected: ${platform:-unsupported platform})."
+ fi
+ if [ "${NEMOCLAW_NO_EXPRESS:-}" = "1" ]; then
+ error "--station-deepseek cannot be combined with NEMOCLAW_NO_EXPRESS=1. Remove one override."
+ fi
+ if [ "${NON_INTERACTIVE:-}" = "1" ]; then
+ error "--station-deepseek selects the DGX Station express prompt and cannot be combined with --non-interactive."
+ fi
+ if [ -n "${NEMOCLAW_PROVIDER:-}" ]; then
+ error "--station-deepseek conflicts with NEMOCLAW_PROVIDER=${NEMOCLAW_PROVIDER}. Remove the provider override to use Station express install."
+ fi
+
+ local requested_model
+ requested_model="$(normalize_station_vllm_model "${NEMOCLAW_VLLM_MODEL:-}")"
+ case "$requested_model" in
+ "" | "$STATION_DEEPSEEK_VLLM_MODEL" | "deepseek-ai/deepseek-v4-flash") ;;
+ *)
+ error "--station-deepseek conflicts with NEMOCLAW_VLLM_MODEL='${NEMOCLAW_VLLM_MODEL}'. Remove one override or set NEMOCLAW_VLLM_MODEL=${STATION_DEEPSEEK_VLLM_MODEL}."
+ ;;
+ esac
+}
+
+preflight_explicit_express_flags() {
+ local platform
+ platform="$(detect_express_platform)"
+ validate_station_deepseek_override "$platform"
+}
+
+configure_station_express_model() {
+ local selected_model
+ selected_model="$(normalize_station_vllm_model "${NEMOCLAW_VLLM_MODEL:-}")"
+ if [ "${STATION_DEEPSEEK:-}" = "1" ]; then
+ NEMOCLAW_VLLM_MODEL="$STATION_DEEPSEEK_VLLM_MODEL"
+ NEMOCLAW_MODEL="$STATION_DEEPSEEK_SERVED_MODEL"
+ elif [ -z "$selected_model" ]; then
+ NEMOCLAW_VLLM_MODEL="$STATION_ULTRA_VLLM_MODEL"
+ NEMOCLAW_MODEL="$STATION_ULTRA_SERVED_MODEL"
+ else
+ case "$selected_model" in
+ "$STATION_ULTRA_VLLM_MODEL" | "nvidia/nvidia-nemotron-3-ultra-550b-a55b-nvfp4")
+ NEMOCLAW_MODEL="$STATION_ULTRA_SERVED_MODEL"
+ ;;
+ "$STATION_ULTRA_SERVED_MODEL")
+ # The served alias is useful in route output but is not a Hugging Face
+ # repository ID. Normalize it to the registered model slug before the
+ # existing managed-vLLM selector consumes it.
+ NEMOCLAW_VLLM_MODEL="$STATION_ULTRA_VLLM_MODEL"
+ NEMOCLAW_MODEL="$STATION_ULTRA_SERVED_MODEL"
+ ;;
+ "$STATION_DEEPSEEK_VLLM_MODEL" | "deepseek-ai/deepseek-v4-flash")
+ NEMOCLAW_MODEL="$STATION_DEEPSEEK_SERVED_MODEL"
+ ;;
+ esac
+ fi
+ export NEMOCLAW_VLLM_MODEL
+ if [ -n "${NEMOCLAW_MODEL:-}" ]; then
+ export NEMOCLAW_MODEL
+ fi
+}
+
# Prompt the user to opt into express install on supported platforms. Sets the
# non-interactive + provider/model env vars when accepted. Skipped when
# the user already passed --non-interactive, set NEMOCLAW_PROVIDER, or has
@@ -2874,8 +2950,16 @@ describe_express_install() {
sandbox_summary="${NEMOCLAW_SANDBOX_NAME:-my-assistant}"
;;
"DGX Station")
- inference_summary="managed local vLLM"
- inference_disclosure="Managed vLLM pulls the configured vLLM image/model and runs a local vLLM inference container."
+ if [ "${STATION_DEEPSEEK:-}" = "1" ]; then
+ inference_summary="managed local vLLM with DeepSeek V4 Flash"
+ inference_disclosure="Managed vLLM pulls the configured Station image/model and runs a local inference container."
+ elif [ -n "$(printf "%s" "${NEMOCLAW_VLLM_MODEL:-}" | tr -d '[:space:]')" ]; then
+ inference_summary="managed local vLLM with model ${NEMOCLAW_VLLM_MODEL}"
+ inference_disclosure="Managed vLLM pulls the configured vLLM image/model and runs a local inference container."
+ else
+ inference_summary="managed local vLLM with NVIDIA Nemotron 3 Ultra 550B"
+ inference_disclosure="Managed vLLM pulls the pinned Station image and approximately 352 GB model, then runs a local inference container."
+ fi
sandbox_summary="${NEMOCLAW_SANDBOX_NAME:-my-assistant}"
;;
"Windows WSL")
@@ -2918,6 +3002,7 @@ describe_express_install() {
maybe_offer_express_install() {
local platform
platform="$(detect_express_platform)"
+ validate_station_deepseek_override "$platform"
# Not on a platform we have an express recipe for — say nothing.
if [ -z "$platform" ]; then
return 0
@@ -2977,7 +3062,9 @@ maybe_offer_express_install() {
fi
;;
"DGX Station")
+ export NEMOCLAW_SANDBOX_NAME="${NEMOCLAW_SANDBOX_NAME:-my-assistant}"
export NEMOCLAW_PROVIDER=install-vllm
+ configure_station_express_model
;;
"Windows WSL")
export NEMOCLAW_PROVIDER=install-windows-ollama
@@ -3002,11 +3089,13 @@ main() {
NON_INTERACTIVE=""
ACCEPT_THIRD_PARTY_SOFTWARE=""
FRESH=""
+ STATION_DEEPSEEK=""
for arg in "$@"; do
case "$arg" in
--non-interactive) NON_INTERACTIVE=1 ;;
--yes-i-accept-third-party-software) ACCEPT_THIRD_PARTY_SOFTWARE=1 ;;
--fresh) FRESH=1 ;;
+ --station-deepseek) STATION_DEEPSEEK=1 ;;
--version | -v)
local version_suffix
version_suffix="$(installer_version_for_display)"
@@ -3045,6 +3134,12 @@ main() {
# or any other installer side effect.
resolve_nemoclaw_gateway_port >/dev/null
+ # Explicit express-only flags must fail before license state, Docker, build
+ # dependencies, or any other host mutation. maybe_offer_express_install
+ # repeats the same authoritative validation at the prompt boundary because
+ # it is also exercised directly by sourced-installer callers and tests.
+ preflight_explicit_express_flags
+
print_banner
# Fail-fast license-acceptance check (#2671). Headless curl|bash still exits
diff --git a/src/lib/inference/vllm-models.test.ts b/src/lib/inference/vllm-models.test.ts
index bbe843206e2..aa8d33a9e64 100644
--- a/src/lib/inference/vllm-models.test.ts
+++ b/src/lib/inference/vllm-models.test.ts
@@ -57,6 +57,50 @@ describe("vllm model registry", () => {
).toEqual(deepseek);
});
+ it("pins the DGX Station Nemotron Ultra serving recipe", () => {
+ const ultra = VLLM_MODELS.find((m) => m.envValue === "nemotron-3-ultra-550b-a55b");
+ expect(ultra).toBeDefined();
+ expect(ultra!.id).toBe("nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4");
+ expect(ultra!.revision).toBe("183968f87ae4cedce3039313cac1fd43d112c578");
+ expect(ultra!.servedModelId).toBe("nvidia/nemotron-3-ultra-550b-a55b");
+ expect(ultra!.runtime).toEqual({
+ image:
+ "vllm/vllm-openai@sha256:0fec7ec5f3e6bc168e54899935fb0557da908a4832a1dbc88e2debcf2f889416",
+ imageDownloadSizeBytes: 10_670_087_425,
+ modelDownloadSizeBytes: 352_381_245_521,
+ loadTimeoutSec: 3600,
+ dockerRunArgs: ["--shm-size", "16g", "--ulimit", "memlock=-1", "--ulimit", "stack=67108864"],
+ });
+
+ const cmd = buildVllmServeCommand(ultra!);
+ expect(cmd).toBe(
+ [
+ "export VLLM_WEIGHT_OFFLOADING_DISABLE_PIN_MEMORY=1",
+ "&& export VLLM_NVFP4_GEMM_BACKEND=flashinfer-trtllm",
+ "&& vllm serve nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4",
+ "--tensor-parallel-size 1",
+ "--pipeline-parallel-size 1",
+ "--data-parallel-size 1",
+ "--port 8000",
+ "--trust-remote-code",
+ "--max-model-len 262144",
+ "--revision 183968f87ae4cedce3039313cac1fd43d112c578",
+ "--served-model-name nvidia/nemotron-3-ultra-550b-a55b",
+ "--host 0.0.0.0",
+ "--cpu-offload-gb 150",
+ "--cpu-offload-params experts",
+ `--kernel_config '{"enable_flashinfer_autotune": false}'`,
+ `--speculative-config '{"method":"nemotron_h_mtp","num_speculative_tokens":3}'`,
+ "--max-num-seqs 256",
+ "--gpu-memory-utilization 0.9",
+ "--reasoning-parser nemotron_v3",
+ "--enable-auto-tool-choice",
+ "--tool-call-parser qwen3_coder",
+ `--default-chat-template-kwargs '{"enable_thinking":true,"force_nonempty_content":true}'`,
+ ].join(" "),
+ );
+ });
+
it("rejects an unknown NEMOCLAW_VLLM_MODEL with a helpful message", () => {
expect(() =>
selectVllmModelFromEnv({ NEMOCLAW_VLLM_MODEL: "made-up-model" } as NodeJS.ProcessEnv),
@@ -267,6 +311,7 @@ describe("modelsForPlatform", () => {
expect(slugs).toContain("nemotron-3-nano-4b");
expect(slugs).toContain("deepseek-r1-distill-70b");
expect(slugs).toContain("deepseek-v4-flash");
+ expect(slugs).toContain("nemotron-3-ultra-550b-a55b");
expect(slugs).not.toContain("qwen3.6-35b-a3b-nvfp4");
});
diff --git a/src/lib/inference/vllm-models.ts b/src/lib/inference/vllm-models.ts
index 7359fc9bfd0..e0b927e61e9 100644
--- a/src/lib/inference/vllm-models.ts
+++ b/src/lib/inference/vllm-models.ts
@@ -5,8 +5,9 @@
* Registry of models the express vLLM install path knows how to serve.
*
* Each entry pins the model-specific `vllm serve` flags (reasoning parser,
- * tool-call parser, max model length, load format) so the express path can
- * swap models without leaving the wrong flags behind.
+ * tool-call parser, max model length, load format) and any required runtime
+ * image/container overrides so the express path can swap models without
+ * leaving the wrong recipe behind.
*
* Selection precedence in `installVllm`:
* 1. `NEMOCLAW_VLLM_MODEL=` for automation overrides.
@@ -28,6 +29,27 @@
export type VllmPlatform = "spark" | "station" | "linux";
+export interface VllmRuntimeOverride {
+ /** Model-specific runtime image, pinned by digest. */
+ image: string;
+ /** Compressed size of the selected platform manifest. */
+ imageDownloadSizeBytes: number;
+ /** Size of the pinned Hugging Face snapshot used for cache preflight. */
+ modelDownloadSizeBytes?: number;
+ /** Maximum time to wait for this model to become ready after launch. */
+ loadTimeoutSec?: number;
+ /** Additional `docker run` arguments required by this recipe. */
+ dockerRunArgs?: readonly string[];
+}
+
+export const NEMOTRON_ULTRA_STATION_IMAGE = {
+ tag: "vllm/vllm-openai:v0.22.0",
+ arm64: {
+ ref: "vllm/vllm-openai@sha256:0fec7ec5f3e6bc168e54899935fb0557da908a4832a1dbc88e2debcf2f889416",
+ downloadSizeBytes: 10_670_087_425,
+ },
+} as const;
+
export interface VllmModelDef {
/** Hugging Face model id (also passed to `vllm serve`). */
id: string;
@@ -37,6 +59,10 @@ export interface VllmModelDef {
envValue: string;
/** `--max-model-len` flag value. */
maxModelLen: number;
+ /** Immutable Hugging Face revision used for download and serving. */
+ revision?: string;
+ /** Stable model name exposed by the local OpenAI-compatible endpoint. */
+ servedModelId?: string;
/** Model-specific flags appended after the shared serving flags. */
modelArgs: string[];
/** True when the upstream HF repo requires accepting a licence. */
@@ -45,8 +71,9 @@ export interface VllmModelDef {
* Platforms whose interactive picker should offer this entry. Models with
* platform-specific flags (the NVFP4 MoE checkpoint targets `sm_121a` only,
* the very large V4 Flash recipe wants Station-class VRAM) appear only on
- * profiles they can actually run on. Non-interactive callers and direct
- * `NEMOCLAW_VLLM_MODEL` overrides bypass the filter.
+ * profiles they can actually run on. Direct `NEMOCLAW_VLLM_MODEL`
+ * overrides normally bypass the picker filter, but a model-specific runtime
+ * is rejected outside this list so an incompatible image is never pulled.
*/
platforms: readonly VllmPlatform[];
/**
@@ -56,6 +83,10 @@ export interface VllmModelDef {
* container shell.
*/
serveEnv?: Record;
+ /** Runtime overrides for recipes that cannot use the platform image. */
+ runtime?: VllmRuntimeOverride;
+ /** Whether startup must install vLLM's fastsafetensors extra. Defaults to true. */
+ installFastSafetensors?: boolean;
}
export const VLLM_MODELS: readonly VllmModelDef[] = [
@@ -169,6 +200,58 @@ export const VLLM_MODELS: readonly VllmModelDef[] = [
gated: false,
platforms: ["station"],
},
+ {
+ id: "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4",
+ label: "NVIDIA Nemotron 3 Ultra 550B NVFP4",
+ envValue: "nemotron-3-ultra-550b-a55b",
+ maxModelLen: 262144,
+ revision: "183968f87ae4cedce3039313cac1fd43d112c578",
+ // Keep the route identity aligned with NemoClaw's existing managed
+ // Nemotron Ultra compatibility manifests and request adapters.
+ servedModelId: "nvidia/nemotron-3-ultra-550b-a55b",
+ modelArgs: [
+ "--host",
+ "0.0.0.0",
+ "--cpu-offload-gb",
+ "150",
+ "--cpu-offload-params",
+ "experts",
+ "--kernel_config",
+ `'{"enable_flashinfer_autotune": false}'`,
+ "--speculative-config",
+ `'{"method":"nemotron_h_mtp","num_speculative_tokens":3}'`,
+ "--max-num-seqs",
+ "256",
+ "--gpu-memory-utilization",
+ "0.9",
+ "--reasoning-parser",
+ "nemotron_v3",
+ "--enable-auto-tool-choice",
+ "--tool-call-parser",
+ "qwen3_coder",
+ "--default-chat-template-kwargs",
+ `'{"enable_thinking":true,"force_nonempty_content":true}'`,
+ ],
+ gated: false,
+ platforms: ["station"],
+ serveEnv: {
+ VLLM_WEIGHT_OFFLOADING_DISABLE_PIN_MEMORY: "1",
+ VLLM_NVFP4_GEMM_BACKEND: "flashinfer-trtllm",
+ },
+ runtime: {
+ image: NEMOTRON_ULTRA_STATION_IMAGE.arm64.ref,
+ imageDownloadSizeBytes: NEMOTRON_ULTRA_STATION_IMAGE.arm64.downloadSizeBytes,
+ modelDownloadSizeBytes: 352_381_245_521,
+ loadTimeoutSec: 3600,
+ // Keep NemoClaw's bridge-networked local-inference boundary instead of
+ // importing the playbook's host-network setting.
+ dockerRunArgs: ["--shm-size", "16g", "--ulimit", "memlock=-1", "--ulimit", "stack=67108864"],
+ },
+ // The digest-pinned vLLM image already contains the serving package, and
+ // this recipe does not use the fastsafetensors load format. Avoid mutating
+ // the reviewed runtime from the package index when the container starts.
+ installFastSafetensors: false,
+ },
{
id: "nvidia/Qwen3.6-35B-A3B-NVFP4",
label: "Qwen3.6 35B-A3B NVFP4",
@@ -380,9 +463,11 @@ function shellQuote(value: string): string {
* Build the `vllm serve` command line for the supplied model: the shared
* serving flags merged with the model-specific args from the registry.
*
- * The command is prefixed with the `pip install` that pulls the
- * `fastsafetensors` extra so existing express scripts keep working; a model
- * may prepend env exports via `serveEnv`.
+ * By default the command is prefixed with the `pip install` that pulls the
+ * `fastsafetensors` extra so existing express scripts keep working. A pinned
+ * runtime that already contains everything its recipe needs may disable that
+ * mutation with `installFastSafetensors: false`; a model may also prepend env
+ * exports via `serveEnv`.
*/
export function buildVllmServeCommand(
model: VllmModelDef,
@@ -397,11 +482,12 @@ export function buildVllmServeCommand(
...SHARED_VLLM_ARGS,
"--max-model-len",
String(model.maxModelLen),
+ ...(model.revision ? ["--revision", model.revision] : []),
+ ...(model.servedModelId ? ["--served-model-name", model.servedModelId] : []),
...model.modelArgs,
];
const extraArgs = parseVllmExtraServeArgs(env).map(shellQuote);
- return `${envPrefix}pip install vllm[fastsafetensors] && vllm serve ${model.id} ${[
- ...args,
- ...extraArgs,
- ].join(" ")}`;
+ const setup =
+ model.installFastSafetensors === false ? "" : "pip install vllm[fastsafetensors] && ";
+ return `${envPrefix}${setup}vllm serve ${model.id} ${[...args, ...extraArgs].join(" ")}`;
}
diff --git a/src/lib/inference/vllm-storage.test.ts b/src/lib/inference/vllm-storage.test.ts
index c9b56d23c31..07a3c578865 100644
--- a/src/lib/inference/vllm-storage.test.ts
+++ b/src/lib/inference/vllm-storage.test.ts
@@ -3,9 +3,13 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import {
+ findUnwritableTreePath,
formatStorageBytes,
imageStorageRequirementBytes,
+ measureDirectorySizeBytes,
+ modelStorageRequirementBytes,
probeDockerStorage,
+ probeHostStorage,
resolveDockerStorageLocations,
} from "./vllm-storage";
@@ -42,12 +46,163 @@ describe("managed vLLM image-storage requirements", () => {
);
});
+ it("reserves the pinned snapshot plus staging space for a model download", () => {
+ expect(modelStorageRequirementBytes(352_381_245_521)).toBe(352_381_245_521n + 3n * GIB);
+ expect(() => modelStorageRequirementBytes(0)).toThrow(
+ "vLLM model download size must be a positive finite byte count",
+ );
+ });
+
it("formats available and required bytes as rounded GiB values", () => {
expect(formatStorageBytes(2n * GIB)).toBe("2 GiB");
expect(formatStorageBytes((23n * GIB) / 10n)).toBe("2.3 GiB");
});
});
+describe("host cache-storage detection", () => {
+ it("finds an unwritable root-created cache directory", () => {
+ expect(
+ findUnwritableTreePath("/home/user/.cache/huggingface", {
+ canWrite: (target) => target !== "/home/user/.cache/huggingface",
+ list: () => [],
+ }),
+ ).toBe("/home/user/.cache/huggingface");
+ });
+
+ it("finds root-owned descendants before a host-UID download", () => {
+ const entries = new Map([
+ [
+ "/cache",
+ [
+ { kind: "directory" as const, name: "hub" },
+ { kind: "file" as const, name: "version.txt" },
+ ],
+ ],
+ ["/cache/hub", [{ kind: "file" as const, name: "root-owned-blob" }]],
+ ]);
+ const checked: string[] = [];
+
+ expect(
+ findUnwritableTreePath("/cache", {
+ canWrite: (target) => {
+ checked.push(target);
+ return target !== "/cache/hub/root-owned-blob";
+ },
+ list: (target) => entries.get(target) ?? [],
+ }),
+ ).toBe("/cache/hub/root-owned-blob");
+ expect(checked).toEqual(expect.arrayContaining(["/cache", "/cache/version.txt", "/cache/hub"]));
+ });
+
+ it("accepts a writable cache tree", () => {
+ expect(
+ findUnwritableTreePath("/cache", {
+ canWrite: () => true,
+ list: () => [],
+ }),
+ ).toBeNull();
+ });
+
+ it("counts complete and partial snapshot files without following directory symlinks", () => {
+ const entries = new Map([
+ [
+ "/cache/snapshot",
+ [
+ { kind: "file" as const, name: "config.json" },
+ { kind: "directory" as const, name: "weights" },
+ { kind: "symlink" as const, name: "tokenizer.json" },
+ { kind: "symlink" as const, name: "directory-link" },
+ ],
+ ],
+ ["/cache/snapshot/weights", [{ kind: "symlink" as const, name: "model-00001.safetensors" }]],
+ ]);
+ const sizes = new Map([
+ ["/cache/snapshot/config.json", 100n],
+ ["/cache/snapshot/tokenizer.json", 200n],
+ ["/cache/snapshot/weights/model-00001.safetensors", 1_000n],
+ ["/cache/snapshot/directory-link", null],
+ ]);
+
+ expect(
+ measureDirectorySizeBytes("/cache/snapshot", {
+ exists: () => true,
+ list: (target) => entries.get(target) ?? [],
+ statFileSize: (target) => sizes.get(target) ?? null,
+ }),
+ ).toBe(1_300n);
+ });
+
+ it("treats a missing or unreadable snapshot as uncached", () => {
+ expect(
+ measureDirectorySizeBytes("/cache/missing", {
+ exists: () => false,
+ }),
+ ).toBe(0n);
+ expect(
+ measureDirectorySizeBytes("/cache/interrupted", {
+ exists: () => true,
+ list: () => {
+ throw new Error("broken link");
+ },
+ }),
+ ).toBe(0n);
+ });
+
+ it("measures the filesystem containing an existing cache directory", () => {
+ const statfs = vi.fn(() => ({ bavail: 400n, bsize: GIB }));
+
+ expect(
+ probeHostStorage("/home/user/.cache/huggingface", "Hugging Face cache", {
+ exists: () => true,
+ statfs,
+ }),
+ ).toEqual({
+ ok: true,
+ capacity: {
+ availableBytes: 400n * GIB,
+ path: "/home/user/.cache/huggingface",
+ source: "Hugging Face cache",
+ },
+ });
+ expect(statfs).toHaveBeenCalledWith("/home/user/.cache/huggingface");
+ });
+
+ it("measures the nearest existing ancestor before a first cache download", () => {
+ const statfs = vi.fn(() => ({ bavail: 500n, bsize: GIB }));
+
+ expect(
+ probeHostStorage("/home/user/.cache/huggingface", "Hugging Face cache", {
+ exists: (target) => target === "/home/user",
+ statfs,
+ }),
+ ).toEqual({
+ ok: true,
+ capacity: {
+ availableBytes: 500n * GIB,
+ path: "/home/user/.cache/huggingface",
+ source: "Hugging Face cache",
+ },
+ });
+ expect(statfs).toHaveBeenCalledWith("/home/user");
+ });
+
+ it("reports an inconclusive host probe without creating the cache path", () => {
+ expect(
+ probeHostStorage("/mnt/models/huggingface", "Hugging Face cache", {
+ exists: (target) => target === "/mnt",
+ statfs: () => {
+ throw new Error("mount unavailable");
+ },
+ }),
+ ).toEqual({
+ ok: false,
+ reason: "could not inspect /mnt: mount unavailable",
+ path: "/mnt/models/huggingface",
+ source: "Hugging Face cache",
+ });
+ });
+});
+
describe("Docker image-storage detection", () => {
it("measures DockerRootDir for the classic image store (#6757)", () => {
const statfs = vi.fn(() => ({ bavail: 7n, bsize: GIB }));
diff --git a/src/lib/inference/vllm-storage.ts b/src/lib/inference/vllm-storage.ts
index f197a0d78cc..4b65bab227c 100644
--- a/src/lib/inference/vllm-storage.ts
+++ b/src/lib/inference/vllm-storage.ts
@@ -10,7 +10,7 @@ import { buildVllmDockerEnv } from "./vllm-docker-env";
export const VLLM_STORAGE_OVERRIDE_ENV = "NEMOCLAW_IGNORE_VLLM_DISK_SPACE";
const GIB_BYTES = 1024n ** 3n;
-const IMAGE_PULL_TEMP_HEADROOM_BYTES = 3n * GIB_BYTES;
+const DOWNLOAD_TEMP_HEADROOM_BYTES = 3n * GIB_BYTES;
const DEFAULT_CONTAINERD_ROOT = "/var/lib/containerd";
const DEFAULT_CONTAINERD_CONFIG = "/etc/containerd/config.toml";
const DEFAULT_DOCKER_SOCKET_PATHS = new Set(["/var/run/docker.sock", "/run/docker.sock"]);
@@ -82,8 +82,18 @@ function positiveBytes(value: number, label: string): bigint {
*/
export function imageStorageRequirementBytes(downloadSizeBytes: number): bigint {
return (
- positiveBytes(downloadSizeBytes, "vLLM image download size") * 3n +
- IMAGE_PULL_TEMP_HEADROOM_BYTES
+ positiveBytes(downloadSizeBytes, "vLLM image download size") * 3n + DOWNLOAD_TEMP_HEADROOM_BYTES
+ );
+}
+
+/**
+ * Hugging Face downloads stream into the target cache before atomically
+ * promoting the completed blobs. Reserve the pinned snapshot size plus the
+ * same fixed staging allowance used by the managed-image guard.
+ */
+export function modelStorageRequirementBytes(downloadSizeBytes: number): bigint {
+ return (
+ positiveBytes(downloadSizeBytes, "vLLM model download size") + DOWNLOAD_TEMP_HEADROOM_BYTES
);
}
@@ -286,3 +296,172 @@ export function probeDockerStorage(overrides: Partial = {}): S
? { ok: true, capacity: limiting }
: { ok: false, reason: "docker info did not report a usable image-storage path" };
}
+
+interface HostStorageProbeDeps {
+ exists: (target: string) => boolean;
+ statfs: (target: string) => { bavail: bigint; bsize: bigint };
+}
+
+interface DirectorySizeEntry {
+ kind: "directory" | "file" | "symlink" | "other";
+ name: string;
+}
+
+interface WritableTreeDeps {
+ canWrite: (target: string, directory: boolean) => boolean;
+ list: (target: string) => DirectorySizeEntry[];
+}
+
+function defaultWritableTreeDeps(): WritableTreeDeps {
+ return {
+ canWrite: (target, directory) => {
+ try {
+ const mode = fs.constants.R_OK | fs.constants.W_OK | (directory ? fs.constants.X_OK : 0);
+ fs.accessSync(target, mode);
+ return true;
+ } catch {
+ return false;
+ }
+ },
+ list: defaultDirectorySizeDeps().list,
+ };
+}
+
+/**
+ * Return the first path in a cache tree that the current host user cannot
+ * read and write. Directories additionally require search permission. This
+ * catches legacy cache trees created by a root-run Docker downloader before
+ * a host-UID downloader is started. Symlinks are not followed because their
+ * targets are checked separately under the cache's blobs directory.
+ */
+export function findUnwritableTreePath(
+ targetPath: string,
+ overrides: Partial = {},
+): string | null {
+ const deps = { ...defaultWritableTreeDeps(), ...overrides };
+ const pending = [targetPath];
+ while (pending.length > 0) {
+ const directory = pending.pop()!;
+ if (!deps.canWrite(directory, true)) return directory;
+ let entries: DirectorySizeEntry[];
+ try {
+ entries = deps.list(directory);
+ } catch {
+ return directory;
+ }
+ for (const entry of entries) {
+ const entryPath = path.join(directory, entry.name);
+ if (entry.kind === "directory") {
+ pending.push(entryPath);
+ } else if (entry.kind === "file" && !deps.canWrite(entryPath, false)) {
+ return entryPath;
+ }
+ }
+ }
+ return null;
+}
+
+interface DirectorySizeDeps {
+ exists: (target: string) => boolean;
+ list: (target: string) => DirectorySizeEntry[];
+ statFileSize: (target: string) => bigint | null;
+}
+
+function defaultDirectorySizeDeps(): DirectorySizeDeps {
+ return {
+ exists: fs.existsSync,
+ list: (target) =>
+ fs.readdirSync(target, { withFileTypes: true }).map((entry) => ({
+ kind: entry.isDirectory()
+ ? "directory"
+ : entry.isFile()
+ ? "file"
+ : entry.isSymbolicLink()
+ ? "symlink"
+ : "other",
+ name: entry.name,
+ })),
+ statFileSize: (target) => {
+ const stat = fs.statSync(target, { bigint: true });
+ return stat.isFile() ? stat.size : null;
+ },
+ };
+}
+
+/**
+ * Return the logical bytes represented by regular files in a directory tree.
+ * Symlinks are followed only when they resolve to files; directory symlinks
+ * are never traversed, avoiding cycles. Any unreadable or malformed tree
+ * returns zero so callers conservatively plan for a full download.
+ */
+export function measureDirectorySizeBytes(
+ targetPath: string,
+ overrides: Partial = {},
+): bigint {
+ const deps = { ...defaultDirectorySizeDeps(), ...overrides };
+ if (!deps.exists(targetPath)) return 0n;
+ function walk(directory: string): bigint {
+ let total = 0n;
+ for (const entry of deps.list(directory)) {
+ const entryPath = path.join(directory, entry.name);
+ if (entry.kind === "directory") {
+ total += walk(entryPath);
+ } else if (entry.kind === "file" || entry.kind === "symlink") {
+ total += deps.statFileSize(entryPath) ?? 0n;
+ }
+ }
+ return total;
+ }
+ try {
+ return walk(targetPath);
+ } catch {
+ return 0n;
+ }
+}
+
+/**
+ * Measure the filesystem that will contain a host cache path. On a fresh
+ * install the cache directory may not exist yet, so walk to its nearest
+ * existing ancestor without creating anything before the capacity decision.
+ */
+export function probeHostStorage(
+ targetPath: string,
+ source: string,
+ overrides: Partial = {},
+): StorageProbeResult {
+ if (!path.isAbsolute(targetPath)) {
+ return {
+ ok: false,
+ reason: `storage path is not absolute: ${targetPath}`,
+ path: targetPath,
+ source,
+ };
+ }
+ const deps: HostStorageProbeDeps = {
+ exists: fs.existsSync,
+ statfs: (target) => fs.statfsSync(target, { bigint: true }),
+ ...overrides,
+ };
+ let probePath = path.normalize(targetPath);
+ while (!deps.exists(probePath)) {
+ const parent = path.dirname(probePath);
+ if (parent === probePath) break;
+ probePath = parent;
+ }
+ try {
+ const stats = deps.statfs(probePath);
+ const availableBytes = stats.bavail * stats.bsize;
+ if (availableBytes < 0n) throw new Error("filesystem reported negative available space");
+ return {
+ ok: true,
+ capacity: { availableBytes, path: targetPath, source },
+ };
+ } catch (err) {
+ return {
+ ok: false,
+ reason: `could not inspect ${probePath}: ${(err as Error).message}`,
+ path: targetPath,
+ source,
+ };
+ }
+}
diff --git a/src/lib/inference/vllm.test.ts b/src/lib/inference/vllm.test.ts
index 055783040a9..7812f4a1b93 100644
--- a/src/lib/inference/vllm.test.ts
+++ b/src/lib/inference/vllm.test.ts
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import { EventEmitter } from "node:events";
+import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
@@ -14,8 +15,11 @@ const mocks = vi.hoisted(() => ({
dockerRunDetached: vi.fn(),
dockerSpawn: vi.fn(),
dockerStop: vi.fn(),
+ findUnwritableTreePath: vi.fn(),
getGpuIndicesByName: vi.fn<(_pattern: RegExp) => number[]>(() => []),
+ measureDirectorySizeBytes: vi.fn(),
probeDockerStorage: vi.fn(),
+ probeHostStorage: vi.fn(),
runCapture: vi.fn(),
}));
@@ -42,11 +46,15 @@ vi.mock("./vllm-storage", async (importOriginal) => {
const actual = await importOriginal();
return {
...actual,
+ findUnwritableTreePath: mocks.findUnwritableTreePath,
+ measureDirectorySizeBytes: mocks.measureDirectorySizeBytes,
probeDockerStorage: mocks.probeDockerStorage,
+ probeHostStorage: mocks.probeHostStorage,
};
});
import {
+ assertVllmRegistryDigestRef,
buildVllmRunArgs,
detectVllmProfile,
installVllm,
@@ -54,17 +62,45 @@ import {
NEMOCLAW_VLLM_CONTAINER_NAME,
NEMOCLAW_VLLM_MANAGED_LABEL,
pullImage,
+ resolveVllmRuntimeProfile,
resolveVllmServedModelId,
+ VLLM_IMAGES,
} from "./vllm";
+import { buildVllmServeCommand, VLLM_MODELS } from "./vllm-models";
beforeEach(() => {
mocks.dockerImageInspectFormat.mockReturnValue("");
+ mocks.findUnwritableTreePath.mockReturnValue(null);
+ mocks.measureDirectorySizeBytes.mockReturnValue(0n);
mocks.probeDockerStorage.mockReturnValue({
ok: true,
capacity: { availableBytes: 1_000_000_000_000n, path: "/docker", source: "Docker" },
});
+ mocks.probeHostStorage.mockReturnValue({
+ ok: true,
+ capacity: {
+ availableBytes: 1_000_000_000_000n,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ },
+ });
});
+function currentHostIdentity(): string | null {
+ const uid = process.getuid?.();
+ const gid = process.getgid?.();
+ return uid === undefined || gid === undefined ? null : `${String(uid)}:${String(gid)}`;
+}
+
+function inconclusiveModelStorage(reason = "statfs unavailable") {
+ return {
+ ok: false as const,
+ reason,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ };
+}
+
function mockDockerSpawnSuccess(): EventEmitter & {
stdout: EventEmitter;
stderr: EventEmitter;
@@ -141,6 +177,64 @@ describe("vLLM served route identity", () => {
});
});
+describe("managed vLLM image distribution boundary", () => {
+ const digest = `sha256:${"a".repeat(64)}`;
+
+ it("accepts repository-qualified immutable registry digests", () => {
+ expect(() => assertVllmRegistryDigestRef(`vllm/vllm-openai@${digest}`)).not.toThrow();
+ expect(() =>
+ assertVllmRegistryDigestRef(`registry.example.test:5000/team/runtime@${digest}`),
+ ).not.toThrow();
+ });
+
+ it.each([
+ `sha256:${"a".repeat(64)}`,
+ "vllm/vllm-openai:latest",
+ `ubuntu@${digest}`,
+ `vllm/vllm-openai@sha256:${"A".repeat(64)}`,
+ `vllm/vllm-openai@${digest}suffix`,
+ ` vllm/vllm-openai@${digest}`,
+ `vllm/vllm-openai@${digest} `,
+ ])("rejects an unpullable or mutable product image reference %j", (image) => {
+ expect(() => assertVllmRegistryDigestRef(image)).toThrow(
+ /pullable immutable registry reference/,
+ );
+ });
+
+ it("keeps every shipped managed-vLLM image on a registry digest", () => {
+ const platformRefs = Object.values(VLLM_IMAGES).flatMap((imageSet) =>
+ Object.values(imageSet)
+ .map((value) =>
+ typeof value === "object" && value !== null && "ref" in value ? String(value.ref) : null,
+ )
+ .filter((ref): ref is string => ref !== null),
+ );
+ const runtimeRefs = VLLM_MODELS.map((model) => model.runtime?.image).filter(
+ (ref): ref is string => typeof ref === "string",
+ );
+ const refs = new Set([...platformRefs, ...runtimeRefs]);
+
+ expect(refs.size).toBeGreaterThan(0);
+ for (const ref of refs) {
+ expect(() => assertVllmRegistryDigestRef(ref), ref).not.toThrow();
+ }
+ });
+
+ it("refuses a local image ID before invoking Docker pull", async () => {
+ mocks.dockerPullWithProgressWatchdog.mockClear();
+ const profile = {
+ ...detectVllmProfile({ platform: "station", type: "nvidia" })!,
+ image: `sha256:${"a".repeat(64)}`,
+ };
+
+ await expect(pullImage(profile)).resolves.toEqual({
+ ok: false,
+ reason: expect.stringContaining("Local image IDs"),
+ });
+ expect(mocks.dockerPullWithProgressWatchdog).not.toHaveBeenCalled();
+ });
+});
+
describe("vLLM profile detection", () => {
beforeEach(() => {
vi.clearAllMocks();
@@ -159,6 +253,57 @@ describe("vLLM profile detection", () => {
expect(profile!.defaultModel.envValue).toBe("deepseek-v4-flash");
});
+ it("resolves Nemotron Ultra to the pinned Station runtime on the bridge network", () => {
+ mocks.getGpuIndicesByName.mockReturnValue([0]);
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" });
+ const ultra = VLLM_MODELS.find((model) => model.envValue === "nemotron-3-ultra-550b-a55b");
+
+ expect(profile).not.toBeNull();
+ expect(ultra).toBeDefined();
+ const runtime = resolveVllmRuntimeProfile(profile!, ultra!);
+ expect(runtime.image).toBe(
+ "vllm/vllm-openai@sha256:0fec7ec5f3e6bc168e54899935fb0557da908a4832a1dbc88e2debcf2f889416",
+ );
+ expect(runtime.imageDownloadSizeBytes).toBe(10_670_087_425);
+ expect(runtime.modelDownloadSizeBytes).toBe(352_381_245_521);
+ expect(runtime.loadTimeoutSec).toBe(3600);
+ expect(runtime.buildDockerRunFlags!()).toEqual(
+ expect.arrayContaining(["--gpus", "device=0", "--shm-size", "16g"]),
+ );
+
+ const flags = runtime.buildDockerRunFlags!();
+ const args = buildVllmRunArgs(runtime, ultra!, flags, {} as NodeJS.ProcessEnv);
+ expect(args).toEqual([
+ "--pull=never",
+ "--restart",
+ "unless-stopped",
+ "--gpus",
+ "device=0",
+ "--ipc=host",
+ "-v",
+ `${path.join(os.homedir(), ".cache", "huggingface")}:/root/.cache/huggingface`,
+ "-e",
+ "HF_HOME=/root/.cache/huggingface",
+ "--shm-size",
+ "16g",
+ "--ulimit",
+ "memlock=-1",
+ "--ulimit",
+ "stack=67108864",
+ "--label",
+ `${NEMOCLAW_VLLM_MANAGED_LABEL}=true`,
+ "-p",
+ "8000:8000",
+ "--name",
+ NEMOCLAW_VLLM_CONTAINER_NAME,
+ "--entrypoint",
+ "/bin/bash",
+ runtime.image,
+ "-lc",
+ buildVllmServeCommand(ultra!, {} as NodeJS.ProcessEnv),
+ ]);
+ });
+
it("keeps DGX Spark on the Qwen3.6 35B NVFP4 default", () => {
const profile = detectVllmProfile({ platform: "spark", type: "nvidia" });
@@ -325,9 +470,10 @@ describe("vLLM run command", () => {
HF_TOKEN: "hf_test",
} as NodeJS.ProcessEnv);
- expect(args).toEqual(expect.arrayContaining(["--label", labelValue, "-e", "HF_TOKEN"]));
+ expect(args).toEqual(expect.arrayContaining(["--label", labelValue]));
expect(args).not.toContain(`--label ${labelValue}`);
expect(args).not.toContain("-e HF_TOKEN");
+ expect(args).not.toContain("HF_TOKEN");
expect(args.join(" ")).not.toContain("hf_test");
});
@@ -414,6 +560,7 @@ describe("managed vLLM ownership", () => {
describe("installVllm model resolution", () => {
let logSpy: ReturnType;
let errSpy: ReturnType;
+ let mkdirSpy: ReturnType;
let stdoutWrite: ReturnType;
const originalEnv = { ...process.env };
@@ -421,6 +568,7 @@ describe("installVllm model resolution", () => {
vi.clearAllMocks();
logSpy = vi.spyOn(console, "log").mockImplementation(() => {});
errSpy = vi.spyOn(console, "error").mockImplementation(() => {});
+ mkdirSpy = vi.spyOn(fs, "mkdirSync").mockImplementation(() => undefined);
stdoutWrite = vi.spyOn(process.stdout, "write").mockImplementation(() => true);
delete process.env.NEMOCLAW_VLLM_MODEL;
delete process.env.NEMOCLAW_VLLM_EXTRA_ARGS_JSON;
@@ -436,6 +584,7 @@ describe("installVllm model resolution", () => {
afterEach(() => {
logSpy.mockRestore();
errSpy.mockRestore();
+ mkdirSpy.mockRestore();
stdoutWrite.mockRestore();
process.env = { ...originalEnv };
});
@@ -457,6 +606,29 @@ describe("installVllm model resolution", () => {
expect(summary).not.toContain("NEMOCLAW_VLLM_MODEL override");
});
+ it("rejects a local image ID before callbacks, prompts, or Docker work", async () => {
+ const profile = {
+ ...detectVllmProfile({ platform: "station", type: "nvidia" })!,
+ image: `sha256:${"a".repeat(64)}`,
+ };
+ const promptFn = vi.fn<(q: string) => Promise>();
+ const beforeInstall = vi.fn();
+
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: true,
+ promptFn,
+ beforeInstall,
+ });
+
+ expect(result).toEqual({ ok: false });
+ expect(promptFn).not.toHaveBeenCalled();
+ expect(beforeInstall).not.toHaveBeenCalled();
+ expect(mocks.dockerPullWithProgressWatchdog).not.toHaveBeenCalled();
+ expect(mocks.dockerRunDetached).not.toHaveBeenCalled();
+ expect(errSpy).toHaveBeenCalledWith(expect.stringContaining("Local image IDs"));
+ });
+
it("annotates the summary as a NEMOCLAW_VLLM_MODEL override when the env var resolves", async () => {
process.env.NEMOCLAW_VLLM_MODEL = "qwen3.6-27b";
const profile = detectVllmProfile({ platform: "spark", type: "nvidia" })!;
@@ -474,6 +646,103 @@ describe("installVllm model resolution", () => {
expect(summary).toContain("Model: Qwen/Qwen3.6-27B-FP8 (NEMOCLAW_VLLM_MODEL override)");
});
+ it("rejects a Station-only runtime override before side effects on generic Linux", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "linux", type: "nvidia" })!;
+ const beforeInstall = vi.fn();
+
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ beforeInstall,
+ });
+
+ expect(result).toEqual({ ok: false });
+ expect(beforeInstall).not.toHaveBeenCalled();
+ expect(mocks.runCapture).not.toHaveBeenCalled();
+ expect(mocks.dockerPullWithProgressWatchdog).not.toHaveBeenCalled();
+ expect(mocks.dockerSpawn).not.toHaveBeenCalled();
+ const errors = errSpy.mock.calls.map((c: unknown[]) => String(c[0])).join("\n");
+ expect(errors).toContain(
+ "NVIDIA Nemotron 3 Ultra 550B NVFP4 is not supported on Linux + NVIDIA GPU",
+ );
+ });
+
+ it("installs the complete Nemotron Ultra Station recipe without another selection", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ const beforeInstall = vi.fn();
+ const promptFn = vi.fn<(q: string) => Promise>();
+ mockSuccessfulVllmInstall(profile.containerName);
+
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: true,
+ promptFn,
+ beforeInstall,
+ });
+
+ expect(result).toEqual({ ok: true });
+ expect(promptFn).not.toHaveBeenCalled();
+ expect(beforeInstall).toHaveBeenCalledWith("nvidia/nemotron-3-ultra-550b-a55b");
+ expect(mocks.measureDirectorySizeBytes).toHaveBeenCalledWith(
+ path.join(
+ os.homedir(),
+ ".cache",
+ "huggingface",
+ "hub",
+ "models--nvidia--NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4",
+ "snapshots",
+ "183968f87ae4cedce3039313cac1fd43d112c578",
+ ),
+ );
+ expect(mocks.probeHostStorage).toHaveBeenCalledWith(
+ path.join(os.homedir(), ".cache", "huggingface"),
+ "Hugging Face cache",
+ );
+ expect(mocks.probeHostStorage.mock.invocationCallOrder[0]).toBeLessThan(
+ mocks.dockerPullWithProgressWatchdog.mock.invocationCallOrder[0],
+ );
+ expect(mocks.probeHostStorage).toHaveBeenCalledTimes(2);
+ expect(mocks.dockerPullWithProgressWatchdog.mock.invocationCallOrder[0]).toBeLessThan(
+ mocks.probeHostStorage.mock.invocationCallOrder[1],
+ );
+ expect(mocks.probeHostStorage.mock.invocationCallOrder[1]).toBeLessThan(
+ mocks.dockerSpawn.mock.invocationCallOrder[0],
+ );
+ expect(mocks.dockerPullWithProgressWatchdog).toHaveBeenCalledWith(
+ "vllm/vllm-openai@sha256:0fec7ec5f3e6bc168e54899935fb0557da908a4832a1dbc88e2debcf2f889416",
+ expect.any(Object),
+ );
+ const [downloadArgs] = mocks.dockerSpawn.mock.calls[0] as [string[]];
+ expect(downloadArgs).toEqual(
+ expect.arrayContaining([
+ "-v",
+ `${path.join(os.homedir(), ".cache", "huggingface")}:/tmp/nemoclaw-huggingface`,
+ "-e",
+ "HF_HOME=/tmp/nemoclaw-huggingface",
+ "download",
+ "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4",
+ "--revision",
+ "183968f87ae4cedce3039313cac1fd43d112c578",
+ ]),
+ );
+ const hostIdentity = currentHostIdentity();
+ expect(downloadArgs.includes("--user")).toBe(hostIdentity !== null);
+ expect(downloadArgs).toEqual(
+ expect.arrayContaining(hostIdentity === null ? [] : ["--user", hostIdentity]),
+ );
+ expect(mkdirSpy).toHaveBeenCalledWith(path.join(os.homedir(), ".cache", "huggingface"), {
+ recursive: true,
+ });
+ const [runArgs] = mocks.dockerRunDetached.mock.calls[0] as [string[]];
+ expect(runArgs).toEqual(expect.arrayContaining(["--shm-size", "16g", "-p", "8000:8000"]));
+ expect(runArgs).not.toContain("--network");
+ expect(runArgs.at(-1)).toContain("--cpu-offload-gb 150");
+ expect(runArgs.at(-1)).toContain("--reasoning-parser nemotron_v3");
+ });
+
it("offers the interactive picker when no env override is set", async () => {
const profile = detectVllmProfile({ platform: "spark", type: "nvidia" })!;
const queue = ["", "n"];
@@ -581,6 +850,274 @@ describe("installVllm model resolution", () => {
expect(errors).toContain("docker system df");
});
+ it("stops an absent or interrupted Ultra download when the HF cache is too small", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.probeHostStorage.mockReturnValue({
+ ok: true,
+ capacity: {
+ availableBytes: 1n,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ },
+ });
+
+ const result = await installVllm(profile, {
+ hasImage: false,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+
+ expect(result).toEqual({ ok: false });
+ expect(mocks.probeHostStorage).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerImageInspectFormat).not.toHaveBeenCalled();
+ expect(mocks.probeDockerStorage).not.toHaveBeenCalled();
+ expect(mocks.dockerPullWithProgressWatchdog).not.toHaveBeenCalled();
+ expect(mocks.dockerSpawn).not.toHaveBeenCalled();
+ expect(mocks.dockerRunDetached).not.toHaveBeenCalled();
+ expect(mkdirSpy).not.toHaveBeenCalled();
+ const errors = errSpy.mock.calls.map((call: unknown[]) => String(call[0])).join("\n");
+ expect(errors).toContain("Insufficient storage for the managed vLLM model cache");
+ expect(errors).toContain("nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4");
+ expect(errors).toContain("Hugging Face cache");
+ expect(errors).toContain("Non-interactive setup stops before the guarded download");
+ });
+
+ it("fails closed before downloads when non-interactive model-cache capacity is inconclusive", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.probeHostStorage.mockReturnValue(inconclusiveModelStorage());
+ const result = await installVllm(profile, {
+ hasImage: false,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+ expect(result).toEqual({ ok: false });
+ expect(mocks.probeHostStorage).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerImageInspectFormat).not.toHaveBeenCalled();
+ expect(mocks.probeDockerStorage).not.toHaveBeenCalled();
+ expect(mocks.dockerPullWithProgressWatchdog).not.toHaveBeenCalled();
+ expect(mocks.dockerSpawn).not.toHaveBeenCalled();
+ expect(mocks.dockerRunDetached).not.toHaveBeenCalled();
+ expect(mkdirSpy).not.toHaveBeenCalled();
+ const errors = errSpy.mock.calls.map((call: unknown[]) => String(call[0])).join("\n");
+ expect(errors).toContain("Unable to verify storage for the managed vLLM model cache");
+ expect(errors).toContain("statfs unavailable");
+ expect(errors).toContain("Non-interactive setup stops before the guarded download");
+ expect(errors).toContain("NEMOCLAW_IGNORE_VLLM_DISK_SPACE=1");
+ });
+
+ it.each([
+ { reply: "y", expected: { ok: true }, pulls: 1, downloads: 1 },
+ { reply: "n", expected: { ok: false }, pulls: 0, downloads: 0 },
+ { reply: "", expected: { ok: false }, pulls: 0, downloads: 0 },
+ ])("requires an explicit interactive '$reply' for an inconclusive model-cache probe", async ({
+ reply,
+ expected,
+ pulls,
+ downloads,
+ }) => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.dockerImageInspectFormat.mockReturnValue("sha256:cached-image");
+ mocks.probeHostStorage.mockReturnValue(inconclusiveModelStorage());
+ const replies = ["y", reply];
+ const promptFn = vi.fn(async () => replies.shift() ?? "");
+
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: false,
+ promptFn,
+ });
+
+ expect(result).toEqual(expected);
+ expect(promptFn).toHaveBeenCalledTimes(2);
+ expect(promptFn).toHaveBeenLastCalledWith(" Continue with the model download anyway? [y/N]: ");
+ expect(mocks.dockerPullWithProgressWatchdog).toHaveBeenCalledTimes(pulls);
+ expect(mocks.dockerSpawn).toHaveBeenCalledTimes(downloads);
+ });
+
+ it("allows an inconclusive model-cache probe only with the exact disk-space override", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ process.env.NEMOCLAW_IGNORE_VLLM_DISK_SPACE = "1";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.dockerImageInspectFormat.mockReturnValue("sha256:cached-image");
+ mocks.probeHostStorage.mockReturnValue(inconclusiveModelStorage());
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+ expect(result).toEqual({ ok: true });
+ expect(mocks.probeHostStorage).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerPullWithProgressWatchdog).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerSpawn).toHaveBeenCalledTimes(1);
+ expect(errSpy).toHaveBeenCalledWith(
+ expect.stringContaining("Continuing because NEMOCLAW_IGNORE_VLLM_DISK_SPACE=1"),
+ );
+ });
+
+ it("re-probes after a cold image pull to prevent shared-filesystem overcommit", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.probeHostStorage
+ // The model and image checks can each pass against this initial free
+ // space even though their combined cold-download footprint cannot.
+ .mockReturnValueOnce({
+ ok: true,
+ capacity: {
+ availableBytes: 360_000_000_000n,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ },
+ })
+ // Account for image layers consumed on the same filesystem.
+ .mockReturnValueOnce({
+ ok: true,
+ capacity: {
+ availableBytes: 340_000_000_000n,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ },
+ });
+
+ const result = await installVllm(profile, {
+ hasImage: false,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+
+ expect(result).toEqual({ ok: false });
+ expect(mocks.probeHostStorage).toHaveBeenCalledTimes(2);
+ expect(mocks.dockerPullWithProgressWatchdog).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerSpawn).not.toHaveBeenCalled();
+ expect(mocks.dockerRunDetached).not.toHaveBeenCalled();
+ expect(errSpy).toHaveBeenCalledWith(
+ expect.stringContaining("Insufficient storage for the managed vLLM model cache"),
+ );
+ });
+
+ it("stops when the post-pull model-cache capacity re-probe is inconclusive", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.probeHostStorage
+ .mockReturnValueOnce({
+ ok: true,
+ capacity: {
+ availableBytes: 1_000_000_000_000n,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ },
+ })
+ .mockReturnValueOnce(inconclusiveModelStorage("statfs unavailable after image pull"));
+
+ const result = await installVllm(profile, {
+ hasImage: false,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+
+ expect(result).toEqual({ ok: false });
+ expect(mocks.probeHostStorage).toHaveBeenCalledTimes(2);
+ expect(mocks.dockerPullWithProgressWatchdog).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerSpawn).not.toHaveBeenCalled();
+ expect(mocks.dockerRunDetached).not.toHaveBeenCalled();
+ expect(errSpy).toHaveBeenCalledWith(
+ expect.stringContaining("Unable to verify storage for the managed vLLM model cache"),
+ );
+ });
+
+ it("requires only missing snapshot bytes plus headroom for a partial Ultra cache", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.dockerImageInspectFormat.mockReturnValue("sha256:cached-image");
+ mocks.measureDirectorySizeBytes.mockReturnValue(342_381_245_521n);
+ mocks.probeHostStorage.mockReturnValue({
+ ok: true,
+ capacity: {
+ // 10 GB remains, plus the shared 3 GiB staging allowance. This is
+ // enough for the remainder but intentionally far below 352 GB.
+ availableBytes: 14_000_000_000n,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ },
+ });
+
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+
+ expect(result).toEqual({ ok: true });
+ expect(mocks.probeHostStorage).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerPullWithProgressWatchdog).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerSpawn).toHaveBeenCalledTimes(1);
+ });
+
+ it("skips the capacity gate for a complete pinned Ultra snapshot", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.dockerImageInspectFormat.mockReturnValue("sha256:cached-image");
+ mocks.measureDirectorySizeBytes.mockReturnValue(352_381_245_521n);
+ mocks.probeHostStorage.mockReturnValue({
+ ok: true,
+ capacity: {
+ availableBytes: 1n,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ },
+ });
+
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+
+ expect(result).toEqual({ ok: true });
+ expect(mocks.measureDirectorySizeBytes).toHaveBeenCalledTimes(1);
+ expect(mocks.probeHostStorage).not.toHaveBeenCalled();
+ expect(mocks.dockerSpawn).toHaveBeenCalledTimes(1);
+ });
+
+ it("uses the dedicated disk-space override for a low Ultra model cache", async () => {
+ process.env.NEMOCLAW_VLLM_MODEL = "nemotron-3-ultra-550b-a55b";
+ process.env.NEMOCLAW_IGNORE_VLLM_DISK_SPACE = "1";
+ const profile = detectVllmProfile({ platform: "station", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.dockerImageInspectFormat.mockReturnValue("sha256:cached-image");
+ mocks.probeHostStorage.mockReturnValue({
+ ok: true,
+ capacity: {
+ availableBytes: 1n,
+ path: path.join(os.homedir(), ".cache", "huggingface"),
+ source: "Hugging Face cache",
+ },
+ });
+
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+
+ expect(result).toEqual({ ok: true });
+ expect(mocks.dockerPullWithProgressWatchdog).toHaveBeenCalledTimes(1);
+ expect(mocks.dockerSpawn).toHaveBeenCalledTimes(1);
+ expect(errSpy).toHaveBeenCalledWith(
+ expect.stringContaining("NEMOCLAW_IGNORE_VLLM_DISK_SPACE=1"),
+ );
+ });
+
it("continues an uncached image pull only after an explicit storage yes (#6757)", async () => {
const profile = detectVllmProfile({ platform: "spark", type: "nvidia" })!;
process.env.NEMOCLAW_VLLM_MODEL = profile.defaultModel.envValue;
@@ -693,6 +1230,7 @@ describe("installVllm model resolution", () => {
expect.objectContaining({ env: expect.any(Object), ignoreError: true, timeout: 10_000 }),
);
expect(mocks.probeDockerStorage).not.toHaveBeenCalled();
+ expect(mocks.probeHostStorage).not.toHaveBeenCalled();
expect(mocks.dockerPullWithProgressWatchdog).toHaveBeenCalledTimes(1);
expect(mocks.dockerSpawn).toHaveBeenCalledTimes(1);
const [downloadArgs] = mocks.dockerSpawn.mock.calls[0] as [string[]];
@@ -755,7 +1293,57 @@ describe("installVllm model resolution", () => {
}
});
- it("starts the long-lived vLLM container through Docker argv, not a shell command", async () => {
+ it("fails before image pull when the host Hugging Face cache cannot be created", async () => {
+ const profile = detectVllmProfile({ platform: "spark", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mkdirSpy.mockImplementation(() => {
+ throw new Error("permission denied");
+ });
+
+ const result = await installVllm(profile, {
+ hasImage: false,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+
+ expect(result).toEqual({ ok: false });
+ expect(mocks.dockerPullWithProgressWatchdog).not.toHaveBeenCalled();
+ expect(mocks.dockerSpawn).not.toHaveBeenCalled();
+ expect(mocks.dockerRunDetached).not.toHaveBeenCalled();
+ expect(errSpy).toHaveBeenCalledWith(
+ expect.stringContaining("could not create Hugging Face cache directory"),
+ );
+ });
+
+ it("fails before image pull with a safe repair command for a root-owned cache", async () => {
+ const profile = detectVllmProfile({ platform: "spark", type: "nvidia" })!;
+ mockSuccessfulVllmInstall(profile.containerName);
+ mocks.dockerImageInspectFormat.mockReturnValue("sha256:cached-image");
+ const cacheDir = path.join(os.homedir(), ".cache", "huggingface");
+ const rootOwnedPath = path.join(cacheDir, "hub", ".locks");
+ mocks.findUnwritableTreePath.mockReturnValue(rootOwnedPath);
+
+ const result = await installVllm(profile, {
+ hasImage: true,
+ nonInteractive: true,
+ promptFn: vi.fn(),
+ });
+
+ expect(result).toEqual({ ok: false });
+ expect(mocks.findUnwritableTreePath).toHaveBeenCalledWith(cacheDir);
+ expect(mocks.dockerPullWithProgressWatchdog).not.toHaveBeenCalled();
+ expect(mocks.dockerSpawn).not.toHaveBeenCalled();
+ expect(mocks.dockerRunDetached).not.toHaveBeenCalled();
+ const errors = errSpy.mock.calls.map((call: unknown[]) => String(call[0])).join("\n");
+ expect(errors).toContain(rootOwnedPath);
+ expect(errors).toContain("not writable by host user");
+ expect(errors).toContain("NemoClaw did not modify it");
+ expect(errors).toContain("sudo chown -R");
+ expect(errors).toContain(`'${cacheDir}'`);
+ expect(errors).toContain(currentHostIdentity() ?? "$(id -u):$(id -g)");
+ });
+
+ it("limits the Hugging Face token to the one-shot download container", async () => {
process.env.HF_TOKEN = "hf_test";
const profile = detectVllmProfile({ platform: "spark", type: "nvidia" })!;
mockSuccessfulVllmInstall(profile.containerName);
@@ -769,27 +1357,28 @@ describe("installVllm model resolution", () => {
expect(result).toEqual({ ok: true });
expect(mocks.dockerForceRm).not.toHaveBeenCalled();
+ const [downloadArgs, downloadOpts] = mocks.dockerSpawn.mock.calls[0] as [
+ string[],
+ { env?: Record },
+ ];
+ expect(downloadArgs).toEqual(expect.arrayContaining(["-e", "HF_TOKEN"]));
+ expect(downloadArgs.join(" ")).not.toContain("hf_test");
+ expect(downloadOpts).toEqual(
+ expect.objectContaining({ env: expect.objectContaining({ HF_TOKEN: "hf_test" }) }),
+ );
expect(mocks.dockerRunDetached).toHaveBeenCalledTimes(1);
const [args, opts] = mocks.dockerRunDetached.mock.calls[0] as [
string[],
{ env?: Record },
];
expect(args).toEqual(
- expect.arrayContaining([
- "--pull=never",
- "--restart",
- "unless-stopped",
- "-e",
- "HF_TOKEN",
- profile.image,
- ]),
+ expect.arrayContaining(["--pull=never", "--restart", "unless-stopped", profile.image]),
);
+ expect(args).not.toContain("HF_TOKEN");
expect(args.join(" ")).not.toContain("hf_test");
expect(args.some((arg) => arg.includes("docker run"))).toBe(false);
expect(args[args.indexOf("-lc") + 1]).toContain("vllm serve");
- expect(opts).toEqual(
- expect.objectContaining({ env: expect.objectContaining({ HF_TOKEN: "hf_test" }) }),
- );
+ expect(opts.env).not.toHaveProperty("HF_TOKEN");
});
it("replaces only an existing managed container by its inspected ID", async () => {
diff --git a/src/lib/inference/vllm.ts b/src/lib/inference/vllm.ts
index 32a5e3023f7..a98de81b455 100644
--- a/src/lib/inference/vllm.ts
+++ b/src/lib/inference/vllm.ts
@@ -5,6 +5,7 @@
// offer vLLM at all" lives in onboard.ts; this module owns picking the
// right profile per platform and running the install.
+import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import {
@@ -18,6 +19,7 @@ import {
} from "../adapters/docker";
import { buildValidatedCurlCommandArgs } from "../adapters/http/curl-args";
import { VLLM_PORT } from "../core/ports";
+import { shellQuote } from "../core/shell-quote";
import { isAffirmativeAnswer } from "../onboard/prompt-helpers";
import { runCapture } from "../runner";
import { isSafeModelId } from "../validation";
@@ -25,6 +27,7 @@ import { getGpuIndicesByName } from "./nim";
import { buildVllmDockerEnv } from "./vllm-docker-env";
import {
buildVllmServeCommand,
+ NEMOTRON_ULTRA_STATION_IMAGE,
parseVllmExtraServeArgs,
VLLM_EXTRA_ARGS_ENV,
VLLM_MODELS,
@@ -33,9 +36,13 @@ import {
} from "./vllm-models";
import { resolveVllmInstallModel } from "./vllm-prompt";
import {
+ findUnwritableTreePath,
formatStorageBytes,
imageStorageRequirementBytes,
+ measureDirectorySizeBytes,
+ modelStorageRequirementBytes,
probeDockerStorage,
+ probeHostStorage,
type StorageProbeResult,
VLLM_STORAGE_OVERRIDE_ENV,
} from "./vllm-storage";
@@ -72,12 +79,16 @@ export interface VllmProfile {
pullTimeoutSec: number;
// Wall-clock budget for the load phase (after pull, before ready).
loadTimeoutSec: number;
+ // Optional pinned model snapshot size. Model-specific runtime overrides use
+ // this to guard the host Hugging Face cache before a cold download.
+ modelDownloadSizeBytes?: number;
}
// Platform manifests and decimal compressed sizes published by NGC for the
// named release tags. Pinning the digest makes a cache hit authoritative: an
// explicit pull cannot begin downloading different same-tag layers.
export const VLLM_IMAGES = {
+ vllm022: NEMOTRON_ULTRA_STATION_IMAGE,
ngc2603Post1: {
tag: "nvcr.io/nvidia/vllm:26.03.post1-py3",
amd64: {
@@ -120,6 +131,8 @@ const HF_TOKEN_ENV_KEYS = ["HF_TOKEN", "HUGGING_FACE_HUB_TOKEN"] as const;
const MODEL_DOWNLOAD_HEARTBEAT_MS = 30_000;
const VLLM_LAUNCH_HEARTBEAT_MS = 30_000;
const HF_CACHE_CONTAINER_DIR = "/root/.cache/huggingface";
+const HF_DOWNLOAD_CACHE_CONTAINER_DIR = "/tmp/nemoclaw-huggingface";
+const HF_CACHE_COMPONENT_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
export const NEMOCLAW_VLLM_CONTAINER_NAME = "nemoclaw-vllm";
export const NEMOCLAW_VLLM_MANAGED_LABEL = "com.nvidia.nemoclaw.managed-vllm";
const DOCKER_CONTAINER_ID_PATTERN = /^[a-f0-9]{12,64}$/;
@@ -132,6 +145,39 @@ function hfCacheMount(): string {
return `${hostHfCacheDir()}:${HF_CACHE_CONTAINER_DIR}`;
}
+function hfDownloadCacheMount(): string {
+ return `${hostHfCacheDir()}:${HF_DOWNLOAD_CACHE_CONTAINER_DIR}`;
+}
+
+function hfModelSnapshotDir(model: VllmModelDef): string | null {
+ const revision = model.revision;
+ const modelParts = model.id.split("/");
+ if (
+ !revision ||
+ !HF_CACHE_COMPONENT_PATTERN.test(revision) ||
+ modelParts.some((part) => !HF_CACHE_COMPONENT_PATTERN.test(part))
+ ) {
+ return null;
+ }
+ return path.join(
+ hostHfCacheDir(),
+ "hub",
+ `models--${modelParts.join("--")}`,
+ "snapshots",
+ revision,
+ );
+}
+
+function hostUserIdentity(): string | null {
+ if (typeof process.getuid !== "function" || typeof process.getgid !== "function") return null;
+ return `${String(process.getuid())}:${String(process.getgid())}`;
+}
+
+function hostUserDockerArgs(): string[] {
+ const identity = hostUserIdentity();
+ return identity ? ["--user", identity] : [];
+}
+
function vllmDockerRunFlags(gpuFlag = "all"): string[] {
return [
"--gpus",
@@ -155,16 +201,15 @@ function pickHfTokenEntry(
}
/**
- * Forward a Hugging Face token from the host into the vLLM/hf container so
- * `hf download` and `vllm serve` can pull weights for gated models.
+ * Forward a Hugging Face token from the host into the one-shot `hf download`
+ * container so gated model weights can be fetched.
*
* Returns the bare `-e KEY` form (no `=value`) so the token never lands in
* the host process list. Docker reads the actual value from its own
* environment, which the caller is responsible for populating via
* `buildHfTokenForwardEnv` when spawning through the runner allowlist.
- * The `hf download` container can live for several minutes during a cold
- * pull and `vllm serve` runs for the lifetime of the sandbox; argv-embedded
- * secrets would be visible via `ps` for that whole window.
+ * The download container can live for several minutes during a cold pull;
+ * argv-embedded secrets would be visible via `ps` for that whole window.
*/
export function buildHfTokenDockerArgs(env: NodeJS.ProcessEnv = process.env): string[] {
const entry = pickHfTokenEntry(env);
@@ -288,6 +333,11 @@ function dockerPrereqsOk(): { ok: boolean; reason?: string } {
}
export async function pullImage(profile: VllmProfile): Promise<{ ok: boolean; reason?: string }> {
+ try {
+ assertVllmRegistryDigestRef(profile.image);
+ } catch (err) {
+ return { ok: false, reason: (err as Error).message };
+ }
emit(`Pulling vLLM image: ${profile.image}`);
// Docker can be quiet while finalizing large layers on every supported vLLM
// profile, so all profiles intentionally share the 15-minute stall default.
@@ -325,16 +375,18 @@ function downloadModel(
"-t",
"--rm",
"--pull=never",
+ ...hostUserDockerArgs(),
"--entrypoint",
"hf",
"-v",
- hfCacheMount(),
+ hfDownloadCacheMount(),
"-e",
- `HF_HOME=${HF_CACHE_CONTAINER_DIR}`,
+ `HF_HOME=${HF_DOWNLOAD_CACHE_CONTAINER_DIR}`,
...buildHfTokenDockerArgs(),
profile.image,
"download",
model.id,
+ ...(model.revision ? ["--revision", model.revision] : []),
],
{
env: buildVllmDockerEnv(buildHfTokenForwardEnv()),
@@ -432,12 +484,10 @@ export function buildVllmRunArgs(
runFlags: readonly string[],
env: NodeJS.ProcessEnv = process.env,
): string[] {
+ assertVllmRegistryDigestRef(profile.image);
const image = validateDockerArg(profile.image, "vLLM image");
const containerName = validateDockerArg(profile.containerName, "vLLM container name");
- const safeRunFlags = validateDockerArgs(
- [...runFlags, ...buildHfTokenDockerArgs(env)],
- "vLLM docker run flags",
- );
+ const safeRunFlags = validateDockerArgs(runFlags, "vLLM docker run flags");
return [
"--pull=never",
"--restart",
@@ -457,6 +507,64 @@ export function buildVllmRunArgs(
];
}
+export function resolveVllmRuntimeProfile(profile: VllmProfile, model: VllmModelDef): VllmProfile {
+ const runtime = model.runtime;
+ let resolved = profile;
+ if (runtime) {
+ const extraRunArgs = [...(runtime.dockerRunArgs ?? [])];
+ resolved = {
+ ...profile,
+ image: runtime.image,
+ imageDownloadSizeBytes: runtime.imageDownloadSizeBytes,
+ modelDownloadSizeBytes: runtime.modelDownloadSizeBytes ?? profile.modelDownloadSizeBytes,
+ loadTimeoutSec: runtime.loadTimeoutSec ?? profile.loadTimeoutSec,
+ dockerRunFlags: [...profile.dockerRunFlags, ...extraRunArgs],
+ buildDockerRunFlags: profile.buildDockerRunFlags
+ ? () => [...profile.buildDockerRunFlags!(), ...extraRunArgs]
+ : undefined,
+ };
+ }
+ assertVllmRegistryDigestRef(resolved.image);
+ return resolved;
+}
+
+const SHA256_IMAGE_DIGEST_PATTERN = /^sha256:[0-9a-f]{64}$/;
+const IMAGE_REPOSITORY_COMPONENT_PATTERN = /^[a-z0-9]+(?:[._-][a-z0-9]+)*$/;
+
+/**
+ * Managed vLLM is a product install path, so every effective runtime must be
+ * downloadable by immutable registry digest. A bare Docker image/config ID
+ * only identifies bytes already present in one daemon and is never a valid
+ * product dependency.
+ */
+export function assertVllmRegistryDigestRef(image: string): void {
+ const separator = image.lastIndexOf("@");
+ const repository = separator > 0 ? image.slice(0, separator) : "";
+ const digest = separator > 0 ? image.slice(separator + 1) : "";
+ const components = repository.split("/");
+ const firstComponent = components[0] ?? "";
+ const portSeparator = firstComponent.lastIndexOf(":");
+ const registryOrNamespace =
+ portSeparator > 0 && /^\d+$/.test(firstComponent.slice(portSeparator + 1))
+ ? firstComponent.slice(0, portSeparator)
+ : firstComponent;
+ const hasInvalidPort = firstComponent.includes(":") && registryOrNamespace === firstComponent;
+ const validRepository =
+ separator === image.indexOf("@") &&
+ components.length >= 2 &&
+ !hasInvalidPort &&
+ IMAGE_REPOSITORY_COMPONENT_PATTERN.test(registryOrNamespace) &&
+ components.slice(1).every((component) => IMAGE_REPOSITORY_COMPONENT_PATTERN.test(component));
+
+ if (!validRepository || !SHA256_IMAGE_DIGEST_PATTERN.test(digest)) {
+ throw new Error(
+ "vLLM image must be a pullable immutable registry reference in " +
+ `repository@sha256:<64 lowercase hex> form; got '${image}'. ` +
+ "Local image IDs and mutable tags are not supported.",
+ );
+ }
+}
+
type VllmContainerOwnership =
| { kind: "absent" }
| { kind: "foreign" }
@@ -530,12 +638,8 @@ function startContainer(
const resolvedFlags = profile.buildDockerRunFlags
? profile.buildDockerRunFlags()
: profile.dockerRunFlags;
- // Forward HF_TOKEN/HUGGING_FACE_HUB_TOKEN so the long-lived `vllm serve`
- // pull can authenticate against gated repos when the model weights are
- // not already in the mounted cache. The runner allowlist strips the
- // token from the docker subprocess env by default, so we have to put it
- // back via the `env:` option; the docker argv only carries `-e KEY` so
- // the value stays out of /proc//cmdline.
+ // The explicit download completed before this long-lived container starts,
+ // so do not retain the host Hugging Face token in the serving process.
let runArgs: string[];
try {
runArgs = buildVllmRunArgs(profile, model, resolvedFlags);
@@ -554,7 +658,7 @@ function startContainer(
});
}
const result = dockerRunDetached(runArgs, {
- env: buildVllmDockerEnv(buildHfTokenForwardEnv()),
+ env: buildVllmDockerEnv(),
ignoreError: true,
suppressOutput: true,
});
@@ -698,6 +802,43 @@ function printImageStorageWarning(
console.error(" docker info --format '{{.DockerRootDir}}'");
}
+function printModelStorageWarning(
+ model: VllmModelDef,
+ probe: StorageProbeResult,
+ requiredBytes: bigint,
+ cachedBytes: bigint,
+ snapshotBytes: bigint,
+): void {
+ const insufficient = probe.ok && probe.capacity.availableBytes < requiredBytes;
+ console.error("");
+ console.error(
+ ` ${insufficient ? "Insufficient" : "Unable to verify"} storage for the managed vLLM model cache.`,
+ );
+ console.error("");
+ console.error(` Model: ${model.id}`);
+ if (cachedBytes > 0n) {
+ console.error(
+ ` Cached: ${formatStorageBytes(cachedBytes)} of ${formatStorageBytes(snapshotBytes)}`,
+ );
+ }
+ console.error(
+ ` Available: ${
+ probe.ok ? formatStorageBytes(probe.capacity.availableBytes) : `unknown (${probe.reason})`
+ }`,
+ );
+ console.error(` Required: approximately ${formatStorageBytes(requiredBytes)}`);
+ if (probe.ok) {
+ console.error(` Storage: ${probe.capacity.source} (${probe.capacity.path})`);
+ } else if (probe.path) {
+ console.error(` Storage: ${probe.source ?? "filesystem"} (${probe.path})`);
+ }
+ console.error("");
+ if (insufficient) console.error(" Free or expand the model-cache storage before continuing.");
+ console.error(" Useful diagnostics:");
+ console.error(` df -h ${hostHfCacheDir()}`);
+ console.error(` du -sh ${hostHfCacheDir()} 2>/dev/null`);
+}
+
async function imageStorageAccepted(
profile: VllmProfile,
opts: InstallVllmOptions,
@@ -726,6 +867,64 @@ async function imageStorageAccepted(
return isAffirmativeAnswer(await opts.promptFn(" Continue with the pull anyway? [y/N]: "));
}
+async function modelStorageAccepted(
+ profile: VllmProfile,
+ model: VllmModelDef,
+ opts: InstallVllmOptions,
+ env: NodeJS.ProcessEnv = process.env,
+): Promise {
+ if (profile.modelDownloadSizeBytes === undefined) return true;
+ if (!Number.isFinite(profile.modelDownloadSizeBytes) || profile.modelDownloadSizeBytes <= 0) {
+ throw new Error("vLLM model download size must be a positive finite byte count");
+ }
+ const snapshotBytes = BigInt(Math.ceil(profile.modelDownloadSizeBytes));
+ const snapshotDir = hfModelSnapshotDir(model);
+ const cachedBytes = snapshotDir ? measureDirectorySizeBytes(snapshotDir) : 0n;
+ if (cachedBytes >= snapshotBytes) return true;
+ const remainingBytes = snapshotBytes - cachedBytes;
+ const probe = probeHostStorage(hostHfCacheDir(), "Hugging Face cache");
+ const requiredBytes = modelStorageRequirementBytes(Number(remainingBytes));
+ if (probe.ok && probe.capacity.availableBytes >= requiredBytes) return true;
+ printModelStorageWarning(model, probe, requiredBytes, cachedBytes, snapshotBytes);
+ if (env[VLLM_STORAGE_OVERRIDE_ENV] === "1") {
+ console.error(` Continuing because ${VLLM_STORAGE_OVERRIDE_ENV}=1.`);
+ return true;
+ }
+ if (opts.nonInteractive) {
+ console.error(
+ ` Non-interactive setup stops before the guarded download. Set ${VLLM_STORAGE_OVERRIDE_ENV}=1 to override.`,
+ );
+ return false;
+ }
+ return isAffirmativeAnswer(
+ await opts.promptFn(" Continue with the model download anyway? [y/N]: "),
+ );
+}
+
+function ensureHfCacheDir(): { ok: true } | { ok: false; reason: string } {
+ const cacheDir = hostHfCacheDir();
+ try {
+ fs.mkdirSync(cacheDir, { recursive: true });
+ } catch (err) {
+ return {
+ ok: false,
+ reason: `could not create Hugging Face cache directory ${cacheDir}: ${(err as Error).message}`,
+ };
+ }
+ const unwritablePath = findUnwritableTreePath(cacheDir);
+ if (unwritablePath) {
+ const identity = hostUserIdentity() ?? "$(id -u):$(id -g)";
+ return {
+ ok: false,
+ reason:
+ `Hugging Face cache path ${unwritablePath} is not writable by host user ${identity}. ` +
+ "It may have been created by an earlier root-run downloader; NemoClaw did not modify it. " +
+ `Repair ownership, then retry: sudo chown -R ${identity} ${shellQuote(cacheDir)}`,
+ };
+ }
+ return { ok: true };
+}
+
interface InstallVllmOptions {
hasImage: boolean;
nonInteractive: boolean;
@@ -780,12 +979,23 @@ export async function installVllm(
});
if (!resolved) return { ok: false };
const { model, source: modelSource } = resolved;
+ if (model.runtime && !model.platforms.includes(profile.platform)) {
+ console.error(` vLLM install failed: ${model.label} is not supported on ${profile.name}`);
+ return { ok: false };
+ }
+ let runtimeProfile: VllmProfile;
+ try {
+ runtimeProfile = resolveVllmRuntimeProfile(profile, model);
+ } catch (err) {
+ console.error(` vLLM install failed: ${(err as Error).message}`);
+ return { ok: false };
+ }
let extraServeArgs: string[];
let servedModelId: string;
try {
extraServeArgs = parseVllmExtraServeArgs();
- servedModelId = resolveVllmServedModelId(model.id, extraServeArgs);
+ servedModelId = resolveVllmServedModelId(model.servedModelId ?? model.id, extraServeArgs);
} catch (err) {
console.error(` vLLM install failed: ${(err as Error).message}`);
return { ok: false };
@@ -793,8 +1003,8 @@ export async function installVllm(
opts.beforeInstall?.(servedModelId);
console.log("");
- console.log(` vLLM (${profile.name}):`);
- console.log(` Image: ${profile.image}`);
+ console.log(` vLLM (${runtimeProfile.name}):`);
+ console.log(` Image: ${runtimeProfile.image}`);
console.log(
` Model: ${model.id}${modelSource === "env" ? " (NEMOCLAW_VLLM_MODEL override)" : ""}`,
);
@@ -823,42 +1033,64 @@ export async function installVllm(
// Fail before large downloads when the fixed name belongs to another
// operator. startContainer repeats this check to close the teardown race.
- const replacement = vllmContainerReplacementTarget(profile.containerName);
+ const replacement = vllmContainerReplacementTarget(runtimeProfile.containerName);
if (!replacement.ok) {
console.error(` vLLM install failed: ${replacement.reason}`);
return { ok: false };
}
- const hasImage = imageIsCached(profile);
- if (!hasImage && !(await imageStorageAccepted(profile, opts))) {
+ // Guard the host filesystem before an image pull or model-download
+ // container can start. The cache path itself is created only after both
+ // storage decisions pass, so Docker never creates it as root.
+ if (!(await modelStorageAccepted(runtimeProfile, model, opts))) {
return { ok: false };
}
- const pull = await pullImage(profile);
+ const hasImage = imageIsCached(runtimeProfile);
+ if (!hasImage && !(await imageStorageAccepted(runtimeProfile, opts))) {
+ return { ok: false };
+ }
+
+ const cacheDir = ensureHfCacheDir();
+ if (!cacheDir.ok) {
+ console.error(` vLLM install failed: ${cacheDir.reason}`);
+ return { ok: false };
+ }
+
+ const pull = await pullImage(runtimeProfile);
if (!pull.ok) {
console.error(` vLLM install failed: ${String(pull.reason)}`);
return { ok: false };
}
- const modelDownload = await downloadModel(profile, model);
+ // A cold image pull can consume the same host filesystem that backs the
+ // Hugging Face cache. Re-probe after the pull so two independently passing
+ // capacity checks cannot overcommit shared storage before `hf download`.
+ if (!hasImage && !(await modelStorageAccepted(runtimeProfile, model, opts))) {
+ return { ok: false };
+ }
+
+ const modelDownload = await downloadModel(runtimeProfile, model);
if (!modelDownload.ok) {
console.error(` vLLM install failed: ${String(modelDownload.reason)}`);
return { ok: false };
}
- const start = startContainer(profile, model);
+ const start = startContainer(runtimeProfile, model);
if (!start.ok) {
console.error(` vLLM install failed: ${String(start.reason)}`);
return { ok: false };
}
emit("Launching vLLM");
- emit(`Launch can take 5 minutes to ${String(Math.ceil(profile.loadTimeoutSec / 60))} minutes`);
+ emit(
+ `Launch can take 5 minutes to ${String(Math.ceil(runtimeProfile.loadTimeoutSec / 60))} minutes`,
+ );
- const ready = await waitForVllmReady(profile);
+ const ready = await waitForVllmReady(runtimeProfile);
if (!ready.ok) {
- printContainerLogTail(profile);
- dockerStop(profile.containerName, {
+ printContainerLogTail(runtimeProfile);
+ dockerStop(runtimeProfile.containerName, {
env: buildVllmDockerEnv(),
ignoreError: true,
suppressOutput: true,
@@ -867,7 +1099,7 @@ export async function installVllm(
return { ok: false };
}
- if (!containerStillRunning(profile)) {
+ if (!containerStillRunning(runtimeProfile)) {
console.error(" vLLM container exited unexpectedly after readiness");
return { ok: false };
}
diff --git a/src/lib/onboard/setup-nim-flow.test.ts b/src/lib/onboard/setup-nim-flow.test.ts
index 2baa5afaaa3..47db126cf83 100644
--- a/src/lib/onboard/setup-nim-flow.test.ts
+++ b/src/lib/onboard/setup-nim-flow.test.ts
@@ -726,6 +726,77 @@ describe("createSetupNim", () => {
});
});
+ it("threads the DGX Station express model through the standard managed-vLLM selection contract", async () => {
+ const profile = { name: "DGX Station", platform: "station" } as VllmProfile;
+ const servedModel = "nvidia/nemotron-3-ultra-550b-a55b";
+ const prompt = vi.fn(async () => unexpected("provider prompt"));
+ const detectInferenceProviderHostState = vi.fn(() =>
+ makeHostState({
+ vllmProfile: profile,
+ hasVllmImage: false,
+ vllmEntries: [{ key: "install-vllm", label: "Start vLLM (DGX Station)" }],
+ }),
+ );
+ const installVllm = vi.fn(async (_profile, options) => {
+ options.beforeInstall?.(servedModel);
+ return { ok: true };
+ });
+ const routeGuard = vi.fn(() => ({
+ requiredModel: null,
+ requiredEndpointUrl: null,
+ requiredInferenceApi: null,
+ }));
+ const handleVllmSelection = vi.fn(async (state) => {
+ expect(state).toMatchObject({
+ provider: "vllm-local",
+ model: servedModel,
+ endpointUrl: null,
+ credentialEnv: null,
+ preferredInferenceApi: "openai-completions",
+ });
+ state.provider = "vllm";
+ state.endpointUrl = "http://127.0.0.1:8000/v1";
+ return "selected";
+ });
+ const setupNim = createSetupNim(
+ makeDeps({
+ isNonInteractive: () => true,
+ getNonInteractiveProvider: () => "install-vllm",
+ prompt,
+ detectInferenceProviderHostState,
+ installVllm,
+ handleVllmSelection,
+ }),
+ );
+
+ const result = await setupNim(null, null, null, true, null, "nemoclaw", routeGuard);
+
+ expect(prompt).not.toHaveBeenCalled();
+ expect(installVllm).toHaveBeenCalledWith(profile, {
+ hasImage: false,
+ nonInteractive: true,
+ promptFn: prompt,
+ beforeInstall: expect.any(Function),
+ });
+ expect(routeGuard).toHaveBeenCalledWith({
+ provider: "vllm-local",
+ model: servedModel,
+ endpointUrl: null,
+ preferredInferenceApi: "openai-completions",
+ credentialEnv: null,
+ });
+ expect(handleVllmSelection).toHaveBeenCalledWith(
+ expect.objectContaining({ model: servedModel }),
+ { managedInstall: true, sparkHost: false },
+ );
+ expect(result).toMatchObject({
+ model: servedModel,
+ provider: "vllm",
+ endpointUrl: "http://127.0.0.1:8000/v1",
+ preferredInferenceApi: "openai-completions",
+ });
+ });
+
it("passes sparkHost:true when detected GPU is Spark (firmware-unknown GB10 threading)", async () => {
const handleVllmSelection = vi.fn(async (state) => {
state.provider = "vllm-local";
@@ -826,6 +897,7 @@ describe("createSetupNim", () => {
await expect(setupNim(null)).rejects.toThrow("vLLM is already running on localhost:8000");
+ expect(error).toHaveBeenCalledWith(expect.stringContaining("Select Local vLLM"));
expect(error).toHaveBeenCalledWith(expect.stringContaining("stop the existing server"));
expect(abortNonInteractive).toHaveBeenCalledOnce();
expect(installVllm).not.toHaveBeenCalled();
diff --git a/src/lib/onboard/setup-nim-vllm.test.ts b/src/lib/onboard/setup-nim-vllm.test.ts
index 80ec767f98f..9f45d705e73 100644
--- a/src/lib/onboard/setup-nim-vllm.test.ts
+++ b/src/lib/onboard/setup-nim-vllm.test.ts
@@ -88,6 +88,20 @@ describe("setupNim vLLM route containment", () => {
await expect(handler(selection)).rejects.toThrow("exit 1");
expect(validate).not.toHaveBeenCalled();
+ expect(console.error).toHaveBeenCalledWith(
+ " Detected vLLM model 'served/model' does not match the shared gateway route 'required/model'.",
+ );
+ expect(console.error).toHaveBeenCalledWith(
+ " To install 'required/model', stop the existing vLLM server on localhost:8000, then rerun the original install/onboard command.",
+ );
+ expect(console.error).toHaveBeenCalledWith(
+ " To keep 'served/model' instead, start detailed setup:",
+ );
+ expect(console.error).toHaveBeenCalledWith(
+ " unset NEMOCLAW_PROVIDER NEMOCLAW_MODEL NEMOCLAW_VLLM_MODEL",
+ );
+ expect(console.error).toHaveBeenCalledWith(" nemoclaw onboard --fresh");
+ expect(console.error).toHaveBeenCalledWith(" Then select Local vLLM when prompted.");
});
it("warns on DGX Spark identified via GPU name (firmware-unknown GB10 host)", async () => {
diff --git a/src/lib/onboard/setup-nim-vllm.ts b/src/lib/onboard/setup-nim-vllm.ts
index 2d586040a79..ead86ae7133 100644
--- a/src/lib/onboard/setup-nim-vllm.ts
+++ b/src/lib/onboard/setup-nim-vllm.ts
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
+import { cliName } from "./branding";
import type { SetupNimSelectionResult, SetupNimSelectionState } from "./setup-nim-flow";
type VllmModelEntry = {
@@ -194,6 +195,13 @@ export function createSetupNimVllmHandler(
console.error(
` Detected vLLM model '${detectedModel}' does not match the shared gateway route '${requiredModel}'.`,
);
+ console.error(
+ ` To install '${requiredModel}', stop the existing vLLM server on localhost:${deps.VLLM_PORT}, then rerun the original install/onboard command.`,
+ );
+ console.error(` To keep '${detectedModel}' instead, start detailed setup:`);
+ console.error(" unset NEMOCLAW_PROVIDER NEMOCLAW_MODEL NEMOCLAW_VLLM_MODEL");
+ console.error(` ${cliName()} onboard --fresh`);
+ console.error(" Then select Local vLLM when prompted.");
deps.exitProcess(1);
}
state.model = detectedModel;
diff --git a/test/inference-options-docs.test.ts b/test/inference-options-docs.test.ts
index 4fa4761a319..ba375fb9e34 100644
--- a/test/inference-options-docs.test.ts
+++ b/test/inference-options-docs.test.ts
@@ -292,10 +292,15 @@ describe("inference setup navigation", () => {
const markdown = fs.readFileSync(vllmSetupPath, "utf8");
const entries = [
{
- prefix: "- DGX Spark and DGX Station",
+ prefix: "- DGX Spark and DGX Station models without a model-specific runtime",
image: VLLM_IMAGES.ngc2605Post1.arm64,
tag: VLLM_IMAGES.ngc2605Post1.tag,
},
+ {
+ prefix: "- The DGX Station Nemotron 3 Ultra express recipe",
+ image: VLLM_IMAGES.vllm022.arm64,
+ tag: VLLM_IMAGES.vllm022.tag,
+ },
{
prefix: "- Generic Linux `arm64` hosts",
image: VLLM_IMAGES.ngc2603Post1.arm64,
@@ -317,6 +322,16 @@ describe("inference setup navigation", () => {
}
});
+ it("documents the canonical Station Ultra recipe and DeepSeek demo override", () => {
+ const markdown = fs.readFileSync(vllmSetupPath, "utf8");
+
+ expect(markdown).toContain("--station-deepseek");
+ expect(markdown).toContain("memory/stack ulimits");
+ expect(markdown).toContain("MTP speculative decoding");
+ expect(markdown).toContain("model-cache storage is insufficient");
+ expect(markdown).toContain("not retained by the long-lived vLLM container");
+ });
+
it("keeps tool-calling remediation canonical in troubleshooting", () => {
const markdown = fs.readFileSync(troubleshootingPath, "utf8");
const start = markdown.indexOf("### Tool calls appear as assistant text");
diff --git a/test/install-express-prompt.test.ts b/test/install-express-prompt.test.ts
index 57873166cec..65ba31f39fd 100644
--- a/test/install-express-prompt.test.ts
+++ b/test/install-express-prompt.test.ts
@@ -35,9 +35,9 @@ platform = sys.argv[4]
script = r'''
source "$INSTALLER_UNDER_TEST" >/dev/null
detect_express_platform() { printf "$EXPRESS_PLATFORM"; }
-NON_INTERACTIVE=""
-NEMOCLAW_PROVIDER=""
-NEMOCLAW_NO_EXPRESS=""
+NON_INTERACTIVE="\${NON_INTERACTIVE:-}"
+NEMOCLAW_PROVIDER="\${NEMOCLAW_PROVIDER:-}"
+NEMOCLAW_NO_EXPRESS="\${NEMOCLAW_NO_EXPRESS:-}"
maybe_offer_express_install
printf "RESULT NON_INTERACTIVE=%s SUDO_MODE=%s PROVIDER=%s MODEL=%s VLLM_MODEL=%s POLICY=%s YES=%s SANDBOX=%s\\n" \\
"\${NON_INTERACTIVE:-}" "\${NEMOCLAW_NON_INTERACTIVE_SUDO_MODE:-}" "\${NEMOCLAW_PROVIDER:-}" "\${NEMOCLAW_MODEL:-}" \\
@@ -145,6 +145,19 @@ detect_express_platform
);
}
+ it("parses and documents the DGX Station DeepSeek override", () => {
+ const result = spawnSync("bash", [INSTALLER_PAYLOAD, "--station-deepseek", "--help"], {
+ cwd: path.join(import.meta.dirname, ".."),
+ encoding: "utf-8",
+ });
+ const output = `${result.stdout}${result.stderr}`;
+
+ expect(result.status, output).toBe(0);
+ expect(output).toMatch(
+ /--station-deepseek\s+Use DeepSeek V4 Flash for DGX Station express install/,
+ );
+ });
+
it("offers express install when curl-piped stdin still has a controlling TTY", () => {
const result = runExpressPromptWithTty("y\n", "pipe");
const output = `${result.stdout}${result.stderr}`;
@@ -196,6 +209,195 @@ detect_express_platform
);
});
+ it("uses the Nemotron Ultra recipe without follow-up choices on DGX Station", () => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Station");
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).toBe(0);
+ expect(output).toMatch(/Detected DGX Station/);
+ expect(output).toMatch(
+ /Express install will configure managed local vLLM with NVIDIA Nemotron 3 Ultra 550B/,
+ );
+ expect(output).toMatch(/approximately 352 GB model/);
+ expect(output).toMatch(/Using express install for DGX Station/);
+ expect(output).toMatch(
+ /RESULT NON_INTERACTIVE=1 SUDO_MODE=prompt PROVIDER=install-vllm MODEL=nvidia\/nemotron-3-ultra-550b-a55b VLLM_MODEL=nemotron-3-ultra-550b-a55b POLICY=suggested YES=1 SANDBOX=my-assistant/,
+ );
+ });
+
+ it("normalizes the canonical Ultra served alias to the registered model slug", () => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Station", {
+ NEMOCLAW_VLLM_MODEL: "nvidia/nemotron-3-ultra-550b-a55b",
+ });
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).toBe(0);
+ expect(output).toMatch(
+ /MODEL=nvidia\/nemotron-3-ultra-550b-a55b VLLM_MODEL=nemotron-3-ultra-550b-a55b POLICY=/,
+ );
+ });
+
+ it("uses DeepSeek V4 Flash for the Station demo override with one confirmation", () => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Station", {
+ STATION_DEEPSEEK: "1",
+ });
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).toBe(0);
+ expect(output).toMatch(
+ /Express install will configure managed local vLLM with DeepSeek V4 Flash/,
+ );
+ expect(output.match(/Run express install with these settings\?/g)).toHaveLength(1);
+ expect(output).toMatch(/Using express install for DGX Station/);
+ expect(output).toMatch(
+ /RESULT NON_INTERACTIVE=1 SUDO_MODE=prompt PROVIDER=install-vllm MODEL=deepseek-ai\/DeepSeek-V4-Flash VLLM_MODEL=deepseek-v4-flash POLICY=suggested YES=1 SANDBOX=my-assistant/,
+ );
+ });
+
+ it("allows a matching explicit DeepSeek model with the Station demo override", () => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Station", {
+ STATION_DEEPSEEK: "1",
+ NEMOCLAW_VLLM_MODEL: "deepseek-ai/DeepSeek-V4-Flash",
+ });
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).toBe(0);
+ expect(output).toMatch(/managed local vLLM with DeepSeek V4 Flash/);
+ expect(output).toMatch(/MODEL=deepseek-ai\/DeepSeek-V4-Flash VLLM_MODEL=deepseek-v4-flash/);
+ });
+
+ it("rejects a conflicting explicit model with the Station demo override", () => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Station", {
+ STATION_DEEPSEEK: "1",
+ NEMOCLAW_VLLM_MODEL: "nemotron-3-ultra-550b-a55b",
+ });
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).not.toBe(0);
+ expect(output).toMatch(
+ /--station-deepseek conflicts with NEMOCLAW_VLLM_MODEL='nemotron-3-ultra-550b-a55b'/,
+ );
+ expect(output).not.toMatch(/Run express install/);
+ });
+
+ it("rejects the Station demo override on non-Station platforms", () => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Spark", {
+ STATION_DEEPSEEK: "1",
+ });
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).not.toBe(0);
+ expect(output).toMatch(
+ /--station-deepseek requires a detected DGX Station \(detected: DGX Spark\)/,
+ );
+ expect(output).not.toMatch(/Run express install/);
+ });
+
+ it.each([
+ {
+ name: "a Station-only flag on DGX Spark",
+ args: ["--station-deepseek"],
+ platform: "DGX Spark",
+ env: {},
+ message: /--station-deepseek requires a detected DGX Station \(detected: DGX Spark\)/,
+ },
+ {
+ name: "a conflicting non-interactive flag",
+ args: ["--station-deepseek", "--non-interactive"],
+ platform: "DGX Station",
+ env: {},
+ message:
+ /--station-deepseek selects the DGX Station express prompt and cannot be combined with --non-interactive/,
+ },
+ {
+ name: "a conflicting Station model",
+ args: ["--station-deepseek"],
+ platform: "DGX Station",
+ env: { NEMOCLAW_VLLM_MODEL: "nemotron-3-ultra-550b-a55b" },
+ message: /--station-deepseek conflicts with NEMOCLAW_VLLM_MODEL='nemotron-3-ultra-550b-a55b'/,
+ },
+ ])("rejects $name before Docker or build-dependency mutation", ({
+ args,
+ platform,
+ env,
+ message,
+ }) => {
+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-station-flag-preflight-"));
+ const mutationLog = path.join(tmp, "host-mutations.log");
+ const result = spawnSync(
+ "bash",
+ [
+ "--noprofile",
+ "--norc",
+ "-c",
+ `
+source "$INSTALLER_UNDER_TEST" >/dev/null
+detect_express_platform() { printf "%s" "$EXPRESS_PLATFORM"; }
+ensure_docker() { printf "ensure_docker\\n" >>"$MUTATION_LOG"; }
+ensure_openshell_build_deps() { printf "ensure_openshell_build_deps\\n" >>"$MUTATION_LOG"; }
+main "$@"
+`,
+ "_",
+ ...args,
+ ],
+ {
+ cwd: tmp,
+ encoding: "utf-8",
+ env: {
+ HOME: tmp,
+ PATH: TEST_SYSTEM_PATH,
+ INSTALLER_UNDER_TEST: INSTALLER_PAYLOAD,
+ MUTATION_LOG: mutationLog,
+ EXPRESS_PLATFORM: platform,
+ ...env,
+ },
+ },
+ );
+ const output = `${result.stdout}${result.stderr}`;
+ const mutations = fs.existsSync(mutationLog) ? fs.readFileSync(mutationLog, "utf-8") : "";
+
+ expect(result.status, output).not.toBe(0);
+ expect(output).toMatch(message);
+ expect(mutations).toBe("");
+ fs.rmSync(tmp, { recursive: true, force: true });
+ });
+
+ it.each([
+ ["NEMOCLAW_NO_EXPRESS", "1", /cannot be combined with NEMOCLAW_NO_EXPRESS=1/],
+ ["NON_INTERACTIVE", "1", /cannot be combined with --non-interactive/],
+ ["NEMOCLAW_PROVIDER", "install-vllm", /conflicts with NEMOCLAW_PROVIDER=install-vllm/],
+ ])("rejects %s when the Station demo override would otherwise be ignored", (name, value, message) => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Station", {
+ STATION_DEEPSEEK: "1",
+ [name]: value,
+ });
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).not.toBe(0);
+ expect(output).toMatch(message);
+ expect(output).not.toMatch(/Run express install/);
+ });
+
+ it("describes and preserves an explicit DGX Station model override", () => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Station", {
+ NEMOCLAW_VLLM_MODEL: "custom-station-model",
+ });
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).toBe(0);
+ expect(output).toMatch(/managed local vLLM with model custom-station-model/);
+ expect(output).toMatch(/pulls the configured vLLM image\/model/);
+ expect(output).not.toMatch(/approximately 352 GB model/);
+ expect(output).toMatch(
+ /RESULT NON_INTERACTIVE=1 SUDO_MODE=prompt PROVIDER=install-vllm MODEL= VLLM_MODEL=custom-station-model POLICY=suggested YES=1 SANDBOX=my-assistant/,
+ );
+ });
+
+ it("treats a whitespace-only DGX Station model override as unset", () => {
+ const result = runExpressPromptWithTty("\n", "pipe", "DGX Station", {
+ NEMOCLAW_VLLM_MODEL: " \t ",
+ });
+ const output = `${result.stdout}${result.stderr}`;
+ expect(result.status, output).toBe(0);
+ expect(output).toMatch(/managed local vLLM with NVIDIA Nemotron 3 Ultra 550B/);
+ expect(output).toMatch(/approximately 352 GB model/);
+ expect(output).toMatch(
+ /RESULT NON_INTERACTIVE=1 SUDO_MODE=prompt PROVIDER=install-vllm MODEL=nvidia\/nemotron-3-ultra-550b-a55b VLLM_MODEL=nemotron-3-ultra-550b-a55b POLICY=suggested YES=1 SANDBOX=my-assistant/,
+ );
+ });
+
it("detects Windows WSL as an express install platform", () => {
const result = spawnSync(
"bash",
diff --git a/test/onboard-selection-vllm.test.ts b/test/onboard-selection-vllm.test.ts
index 378eb542d8a..f6beebf0e6f 100644
--- a/test/onboard-selection-vllm.test.ts
+++ b/test/onboard-selection-vllm.test.ts
@@ -628,4 +628,82 @@ const { setupNim } = require(${onboardPath});
/NEMOCLAW_PROVIDER=install-vllm requested, but vLLM is already running on localhost:8000 — selecting the running instance\./,
);
});
+
+ it("rejects an existing DeepSeek server when Station express requires Ultra", () => {
+ const repoRoot = path.join(import.meta.dirname, "..");
+ const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-station-ultra-mismatch-"));
+ const scriptPath = path.join(tmpDir, "station-ultra-mismatch-check.js");
+ const onboardPath = JSON.stringify(path.join(repoRoot, "src", "lib", "onboard.ts"));
+ const credentialsPath = JSON.stringify(
+ path.join(repoRoot, "src", "lib", "credentials", "store.ts"),
+ );
+ const runnerPath = JSON.stringify(path.join(repoRoot, "src", "lib", "runner.ts"));
+
+ const script = String.raw`
+const credentials = require(${credentialsPath});
+const runner = require(${runnerPath});
+
+credentials.prompt = async () => {
+ throw new Error("Unexpected prompt in non-interactive Station express test");
+};
+credentials.ensureApiKey = async () => {
+ throw new Error("Unexpected ensureApiKey call in non-interactive Station express test");
+};
+runner.runCapture = (command) => {
+ const cmd = Array.isArray(command) ? command.join(" ") : command;
+ if (cmd.includes("command -v ollama")) return "";
+ if (cmd.includes("127.0.0.1:11434/api/tags")) return "";
+ if (cmd.includes("127.0.0.1:8000/v1/models")) {
+ return JSON.stringify({ data: [{ id: "deepseek-ai/DeepSeek-V4-Flash" }] });
+ }
+ if (cmd.includes("docker images")) return "";
+ return "";
+};
+
+const { setupNim } = require(${onboardPath});
+
+(async () => {
+ await setupNim({ type: "nvidia", platform: "station" }, null);
+})().catch((error) => {
+ console.error(error);
+ process.exit(1);
+});
+`;
+ fs.writeFileSync(scriptPath, script);
+
+ const result = spawnSync(process.execPath, [scriptPath], {
+ cwd: repoRoot,
+ encoding: "utf-8",
+ env: {
+ ...process.env,
+ HOME: tmpDir,
+ NEMOCLAW_NON_INTERACTIVE: "1",
+ NEMOCLAW_PROVIDER: "install-vllm",
+ NEMOCLAW_VLLM_MODEL: "nemotron-3-ultra-550b-a55b",
+ NEMOCLAW_MODEL: "nvidia/nemotron-3-ultra-550b-a55b",
+ },
+ });
+
+ assert.equal(result.status, 1);
+ assert.match(
+ result.stdout,
+ /NEMOCLAW_PROVIDER=install-vllm requested, but vLLM is already running on localhost:8000 — selecting the running instance\./,
+ );
+ assert.match(
+ result.stderr,
+ /Detected vLLM model 'deepseek-ai\/DeepSeek-V4-Flash' does not match the shared gateway route 'nvidia\/nemotron-3-ultra-550b-a55b'\./,
+ );
+ assert.match(
+ result.stderr,
+ /To install 'nvidia\/nemotron-3-ultra-550b-a55b', stop the existing vLLM server on localhost:8000, then rerun the original install\/onboard command\./,
+ );
+ assert.match(
+ result.stderr,
+ /To keep 'deepseek-ai\/DeepSeek-V4-Flash' instead, start detailed setup:/,
+ );
+ assert.match(
+ result.stderr,
+ /unset NEMOCLAW_PROVIDER NEMOCLAW_MODEL NEMOCLAW_VLLM_MODEL\s+nemoclaw onboard --fresh\s+Then select Local vLLM when prompted\./,
+ );
+ });
});