Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions bin/lib/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,25 +196,16 @@ async function setupNim(sandboxName, gpu) {
let provider = "nvidia-nim";
let nimContainer = null;

// Detect local inference options
// Detect local inference options (inform, but never auto-select)
const hasOllama = !!runCapture("command -v ollama", { ignoreError: true });
const ollamaRunning = !!runCapture("curl -sf http://localhost:11434/api/tags 2>/dev/null", { ignoreError: true });
const vllmRunning = !!runCapture("curl -sf http://localhost:8000/v1/models 2>/dev/null", { ignoreError: true });

// Auto-select if a local inference engine is already running
if (vllmRunning) {
console.log(" ✓ vLLM detected on localhost:8000 — using it");
provider = "vllm-local";
model = "vllm-local";
registry.updateSandbox(sandboxName, { model, provider, nimContainer });
return { model, provider };
console.log(" ⓘ Detected vLLM running on localhost:8000");
}
if (ollamaRunning) {
console.log(" ✓ Ollama detected on localhost:11434 — using it");
provider = "ollama-local";
model = "nemotron-3-nano";
registry.updateSandbox(sandboxName, { model, provider, nimContainer });
return { model, provider };
console.log(" ⓘ Detected Ollama running on localhost:11434");
}

// Build options list dynamically
Expand Down
2 changes: 1 addition & 1 deletion nemoclaw/dist/commands/onboard.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 28 additions & 31 deletions nemoclaw/dist/commands/onboard.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading