Skip to content

[DGX Spark][Inference] Local Ollama nemotron-3-nano:30b onboarding still fails on v0.0.108 — tool call leaks into plain text at 1024, so the 4096 escalation never fires #8979

Closed

Description

@hulynn

Summary

On v0.0.108 — which includes #8719 and #8814 (the strict tool-call probe 256 → 1024 → 4096 escalation ladder) — onboarding the default Local Ollama model nemotron-3-nano:30b on a DGX Spark still fails at inference validation. The #8714 fix is present in the build but does not resolve this Spark failure mode.

Follow-up to #8714 (that fix is merged and in v0.0.108, but the QA Spark case is not resolved). The dev note on #8714 reads: "could not reproduce this host's QA Spark-specific case where 1024 also exhausts." This issue pins down what actually happens on the Spark.

Key finding — the Spark failure is NOT "exhausted at 1024"

The escalation to 4096 only triggers when the probe exhausts its token budget (still reasoning). On this Spark the 1024-token retry does not exhaust — the model finishes reasoning and emits the tool call as plain text (tool call leaked into plain text content). Because that is a malformed-output failure, not a budget-exhausted failure, the ladder never escalates to 4096 and onboarding aborts.

Observed probe sequence (identical across cold start, warm model, and a fresh ollama pull):

Loading Ollama model: nemotron-3-nano:30b
Chat Completions tool-call validation exhausted 256 tokens in reasoning; retrying with a 1024-token output budget...
Local Ollama endpoint validation failed.
Validation probe summary: Chat Completions API: tool call leaked into plain text content.

Onboarding exits 1 at step [3/8] Configuring inference provider. The 4096 escalation never appears in the output.

Environment

  • NemoClaw v0.0.108 (source tag v0.0.108; the deployed onboard-probes include the 4096 escalation)
  • DGX Spark GB10, aarch64, Ubuntu 24.04
  • Ollama serving nemotron-3-nano:30b (24 GB) on localhost:11434
  • Reproduced 3×: cold model, warm model (ollama ps showed it 100% GPU loaded), and after ollama rm + fresh ollama pull (identical model digest)

Steps to Reproduce

  1. Install NemoClaw v0.0.108 on a DGX Spark with Ollama and nemotron-3-nano:30b available.
  2. Onboard Local Ollama with the default model (non-interactive), e.g. NEMOCLAW_PROVIDER=ollama NEMOCLAW_MODEL=nemotron-3-nano:30b nemoclaw onboard --non-interactive --yes --fresh --name {sandbox} --yes-i-accept-third-party-software.
  3. Observe step [3/8] fail with tool call leaked into plain text content; onboarding aborts (exit 1). The escalation to 4096 never appears.

Expected

Onboarding the default Local Ollama model succeeds. The strict tool-call probe should handle the "tool call emitted as plain text" failure mode for this reasoning model (e.g. escalate budget on this shape too, or relax the structured-tool-call requirement), so onboarding completes.

Actual

Onboarding aborts at inference validation. The 1024 result is tool call leaked into plain text content (not exhausted), so the 4096 escalation is never reached.

Notes

  • Validation itself works on this Spark: onboarding Local Ollama with qwen2.5:0.5b succeeds (reaches Ready). The failure is specific to nemotron-3-nano:30b's tool-call output shape.
  • fix(inference): escalate strict tool-call probe budget to 4096 tokens #8814's escalation targets the "still reasoning / exhausted" case; the observed Spark failure is a distinct "structured tool call not emitted (leaked into content)" case.

Activity

  1. added
    NV QA
    VDR
    needs: triage
    on Aug 13, 2026
  2. added theissue type on Aug 13, 2026
  3. prekshivyas commented on Aug 13, 2026

    @prekshivyas
    Collaborator

    DGX Spark reproduction result

    I attempted a live reproduction on 2026-08-13 and did not reproduce the reported tool-call leak.

    Environment

    • Host: DGX Spark GB10, aarch64, Ubuntu 24.04
    • GPU driver: 580.159.03 (CUDA 13.0 reported by nvidia-smi)
    • Ollama: v0.32.9
    • Model: nemotron-3-nano:30b, 31.6B Q4_K_M
    • Model digest: b725f11174073334edd0c2ff396b8d4e66d7dab22a5a63717ccad5a08a270cf1
    • NemoClaw checkout: a0f6c9d4c5d72a08641b2cd192d7181fc3f06a06 (included in v0.0.108; the strict-probe files are identical between this commit and that tag)

    Method

    I sent the current strict Chat Completions tool-call payload directly to the local Ollama OpenAI-compatible endpoint (/v1/chat/completions): the same system/user messages, three function definitions, tool_choice: "required", temperature: 0, and stream: false used by the NemoClaw probe. This was a direct API probe, not a complete onboarding run.

    Result

    • At the initial 256-token budget, the request succeeded 3/3. Each response had finish_reason: "tool_calls", empty content, and one structured sessions_send call with {"message":"hello"}.
    • A direct 4096-token probe also returned the same structured tool call.
    • GPU execution was confirmed: Ollama's llama-server used approximately 26 GB on the GB10.

    Because the initial 256-token probe succeeded, the 1024/4096 retry ladder was never entered. This environment therefore provides no live evidence that expanding the retry predicate to include a plain-text tool-call leak fixes the reported failure.

    Could QA provide the failing Spark's Ollama version and full ollama list model digest? Those are the most likely variables to pin down a deterministic reproduction.

  4. self-assigned this
    on Aug 13, 2026
  5. prekshivyas commented on Aug 13, 2026

    @prekshivyas
    Collaborator

    Update: full v0.0.108 onboarding reproduction

    I also ran the issue's full non-interactive onboarding flow from an isolated checkout at the exact v0.0.108 tag (9df101e8b6be81ca3604adfe75cb5fdfc524ff18):

    NEMOCLAW_PROVIDER=ollama \
    NEMOCLAW_MODEL=nemotron-3-nano:30b \
    node bin/nemoclaw.js onboard --non-interactive --yes --fresh \
      --name issue8979repro --yes-i-accept-third-party-software

    The run passed the reported failure point at [3/8] Configuring inference provider:

    Loading Ollama model: nemotron-3-nano:30b
    Chat Completions API available — OpenClaw will use openai-completions.
    Using Ollama runtime context length: 262144 tokens
    

    No 256 → 1024 → 4096 retry was needed, and no tool-call-leak diagnostic was emitted. The run proceeded through provider setup and sandbox creation; openshell sandbox list reports issue8979repro as Ready.

    This confirms that the complete issue reproduction command also does not reproduce on the environment reported in my prior comment. The provider route was temporarily changed to this local Ollama model as part of onboarding, as the CLI warned.

  6. added
    area: inference
    area: local-models
    area: onboarding
    platform: dgx-spark
    provider: ollama
    and removed
    needs: triage
    on Aug 13, 2026
  7. hulynn commented on Aug 14, 2026

    @hulynn
    ContributorAuthor

    Why this didn't reproduce for you: it's the ollama version, not the machine

    I ran the exact NemoClaw strict Chat Completions tool-call probe (the 3-tool sessions_send / memory_search / web_fetch payload, tool_choice: "required", temperature: 0) against nemotron-3-nano:30b on two clean DGX Sparks — same model digest b725f11174…, same GPU driver 580.159.03 — changing only the ollama version:

    ollama 0.32.8 → FAILS (the bug)

    • max_tokens=256 → finish_reason=length, no tool call, ~1119 reasoning tokens (exhausts).
    • max_tokens=1024 and 4096 → the tool call comes back as plain-text JSON in content:
      {"name":"sessions_send","arguments":{"message":"hello"}} — no structured tool_calls.
      That's exactly the reported "tool call leaked into plain text content."

    ollama 0.32.11 (and 0.32.9 — the version you tested) → PASSES

    • Every budget (256 / 1024 / 4096) returns a proper structured tool_calls in ~102 tokens.

    So: 0.32.8 leaks the tool call at every budget; 0.32.9+ emits it structured. You reproduced on 0.32.9, which is why you saw a pass — the failing hosts are on 0.32.8.

    Two takeaways:

    1. The 256→1024→4096 escalation (fix(inference): escalate strict tool-call probe budget to 4096 tokens #8814) does not rescue 0.32.8 — the model never emits a structured tool call there, at any budget. So a bigger budget can't fix it.
    2. A fresh onboard installs ollama ≥0.32.9 and is fine; but when a host already has ollama 0.32.8, onboard reuses it and Local-Ollama tool-call validation fails.

    Suggested direction: enforce a minimum ollama version (≥0.32.9) on the Local Ollama path — detect an older ollama (0.32.8) and warn/upgrade instead of silently using it. Please reopen.

  8. reopened this on Aug 14, 2026
  9. added a commit that references this issue on Aug 14, 2026
  10. added a commit that references this issue on Aug 14, 2026
    90f821e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NV QAVDRarea: inferencearea: local-modelsarea: onboardingplatform: dgx-sparkprovider: ollama

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions