Repository navigation
Conversation
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
enabled auto-merge (squash)
October 19, 2026 07:13
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-13451.docs.buildwithfern.com/nemoclaw |
cv
disabled auto-merge
October 19, 2026 07:27
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/tagsreturns500, 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.PullModelthere still takes no expected digest, so the doc's point stands.NOTICE.mdfiles: record the update and why it stops at 0.35.1.Validation
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.qwen3:0.6bthrough 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 cipasses locally: 1,601 unit tests and 150 lifecycle tests.