Repository navigation
fix(inference): serve managed Nemotron-3-Nano with its reasoning parser (#6915) - #6992
Conversation
…er (#6915) Nemotron-3-Nano-4B-FP8 is a reasoning model that emits a <think>...</think> trace, but the generic-Linux managed-vLLM profile served it without a reasoning parser. vLLM then left the trace inline in `content` -- including the bare </think> marker the chat template does not pair with an opening <think> tag -- and OpenClaw's streaming parser mishandles that orphan marker into an empty turn that wedges the session until reset. Add `--reasoning-parser nemotron_v3` to the Nano profile, matching the model card's vLLM launch recipe and the Ultra-550B managed profile, which already pins the same parser. `nemotron_v3` is a built-in parser in the pinned NGC vLLM image (it subclasses the DeepSeek-R1 parser), so no plugin file is required. Verified on a DGX Spark GB10 by serving the checkpoint with the profile's exact generated command: without the flag `content` carried the reasoning trace and an orphan `</think>`; with it `content` is the clean final answer. Signed-off-by: Yanyun Liao <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Nemotron-3 Nano-4B vLLM registry entry now configures the ChangesNemotron reasoning parser
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage remains at 96%, unchanged from the TypeScript / code-coverage/cliThe overall coverage in the Show a code coverage summary of the most impacted files.
Updated |
PR Review Advisor — InformationalAdvisor assessment: Informational / medium confidence Model lanes
Nemotron output stays in workflow artifacts and does not change the assessment above. E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: 1 warning · 0 suggestionsWarningsWarnings do not block.
|
<!-- markdownlint-disable MD041 --> ## Summary Add the canonical dated changelog entry required before the v0.0.85 release plan can be generated. The entry summarizes the user-visible OpenShell, DGX Station, inference, MCP, onboarding, and recovery changes merged since v0.0.84 and links to their owning guides. ## Changes - Add `docs/changelog/2026-07-16.mdx` with the exact `## v0.0.85` heading, parser-safe SPDX comment, release summary, and detailed bullets. - Link every documented theme to its most specific published OpenClaw guide routes. - Reconcile the release entry with these merged source PRs: - #6726 -> `docs/changelog/2026-07-16.mdx`: Document the supported OpenShell v0.0.85 upgrade, immutable consumed artifacts, multiline exec, credential rewrite diagnostics, and child-process TLS boundary. - #6986 -> `docs/changelog/2026-07-16.mdx`: Document managed MCP behavior shared across supported agents. - #6991 and #7045 -> `docs/changelog/2026-07-16.mdx`: Document qualified DGX Station host preparation and the interactive-terminal boundary for `--station-deepseek`. - #6992, #7001, #7006, and #7044 -> `docs/changelog/2026-07-16.mdx`: Document managed-model reasoning behavior, safe inference route mutation, and verified vLLM served aliases. - #6865, #7010, and #7028 -> `docs/changelog/2026-07-16.mdx`: Document onboarding DNS recovery, explicit notice acceptance, and upgrades with user-local OpenShell. - #7005, #7021, #7029, and #7049 -> `docs/changelog/2026-07-16.mdx`: Document rebuild backup safety, no-dashboard state, managed gateway discovery, and Hermes shields topology checks. ## 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: `test/changelog-docs.test.ts` validates the canonical heading, parser-safe SPDX comment, and detailed entry structure; the docs build validates published routes. - [ ] 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: ## 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 check:diff` passed 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` passed 6/6. - [ ] Applicable broad gate passed — `npm test` for broad runtime/test-harness changes; `npm run check` for repo-wide validation/coverage changes — not applicable to this doc-only entry. - [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) — passed with 0 errors and 2 pre-existing Fern warnings. - [x] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [x] New doc pages include SPDX header and frontmatter (new pages only) — native changelog entries use the required parser-safe MDX SPDX comment instead of frontmatter. --- Signed-off-by: Charan Jagwani <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added release notes for NemoClaw v0.0.85. * Documented improvements to compatibility, credential handling, setup validation, recovery workflows, endpoint configuration, gateway discovery, and runtime validation. * Added links to relevant user-guide sections. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Charan Jagwani <[email protected]>
Summary
nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8— the generic-Linux managed-vLLM default — is a reasoning model (its model card describes it as "a unified model for both reasoning and non-reasoning tasks" that "generates a reasoning trace and then a final response"). Its profile invllm-models.tspinned the tool-call parser but not a reasoning parser.Without a reasoning parser, vLLM leaves the
<think>…</think>trace inline incontent. Because the chat template consumes the opening<think>as the generation prompt prefix, the model output begins mid-trace and contains a bare, orphan</think>marker. OpenClaw's streaming parser mishandles that orphan marker into an empty assistant turn, and the session then wedges until reset (#6915).Fix
Add
--reasoning-parser nemotron_v3to the Nano-4B profile — the same parser the model card's vLLM launch recipe pins, and the same one the Ultra-550B managed profile already uses.nemotron_v3is a built-in parser in the pinned NGC vLLM image (it subclasses the DeepSeek-R1 parser), so no plugin file is required; it moves the reasoning trace out ofcontent.Verification (real hardware — DGX Spark GB10)
Served the checkpoint with the profile's exact generated serve command, sending an identical reasoning request to each:
contentreturned to the agent"…Provide brief thought then answer.\n</think>\nThe train covers 60 km… **80 km/h**."— reasoning trace and orphan</think>inline → wedge trigger--reasoning-parser nemotron_v3"\nThe train covers 60 km… **80 km/h**."— clean final answer, no</think>The reasoning parser is the only variable changed between the two runs. Unit test in
vllm-models.test.tsasserts the generated Nano serve command now includes--reasoning-parser nemotron_v3(exactly once, paired with its value).Scope
Nano is the generic-Linux managed-vLLM default (
platforms: ["spark", "station", "linux"]); the fix applies wherever that default resolves. The Spark and Station reasoning defaults already pin their own reasoning parser, so they are unaffected.Fixes #6915.
Signed-off-by: Yanyun Liao [email protected]
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Tests