Repository navigation
docs(inference): clarify Linux Ollama Docker binding - #1303
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdded Linux/Docker-specific networking instructions for the "Local Ollama" section: the sandbox must reach Ollama via Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.agents/skills/nemoclaw-reference/references/inference-profiles.md (1)
1-1:⚠️ Potential issue | 🟠 MajorAdd the required SPDX header at the top of this Markdown file.
This file starts with a heading and is missing the required SPDX HTML-comment header block.
As per coding guidelines, "
**/*.{js,cjs,mjs,ts,tsx,sh,md}: Include SPDX license header at the top of every source file ... Use ... HTML comments for Markdown files."🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.agents/skills/nemoclaw-reference/references/inference-profiles.md at line 1, Add the required SPDX HTML-comment header to the top of inference-profiles.md (above the "# Inference Profiles" heading): insert an HTML comment block containing the SPDX copyright attribution and the SPDX-License-Identifier (e.g., a short copyright line and the license identifier) as specified by the repo guidelines so the file now begins with the SPDX header comment followed by the existing heading.
🧹 Nitpick comments (2)
docs/reference/inference-profiles.md (1)
79-82: Format this section to one sentence per source line and avoid non-list colons.Line 79–82 and Line 88–89 split single sentences across multiple lines, and Line 82 uses “For example:” before a code block.
Please keep one full sentence per line and avoid colons unless introducing a list.As per coding guidelines, "One sentence per line in source (makes diffs readable)." and "Colons should only introduce a list. Flag colons used as general punctuation between clauses."
Also applies to: 88-89
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/reference/inference-profiles.md` around lines 79 - 82, The paragraph beginning "On Linux hosts that run NemoClaw with Docker, the sandbox reaches Ollama through `http://host.openshell.internal:11434`, not the host shell's `localhost` socket." and the following sentences should be reformatted so each full sentence is on its own source line and colons are only used to introduce lists; specifically break the long multi-sentence block into separate lines with one sentence per line, remove or rewrite the standalone "For example:" so the example intro is a complete sentence (or attach it as "Example" on its own line without a colon), and apply the same one-sentence-per-line fix to the later split sentence at lines 88–89 so no sentence is split across lines and no colon is used as general punctuation..agents/skills/nemoclaw-reference/references/inference-profiles.md (1)
59-63: Normalize sentence-per-line formatting in this section.Line 59–63 and Line 68–69 wrap single sentences across multiple lines; Line 62 also uses “For example:” before a code block.
Please format as one sentence per line and avoid non-list colon usage.As per coding guidelines, "One sentence per line in source (makes diffs readable)." and "Colons should only introduce a list. Flag colons used as general punctuation between clauses."
Also applies to: 68-69
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.agents/skills/nemoclaw-reference/references/inference-profiles.md around lines 59 - 63, The paragraph containing "On Linux hosts that run NemoClaw with Docker, the sandbox reaches Ollama through `http://host.openshell.internal:11434`, not the host shell's `localhost` socket. If Ollama is already running, make sure it listens on `0.0.0.0:11434` instead of `127.0.0.1:11434`. For example:" should be reformatted to one sentence per line and the standalone "For example:" colon should be removed (instead place a short sentence ending with a period before the code block); ensure the sentence that refers to the host URL and the sentence that instructs listening on 0.0.0.0 are each on their own lines and avoid using a colon as general punctuation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In @.agents/skills/nemoclaw-reference/references/inference-profiles.md:
- Line 1: Add the required SPDX HTML-comment header to the top of
inference-profiles.md (above the "# Inference Profiles" heading): insert an HTML
comment block containing the SPDX copyright attribution and the
SPDX-License-Identifier (e.g., a short copyright line and the license
identifier) as specified by the repo guidelines so the file now begins with the
SPDX header comment followed by the existing heading.
---
Nitpick comments:
In @.agents/skills/nemoclaw-reference/references/inference-profiles.md:
- Around line 59-63: The paragraph containing "On Linux hosts that run NemoClaw
with Docker, the sandbox reaches Ollama through
`http://host.openshell.internal:11434`, not the host shell's `localhost` socket.
If Ollama is already running, make sure it listens on `0.0.0.0:11434` instead of
`127.0.0.1:11434`. For example:" should be reformatted to one sentence per line
and the standalone "For example:" colon should be removed (instead place a short
sentence ending with a period before the code block); ensure the sentence that
refers to the host URL and the sentence that instructs listening on 0.0.0.0 are
each on their own lines and avoid using a colon as general punctuation.
In `@docs/reference/inference-profiles.md`:
- Around line 79-82: The paragraph beginning "On Linux hosts that run NemoClaw
with Docker, the sandbox reaches Ollama through
`http://host.openshell.internal:11434`, not the host shell's `localhost`
socket." and the following sentences should be reformatted so each full sentence
is on its own source line and colons are only used to introduce lists;
specifically break the long multi-sentence block into separate lines with one
sentence per line, remove or rewrite the standalone "For example:" so the
example intro is a complete sentence (or attach it as "Example" on its own line
without a colon), and apply the same one-sentence-per-line fix to the later
split sentence at lines 88–89 so no sentence is split across lines and no colon
is used as general punctuation.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: afaaf5f6-bb94-4e1a-aaab-34d089fa92e4
📒 Files selected for processing (2)
.agents/skills/nemoclaw-reference/references/inference-profiles.mddocs/reference/inference-profiles.md
prekshivyas
left a comment
There was a problem hiding this comment.
Clean and helpful — thanks @WuKongAI-CMU!
- Addresses a real gap: Linux Docker users hit sandbox validation failures because Ollama binds loopback by default ✓
- Docker binding note is accurate — host.openshell.internal is how containers reach the host ✓
- Skills reference was stale (still had "Local Providers" umbrella section) — this correctly syncs it to match the source docs which already have the "Local Ollama" / "Experimental Local Providers" split ✓
- Docs-only change, zero regression risk ✓
- Verified with
make docsanddocs-to-skills.pyper the PR description ✓
LGTM.
There was a problem hiding this comment.
@WuKongAI-CMU pls resolve conflicts and it should be ready for merge
|
✨ Thanks for submitting this pull request, which proposes a way to clarify Ollama Docker binding for Linux sandboxes in the inference documentation. |
Signed-off-by: peteryuqin <[email protected]>
9b09c91 to
ff43a00
Compare
## Summary - document that Linux Docker sandboxes reach Ollama via host.openshell.internal - explain that Ollama must bind 0.0.0.0:11434 instead of loopback for sandbox validation - regenerate the reference skill output for the updated inference docs ## Verification - python3 scripts/docs-to-skills.py docs/ .agents/skills/ --prefix nemoclaw - make docs Supersedes NVIDIA#972. Signed-off-by: peteryuqin <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Enhanced Local Ollama setup documentation for Linux/Docker users. * Added clarification on container-to-Ollama networking via `host.openshell.internal:11434`. * Included Ollama binding configuration (`0.0.0.0:11434`) with startup command example. * Documented validation behavior when Ollama uses loopback-only binding. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: peteryuqin <[email protected]> Co-authored-by: Prekshi Vyas <[email protected]>
## Summary - document that Linux Docker sandboxes reach Ollama via host.openshell.internal - explain that Ollama must bind 0.0.0.0:11434 instead of loopback for sandbox validation - regenerate the reference skill output for the updated inference docs ## Verification - python3 scripts/docs-to-skills.py docs/ .agents/skills/ --prefix nemoclaw - make docs Supersedes NVIDIA#972. Signed-off-by: peteryuqin <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Enhanced Local Ollama setup documentation for Linux/Docker users. * Added clarification on container-to-Ollama networking via `host.openshell.internal:11434`. * Included Ollama binding configuration (`0.0.0.0:11434`) with startup command example. * Documented validation behavior when Ollama uses loopback-only binding. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: peteryuqin <[email protected]> Co-authored-by: Prekshi Vyas <[email protected]>
Summary
Verification
Supersedes #972.
Signed-off-by: peteryuqin [email protected]
Summary by CodeRabbit
host.openshell.internal:11434.0.0.0.0:11434) with startup command example.