Skip to content

chore(runtimes): base the managed Ollama runtimes on Ollama 0.35.1 - #13451

Closed
cv wants to merge 1 commit into
v1from
chore/ollama-0.35.1
Closed

cv wants to merge 1 commit into
v1from
chore/ollama-0.35.1

Conversation

@cv

@cv cv commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Failure

The managed Ollama runtimes were behind upstream: ARM64 on 0.34.0, AMD64 on 0.17.7. The latest release, 0.40.6, can't be used yet. Ollama 0.40.0 changed its private model cache layout (manifests-v2), and NemoClaw's downloader writes the previous layout. Against the read-only cache, 0.40.6 logs "corrupt manifests detected … mkdir /cache/manifests-v2: read-only file system" and /api/tags returns 500, so the model cache compatibility test fails. #13450 tracks supporting the new layout.

Decision

Both runtimes move to 0.35.1, the newest release whose cache layout NemoClaw writes, pinned by its multi-platform digest (AMD64 and ARM64).

  • build.json: the Ollama LICENSE now comes from 0.35.1's commit. The file is unchanged, with the same SHA-256.
  • versions.json: declares 0.35.1.
  • docs/design/runtime.md: its pull-implementation link and image version point at 0.35.1. PullModel there still takes no expected digest, so the doc's point stands.
  • Both NOTICE.md files: record the update and why it stops at 0.35.1.

Validation

  • The model cache compatibility test (NEMOCLAW_TEST_OLLAMA_CACHE=1 cargo test -p nemoclaw-runtime --test integration ollama_cache:: -- --ignored) passes against 0.35.1: Ollama reads NemoClaw's verified cache with the expected name, digest and size, and reports the declared version. Against 0.40.6 it fails, as described above.
  • ARM64, live on a DGX Spark: a managed Ollama deployment built from this runtime pulled qwen3:0.6b through NemoClaw's downloader and passed readiness with the expected digest. A Hermes agent answered through it in 19.5 seconds, including the model load. The AMD64 image uses the same multi-platform digest but wasn't run.
  • cargo ci passes locally: 1,601 unit tests and 150 lifecycle tests.

Ollama 0.40 changed the model cache layout that NemoClaw's downloader writes,
so both runtimes move to 0.35.1, the newest release that reads it. The cache
compatibility test passes against 0.35.1 and fails against 0.40.6.
@cv
cv enabled auto-merge (squash) October 19, 2026 07:13
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv disabled auto-merge October 19, 2026 07:27
@cv

cv commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by the fix for #13452: once Ollama downloads and stores models itself, the cache layout no longer matters, so the runtimes move straight to Ollama 0.40.6 rather than stopping at 0.35.1.

@cv cv closed this Oct 19, 2026
cv added a commit that referenced this pull request Oct 19, 2026
Closes #13452. Supersedes #13450 and #13451.

## Failure

Managed Ollama downloaded models with NemoClaw's own client, wrote them
into Ollama's private cache layout, and checked that layout. That tied
NemoClaw to Ollama's internal file format. Ollama 0.40 changed it
(`manifests-v2`), so the runtime couldn't move past 0.35.1, and every
future layout change would have repeated the work.

## Decision

Ollama owns its model storage; NemoClaw only checks what Ollama reports.

- **Startup:** the runtime starts Ollama on the retained volume, then
`pull::ensure` makes sure the pinned model is present:
- If Ollama already reports the authored name and digest, nothing is
pulled.
- Otherwise Ollama pulls the model through `/api/pull`, and its progress
becomes the runtime's status.
- The digest Ollama then reports in `/api/tags` must match the authored
one, or startup stops.
  - A model installed with another digest is refused without pulling.
- **Kept from the old downloader:** the check that model parameters set
only sampling, not runner or resource settings such as `num_ctx`. It now
reads them from Ollama's `/api/show`. The 8-hour download limit also
stays.
- **Trade-off:** Ollama's pull takes no expected digest, so a tag that
moved upstream is downloaded and then refused, rather than never
downloaded. The runtime still never serves a model whose digest differs,
and the readiness inventory check confirms it again before loading.
- **Removed** (+37 −631 lines overall):
- the Ollama downloader (`registry.rs`, `model_source.rs`) and the old
startup recipe;
- the Ollama cache compatibility test, with its nextest filter and live
Docker setting.

  The shared `snapshot` downloader stays for vLLM until #13453.
- **Ollama 0.40.6:** both runtimes use it, pinned by its multi-platform
digest. The LICENSE comes from the v0.40.6 commit; it's the same file,
with the same SHA-256.
- **Docs and notices:** `docs/design/runtime.md`,
`docs/contributing/live-tests.md` and both runtime notices describe the
new behavior. The notices also drop a history line.

## Validation

- **New unit tests** in `pull.rs` failed against a stub before the
change and pass after. They cover:
  - an installed pinned model, which isn't pulled again;
  - an absent model, which is pulled and checked;
  - a pulled digest mismatch;
  - an installed digest mismatch, refused without pulling;
  - a pull error;
  - a model that sets runner or resource parameters.
- `cargo ci` passes locally: 1,605 unit tests and 150 lifecycle tests.
- **Live, ARM64, on a DGX Spark:**
  - The rebuilt runtime image ran Ollama 0.40.6.
- A managed Docker deployment with `qwen3:0.6b` reported Ollama pulling
the manifest and each layer itself, then passed readiness with the
pinned digest.
  - A Hermes agent answered through the model in 20 seconds.
- Destroy, plus removal of what the deployment retained, left nothing
behind.

  The AMD64 runtime uses the same multi-platform digest but wasn't run.
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution area: providers Inference provider integrations and provider behavior chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images provider: ollama Ollama local model provider behavior v1 NemoClaw v1 branch labels Oct 23, 2026
@cv
cv deleted the chore/ollama-0.35.1 branch November 21, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: packaging Packages, images, registries, installers, or distribution area: providers Inference provider integrations and provider behavior chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images provider: ollama Ollama local model provider behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants