Skip to content

refactor: remove the Qwen3.8 recipe image - #13506

Merged
cv merged 1 commit into
v1from
refactor/remove-qwen38-recipe
Oct 20, 2026
Merged

cv merged 1 commit into
v1from
refactor/remove-qwen38-recipe

Conversation

@cv

@cv cv commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Failure

runtimes/qwen38 packaged MiaAI Lab's Qwen3.8 recipe for one DGX Spark configuration. It held 1,386 lines of build files, AGPL-3.0-or-later patches to vLLM, preparation and verification scripts, and notices. NemoClaw tracked the recipe's revision, its patches, and its licenses: model and vLLM tuning work that belongs to the recipe's authors and to vLLM (#13472).

Decision

  • Removed: runtimes/qwen38 and its job in .github/workflows/dependencies.yml. The recipe remains MiaAI Lab's, and NemoClaw's packaging stays in git history.
  • Recipe contract kept, tested without a real recipe: examples/spark/spark-inline.yaml, the only example using that image, becomes the test fixture crates/nemoclaw-sdk/tests/fixtures/config/inline-recipe.yaml with a placeholder image. The nine test files that used it now load the fixture.
  • Spark live test: it now uses examples/spark/deepagents-team.yaml (Nemotron 3.5 Lightning through the generic vLLM image, two Deep Agents sandboxes). It derives expected resources from the YAML's provider and sandbox names instead of hard-coding qwen and assistant.
  • Docs:
    • recipes.md records that NemoClaw ships no model-specific recipe images;
    • the design scope lists that as a decision, so it has no open exceptions left;
    • the README's AGPL note, notices lists, the build guide's Qwen3.8 section, and the Spark examples table drop the image.
  • Kept: the credits for MiaAI Lab's recipe in the runtime's memory and host-reserve policies, which it informed.

Validation

  • cargo ci passed, including the bundle and lifecycle steps.
  • The Spark live test (spark::spark_yaml_plans_and_applies_expected_resources) compiles but wasn't run: it downloads and serves Nemotron on a Spark for about 30 minutes and leaves workloads running. It's the same test with derived names.

After merge, close #13472 by hand.

NemoClaw packaged MiaAI Lab's Qwen3.8 recipe for one DGX Spark configuration, with its AGPL patches to vLLM, preparation and verification scripts, and notices. That work belongs to the recipe's authors and vLLM; NemoClaw keeps only the generic recipe contract (#13472).
@cv
cv enabled auto-merge (squash) October 20, 2026 00:57
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 7ee602e into v1 Oct 20, 2026
@cv
cv deleted the refactor/remove-qwen38-recipe branch October 20, 2026 01:10
cv added a commit that referenced this pull request Oct 20, 2026
## Failure

NemoClaw built its images two ways. Agent and proxy images used `docker
buildx bake` (`docker-bake.hcl`). The vLLM and Ollama runtime images,
under `runtimes/`, used a separate runtime builder in `nemoclaw-build`:
`cargo run -p nemoclaw-build -- runtime runtimes/<name>/build.json`,
about 780 lines plus a `build.json` per runtime and its own tests. That
builder staged and vendored the supervisor's sources, compiled the
supervisor on the host, downloaded licenses by checksum, wrote
`supervisor.json`, exported an OCI archive, loaded it, and checked its
digest.

## Decision

One build path, and the images in one place.

- **Layout:** `runtimes/vllm` and `runtimes/ollama` become `image/vllm`
and `image/ollama`, beside `image/fabric` and `image/ollama-proxy`.
- **`image/supervisor/Dockerfile`** (on pinned `rust:1.99.1-bookworm`):
  - packages the runtime crate with `cargo package`;
  - vendors its locked dependency sources;
  - archives them with fixed timestamps;
  - compiles the supervisor `--offline` from that archive.
  
Bookworm's glibc 2.36 is older than both bases' 2.39, so the supervisor
stays dynamically linked as before.
- **The vLLM and Ollama Dockerfiles stay thin:** each copies the
supervisor and its source archive from the shared stage and keeps its
notice, its Dockerfile, and the supervisor's Dockerfile under
`/opt/nemoclaw/source/`. The Ollama license comes in by `ADD
--checksum`.
- **`docker-bake.hcl`** gains `supervisor`, `vllm`, `ollama` and the
`runtimes` group:
- runtime targets always build for the host's platform
(`BAKE_LOCAL_PLATFORM`), so the supervisor never compiles under
emulation;
- provenance is disabled and timestamps are rewritten, so the same
sources give the same digest;
- Docker's containerd store can't unpack while rewriting timestamps, so
the output sets `unpack=false`; Docker unpacks on first run.
- **Small behavior change:** `AGENT_PLATFORM` now defaults to the host's
platform instead of being required, still validated to `linux/arm64` or
`linux/amd64`. `cargo images build` and CI keep passing it explicitly.
- **Removed from `nemoclaw-build`:**
- the runtime builder, its `runtime` command, `source_archive`, and its
dependency on `nemoclaw-runtime`;
- the builder's tests, and their two names in the `live-docker` filter.
  
The test that the CI builder doesn't pull in the SDK moves to
`builder_dependencies.rs`.
- **Dropped:** `supervisor.json` and the runtime-only source version.
Nothing read them; the retained archive is the source record, and the
runtime contract stays checked through `nemoclaw_runtime::SPEC_VERSION`
and the image labels.
- **CI path rules:** runtime image directories keep out of `CI /
Images`, as `runtimes/` did, and still trigger the live, bundle and
lifecycle checks through `image/**`.
- **Docs and examples** use `docker buildx bake vllm` or `ollama` and
`docker image inspect` for the digest.

## Validation

- **Checks:** `cargo ci` passed, including the bundle and lifecycle
steps, after rebasing onto #13506. `fern check` reported 0 errors.
- **New bake tests:**
- runtime targets plan only for the host, with the supervisor context
and rewritten timestamps;
  - agent targets default to the host and reject other platforms.
- **On a DGX Spark (linux/arm64):**
- `docker buildx bake runtimes` built both images. The vLLM image keeps
its four NemoClaw labels, and both supervisors run.
- The retained archive holds the runtime package with its notice, a
`Cargo.lock` with no SDK, provider, OpenShell, Fabric, Bollard or Tonic
packages, the vendored sources (about 19,700 entries), and the vendoring
config.
- Rebuilding Ollama with `--no-cache` produced the same digest
(`sha256:6d776313…`).
- `cargo ci live-docker` passed (9 tests: the previous 11 minus the two
builder tests).
- The managed Hermes example with the new Ollama image applied, and
Hermes ran `uname -m` and replied `aarch64`. The deployment was
destroyed and its objects removed.
- **Not run:** live vLLM serving and an AMD64 build.
gaveezy added a commit that referenced this pull request Oct 20, 2026
v1 removed the Qwen3.8 recipe image (#13506). This branch had added the
`nemoclaw-runtime-ready` symlink to `runtimes/qwen38/Dockerfile`, so the
merge takes v1's deletion. The contract test that checks the readiness
command against the runtime images now covers the two that remain,
vllm and ollama.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images platform: dgx-spark Affects DGX Spark hardware or workflows labels Oct 23, 2026
cv pushed a commit that referenced this pull request Oct 27, 2026
)

## Failure

Reviewing #13080's follow-ups (#13837) turned up docs that no longer
match v1: references to the Qwen recipe #13506 removed, an incomplete
list of cluster rights, links to closed issues as open work, an
HTTPS-only claim #13063 relaxed, and a skills example the schema
rejects.

## Decision

```mermaid
flowchart LR
    R["recipes.md: inline Qwen example and adapter"] --> R2["Removed (#13506)"]
    K["kubernetes.md: cluster rights"] --> K2["Add ServiceAccounts, Roles,<br/>RoleBindings, pods/portforward"]
    K3["kubernetes.md: #12709 open"] --> K4["Link Pull from Private Registries"]
    U["usage.md: Podman removal not covered"] --> U2["Link the Podman removal steps"]
    U3["usage.md: credentials require HTTPS"] --> U4["Prefer HTTPS, as inference.md says"]
    A["agents.md: harness under agent"] --> A2["harness, with kind, on the sandbox"]
```

- The rights are what the pinned chart creates with NemoClaw's values
(`serviceAccount.create` and `rbac.create` default on) and the
port-forward the SDK opens to the gateway pod.
- #12709 closed after #13412 added Docker registry logins; #12640's
Podman removal steps are in `usage.md`.

## Validation

- The `agents.md` example, merged into `examples/fabric-openclaw.yaml`,
validates against the schema; the old one fails with "'harness' was
unexpected".
- `cargo run --locked -p nemoclaw-build -- docs --check` passes; `git
diff --check` is clean.

Part of #13837.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 28, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
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 chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images platform: dgx-spark Affects DGX Spark hardware or workflows v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants