Skip to content

packaging: publish CUDA/NCCL containers for stable releases - #3857

Merged
ashhart merged 6 commits into
ashhart:mainfrom
BlivionIaG:packaging/release-cuda-images
Nov 26, 2026
Merged

ashhart merged 6 commits into
ashhart:mainfrom
BlivionIaG:packaging/release-cuda-images

Conversation

@BlivionIaG

@BlivionIaG BlivionIaG commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Publish versioned Linux amd64/arm64 CUDA containers from the signed TensorFold archives when a stable GitHub release is published, not when a tag is pushed. Keep the existing multi-stage build and non-root user; use NVIDIA's official CUDA 13 base plus pinned cuBLAS/cuBLASLt and NCCL runtime packages, without the development toolkit. The Dockerfile default and the workflow/docs examples now name the current stable release, v1.3.4.

  • Issue: Fixes Publish versioned multi-architecture CUDA containers for stable releases #3856.
  • Stacked on: main; source base 8cbef9777b9a05dfaff99d5aa9c2ce52fe2b00f8. The branch is refreshed with main 9fa8863b (head 7ba877d3); the merge is clean, and main's only change to these files is three lines added above the Container section of docs/evaluating.md — the Dockerfile, .dockerignore, runtime trust key and container section are unchanged.
  • Open decision: whether stable releases publish official images at all is the maintainers' call, as Synthena wrote on Publish versioned multi-architecture CUDA containers for stable releases #3856 on 2026-11-22; this stays draft until they answer.
  • Coordination: the stock ATC check hit its 300-open-PR cap. A read-only check using ATC's existing snapshot/check logic and fully exhausted GitHub pagination read all 473 open PRs at 2026-11-18T18:18:54Z: complete: true, advice: free, no claimant or linked PR for Publish versioned multi-architecture CUDA containers for stable releases #3856. This issue-linked draft is the claim.
  • atc overlap --repo ashhart/TensorFold --base upstream/main --json, 2026-11-18: three working-tree files, no reported working-tree overlaps. Repository-wide coverage is incomplete (myPullRequestsLimit, otherPullRequestsLimit, pullFilesUnavailable, pullRequestsLimit, timeLimit). Its reported conflicts all belong to an existing source PR KV pool: host tier for the core pool (5/8) #1501, not this proposal; those unrelated changes were left untouched. No full repository-wide conflict-free claim is made.

The workflow smoke-checks the version, loadable cuBLAS/cuBLASLt/NCCL/grammar libraries, non-root execution and writable cache on native GitHub-hosted runners. Checked builds are exported by digest with SBOM/provenance; the version tag is published only after both architectures pass. No rolling latest; existing version tags are not overwritten. Pull requests never publish. Manual publication defaults to false and is confined to the running repository's own GHCR namespace, allowing fork validation without upstream package access.

Checks on this head

  • Head commit: 9755f0ac19165398d84eb5b63897840620656596.
  • Lean checker, base/head counts: n/a — no Zig source changes; not run locally for this packaging-only proposal.
  • python3 tools/pr_check.py --base 9fa8863b --pr 3857: 0 errors, 1 advisory warning (Dockerfile:29: added non-loopback IPv4 address). It is a false positive: the match is the pinned cuBLAS package version 13.0.2.14-1. git diff --check clean.
  • Version: the Dockerfile default is 1.3.5, matching the current stable release. v1.3.5 publishes tensorfold-1.3.5-linux-x86_64.tar.gz and tensorfold-1.3.5-linux-aarch64.tar.gz with their .sha256 and .sha256.sig files. Using the Dockerfile's own trust-key and signing-payload commands, I verified both architectures' release signatures with packaging/runtime-trust.json (openssl pkeyutl -verify ... reports Signature Verified Successfully for each), and added the ## Unreleased changelog line.
  • Tests run: the workflow YAML parses; ShellCheck over its embedded run: blocks reports only SC2153 (info) for $DIGEST, which the step supplies through env:; three real prepare-step scenarios passed (fork PR does not publish, explicit fork publication uses its own namespace, upstream publication selection).
  • Complete fork publication workflow, at head 8b07f4a5: prepare, native amd64 and arm64 image builds/smoke checks, GHCR digest uploads, SBOM/provenance export, artifact transfer and final combined manifest all passed; 0 failed jobs.
  • Published validation image: ghcr.io/blivioniag/tensorfold:v1.2.9, manifest digest sha256:24371871a661ead9f507d48099bdb3fbc22a50b50f5d1170d7785f77ffdce86f, from that earlier head and default. The workflow verified both Linux platform entries. No upstream package was written.
  • Fork PR run on that head: prepare and both builds/smoke checks passed; publication was correctly skipped.
  • CI on this head: the hosted run was queued behind the shared runner backlog when this description was written, so no new-head green is claimed yet. The same jobs passed on 9454063 before the version bump; prepare and both native build jobs smoke-check the 1.3.4 images and publish is skipped when they run. Upstream GPU qualification remains explicitly outside these no-GPU checks.
  • Not run: GPU inference, vision, multi-GPU collectives or an upstream release event. Packaging/library discovery is not GPU qualification. The upstream GHCR package still needs maintainer permission/visibility setup.

Receipt

  • Main against branch: n/a — no inference engine, arithmetic, weights or kernels changed; signed release binaries are packaged unchanged.
  • Boxes it reaches: Linux amd64/arm64 CUDA containers; no Metal, HIP, XPU, Windows or app changes.
  • New switch? No engine setting; manual workflow publish defaults to false, uses its own namespace and cannot enable PR publication.
  • Environment: base/head above; packaged TensorFold v1.3.5, CUDA base 13.0.2, cuBLAS 13.0.2.14, NCCL 2.30.7 (libnccl2=2.30.7-1+cuda13.3); native GitHub-hosted Ubuntu runners. No model or Zig compiler needed for packaging.
  • Paths/platforms: Dockerfile, .github/workflows/container-release.yml, docs/evaluating.md, CHANGELOG.md; native amd64 and arm64 ran successfully.
  • Exactness: n/a — no engine change or model inference run.
  • Main against this branch, same checkpoint: n/a — packaging only; no maintainer hardware run requested.
  • Decode speed: n/a — no engine modification; not measured.
  • Prompt speed: n/a — no prompt-processing modification; not measured.
  • Licence of new weights/drafter: n/a — none added. NVIDIA runtime package/base-image notices are retained.

Checklist

  • Title and description match the tested head and issue.
  • Both native images built/ran and the complete GHCR publication path passed on the fork before this issue/PR was opened.
  • No new standalone test suite; the workflow runs consumer-facing image smoke checks.
  • Comments/docstrings are single-line; no measurement history in source.
  • No private paths, internal hosts, secrets or tool-attribution lines in the diff/commits.
  • Upstream maintainer approval, GHCR setup and actual GPU qualification remain unclaimed; the release-policy decision is pending.

Release 1.3.5 fork publication

  • Release default: 1.3.5 (Dockerfile, workflow example, docs); the empty-tag fallback selects v1.3.5.
  • Fork publication: run 45800764349 published ghcr.io/blivioniag/tensorfold:v1.3.5 (sha256:cde6fc55…) from checked digests amd64 996e97dc… / arm64 2b11cfe3…; the index holds exactly their manifests; pulled images report 1.3.5 and NCCL 23007, run as uid 1000, and find all four libraries.
  • Native PR builds: fork run 45800724853 green on amd64 and arm64; the upstream run is queued behind the repository's other runs.

@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Thanks @BlivionIaG for the complete native amd64/arm64 packaging and fork-publication evidence. Stable-release selection, signed archive verification, the non-root runtime, pinned CUDA/cuBLAS/NCCL packages, and PR publication refusal are all scoped clearly.

The workflow checks each native image before digest export, refuses to replace an existing version tag, and verifies the final two-platform manifest. Manual publication is opt-in and confined to the running repository's namespace; there is no rolling latest tag.

The three-file diff applies cleanly to current main and changes no inference code. GPU inference, vision and collectives remain explicitly outside these no-GPU packaging checks. I found no remaining issue in the code. One decision is ours before it lands: whether stable releases publish container images at all. We will come back here with that.

  • Synthena

@ashhart

ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Thank you @BlivionIaG. The signed archives, non-root runtime, pinned libraries and hosted validation are all in place. Pull-request runs skip publication, and I found no secret passed into the image build. A manual run in a fork publishes only into that fork's own namespace, which is fine.

No further code change is needed from you. Whether the project publishes official release images is still a maintainer decision, and we'll follow up here once it's made.

  • Synthena

@AIFlowML

Copy link
Copy Markdown
Contributor

The trial merge of 7ba877d355 into d1ff890729 is clean, and actionlint .github/workflows/container-release.yml passes. I also verified both v1.3.4 Linux checksum signatures using the repository's release key and the Dockerfile's tensorfold-native-checksum-v1 signing prefix. That covers the signed checksum metadata for ARM64 and x86_64.

One detail for the release decision: the smoke tests run tensorfold:smoke, then the workflow invokes Buildx again to produce the digest it promotes. The workflow does not smoke-test that recorded digest. If publishing is enabled, running the same version, library and non-root checks against each recorded platform digest before version tagging would tie the receipt to the artifact being promoted. I ran no image publication or runtime smoke test.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thank you for refreshing the packaging branch and checking the signed checksums. The archive verification and native-architecture release gating are useful.

The image also pins NCCL 2.28.9, while TensorFold requires at least 2.30.0 and the two-node recipe identifies 2.28.9 as deadlock-prone. Please pin NCCL 2.30.7 or newer and check the loaded version in the image smoke checks.

A second release-integrity gap remains. The workflow smoke-tests tensorfold:smoke, but then runs a separate image build with maximal provenance and SBOM enabled to produce the digest that is published. The checks therefore do not cover the recorded artifact being promoted.

Please run the version, library, NCCL-version and non-root checks against each recorded platform digest before manifest publication. The stable-release publication decision remains separate from these source issues.

  • Synthena

@ashhart

ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thank you, @BlivionIaG.

Both requested fixes are confirmed. The image pins NCCL 2.30.7, and the checks now query the NCCL library loaded from each checked image. Publishing builds once per architecture, runs all version, library, non-root and cache checks against the exported digest, and creates the final manifest from those checked digests without rebuilding.

Pull requests still cannot publish. Manual publication remains opt-in and confined to the running repository's own namespace, and existing version tags are not replaced. The branch merges cleanly with current main and changes no inference arithmetic.

One current-release issue remains. Dockerfile:3, the workflow's empty-tag fallback and example, and the container examples in docs/evaluating.md still select 1.3.4, while README.md:39 and the changelog identify 1.3.5 as current. Please update those defaults and examples to 1.3.5; otherwise default builds and PR checks package the previous release.

CHANGES REQUESTED for the version update. After that fix, run both native amd64 and arm64 PR jobs, then one manual fork publication with publish=true for v1.3.5. Those checks cover local non-publication, every promoted digest and the final manifest without writing upstream. No GPU or model checkpoint is needed. The separate maintainer decision about publishing official release images remains open.

  • Synthena

@BlivionIaG

Copy link
Copy Markdown
Contributor Author

Thank you. 86f50931ed pins libnccl2=2.30.7-1+cuda13.3 (merged with main in 6323bc1a2e). NVIDIA ships 2.30.7 for CUDA 13 only as that 13.3 build; on a GB10 with driver 580.173.02 (CUDA 13.0) the same package reports 2.30.7 and completes an all-reduce. The smoke step now resolves libnccl.so.2 through the image's loader and requires its ncclGetVersion to equal the pin (at least 2.30.7).

A publishing run now builds each architecture once, with provenance and SBOM, and pushes it by digest. The version, library, NCCL-version and non-root checks pull and run that recorded digest; only passing digests are recorded. The publish job combines them without rebuilding and refuses an index whose platform manifests differ from the checked ones. Pull requests keep an unpublished local build for the same checks. actionlint is clean and PR CI passed on amd64 and arm64. The publish path itself (registry push, pull and tag creation) only runs on a publishing dispatch, so it is not exercised yet. The stable-release publication decision stays yours.

@ashhart

ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thank you, @BlivionIaG.

The earlier NCCL and artifact-integrity fixes remain intact. The image loads NCCL 2.30.7 and checks that exact version, publishing tests the recorded per-architecture digests, and the final manifest contains only those checked digests. Pull requests still cannot publish, and manual publication stays confined to the fork's own namespace.

The current-release update is still missing. Dockerfile:3, .github/workflows/container-release.yml:15, and docs/evaluating.md:64,91-92 still select 1.3.4. Please change those defaults and examples to 1.3.5. The workflow's empty-tag fallback will then pick the current release too.

CHANGES REQUESTED for that small version correction. After it, the remaining checks are both native amd64/arm64 PR jobs and one manual fork publication for v1.3.5. No GPU or model checkpoint is needed. The separate decision about official release-image publication remains with the maintainers.

  • Synthena

@BlivionIaG

Copy link
Copy Markdown
Contributor Author

Thank you. 9755f0ac19 sets release 1.3.5 in Dockerfile:3, the workflow's example tag, and docs/evaluating.md (build arg and pull/run examples); the empty-tag fallback now selects v1.3.5. The fork's own PR run passed both native amd64 and arm64 builds; this PR's run is queued behind the repository's other runs.

One manual fork publication of v1.3.5: https://github.com/BlivionIaG/TensorFold/actions/runs/45800764349 (the first two attempts failed in amd64 apt-get update on a mid-sync Ubuntu security mirror; attempt 3 passed). Each job checked its pushed digest: amd64 sha256:996e97dc…e1e9b1, arm64 sha256:2b11cfe3…e89281. ghcr.io/blivioniag/tensorfold:v1.3.5 (sha256:cde6fc55…912025) contains exactly their linux/amd64 e4ad0f80… and linux/arm64 35b95b9b… manifests plus attestations. Pulled per platform, both report tensorfold-native 1.3.5, find cuBLAS, cuBLASLt, NCCL and the grammar library, run as uid 1000 without nvcc, have a writable cache, and ncclGetVersion returns 23007. The official-publication decision stays with you.

BlivionIaG and others added 6 commits November 26, 2026 14:55
- Add pinned CUDA 13 cuBLAS/cuBLASLt and NCCL runtimes to the final image stage.
- Build and smoke-check amd64 and arm64 images before stable-release GHCR publication.
- Keep fork and pull-request builds non-publishing; document versioned image use.
- Keep automatic releases upstream-only and PR builds non-publishing.
- Permit manual publish=true runs to exercise the complete workflow in the running repository’s own GHCR namespace.
Each architecture is built once with provenance and an SBOM and pushed by digest; the version, library, NCCL-version and non-root checks run against that pushed digest, and the publish job combines only the checked digests without rebuilding.
@ashhart
ashhart force-pushed the packaging/release-cuda-images branch from 9755f0a to f2f4319 Compare November 26, 2026 14:55
@ashhart
ashhart merged commit eff4e5b into ashhart:main Nov 26, 2026
2 of 13 checks passed
@ashhart

ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thank you @BlivionIaG. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish versioned multi-architecture CUDA containers for stable releases

3 participants