[public] Reproducible public image built in CI #356

Open
opened 2026-11-05 17:50:16 +01:00 by orchestra · 6 comments
Member

Build the flattened stack (#flatten) into a single image in CI from public sources only. That means the public tt-metal fork, the plugin branch and an upstream base image, with no host-local Nix overlays.

  • One Dockerfile with every ref pinned by commit.
  • Push to a registry outsiders can pull: ghcr under the fork, or Forgejo packages if bitp.cz is public. The registry choice is the owner's.
  • Record image digest and size. Document cold tensor-cache build time and boot time (~268 s with text_only).

Done when: the image is pulled on cfx-llm2 by digest, boots the base-Qwen G2 weights, and passes the #flatten acceptance.

Build the flattened stack (#flatten) into a single image in CI from public sources only. That means the public tt-metal fork, the plugin branch and an upstream base image, with no host-local Nix overlays. - One Dockerfile with every ref pinned by commit. - Push to a registry outsiders can pull: ghcr under the fork, or Forgejo packages if bitp.cz is public. **The registry choice is the owner's.** - Record image digest and size. Document cold tensor-cache build time and boot time (~268 s with `text_only`). **Done when:** the image is pulled on cfx-llm2 by digest, boots the base-Qwen G2 weights, and passes the #flatten acceptance.
Author
Member

"#flatten" = #355.

"#flatten" = #355.
Author
Member

Registry decided: git.bitp.cz public (Forgejo packages). Note: tt-model-manager bundles are HF model repos that point at weights on HF, so #354/#357 still need HF repos.

Registry decided: git.bitp.cz public (Forgejo packages). Note: tt-model-manager bundles are HF model repos that point at weights on HF, so #354/#357 still need HF repos.
Author
Member

2026-11-12 audit: registry decision already made (git.bitp.cz Forgejo packages); no registry clarification needed. Still depends on #355 pinned flattened public source and #354 vanilla artifacts/gates. P/D also needs a locked CPU/CUDA/Python environment, reproducible generated overlays and xxhash/native dependency provenance plus component license review, as recorded in public draft PR1. No image built, published or pulled; no digest/size/cold-cache/boot result claimed. Builds stay local/CI, not on TT card hosts; no nixos-llm or production edits.

2026-11-12 audit: registry decision already made (git.bitp.cz Forgejo packages); no registry clarification needed. Still depends on #355 pinned flattened public source and #354 vanilla artifacts/gates. P/D also needs a locked CPU/CUDA/Python environment, reproducible generated overlays and xxhash/native dependency provenance plus component license review, as recorded in public draft PR1. No image built, published or pulled; no digest/size/cold-cache/boot result claimed. Builds stay local/CI, not on TT card hosts; no nixos-llm or production edits.
Author
Member

Private build update (no image pass/public artifact): image/CI tooling and evidence committed locally as 143d3d0c on codex/public-image-ci; 16 host validation tests pass. The source-build path pins both Linux/amd64 base digests, 174 fresh hash-locked public wheels and the fresh public CMake dependency closure; all Docker RUN commands disable networking. Full source/provenance and built wheels are retained for real tt-model packaging.

Actual v4 build completed both offline Python installs and configured all CMake dependencies, then failed at WRITE_BASIC_CONFIG_VERSION_FILE(): No VERSION because git-archive source had an empty CMake fallback version. Failure record: bench/runs/public-image-archive-version-refusal-20261112.jsonl; private handoff: docs/IMAGE-BUILD-HANDOFF.md. No C++/import/model gate is claimed.

The flatten agent has now prepared v5 (8dce5285cc16c87125da6a93078237cd84a4434d3a457beee508d9c1158f7410) changing only metal/cmake/version.cmake and the source manifest. A real CMake 3.31.6 project/package-config/header probe passes even inside an unrelated tagged repository. The private retry is being staged on the authorized builder, four jobs, without a builder-side image archive. Registry push, actual CI run, clean-install tt-model smoke, hardware gates and public scrub remain pending. #356 remains open. No new speed number.

Private build update (no image pass/public artifact): image/CI tooling and evidence committed locally as `143d3d0c` on `codex/public-image-ci`; 16 host validation tests pass. The source-build path pins both Linux/amd64 base digests, 174 fresh hash-locked public wheels and the fresh public CMake dependency closure; all Docker RUN commands disable networking. Full source/provenance and built wheels are retained for real tt-model packaging. Actual v4 build completed both offline Python installs and configured all CMake dependencies, then failed at `WRITE_BASIC_CONFIG_VERSION_FILE(): No VERSION` because git-archive source had an empty CMake fallback version. Failure record: `bench/runs/public-image-archive-version-refusal-20261112.jsonl`; private handoff: `docs/IMAGE-BUILD-HANDOFF.md`. No C++/import/model gate is claimed. The flatten agent has now prepared v5 (`8dce5285cc16c87125da6a93078237cd84a4434d3a457beee508d9c1158f7410`) changing only `metal/cmake/version.cmake` and the source manifest. A real CMake 3.31.6 project/package-config/header probe passes even inside an unrelated tagged repository. The private retry is being staged on the authorized builder, four jobs, without a builder-side image archive. Registry push, actual CI run, clean-install tt-model smoke, hardware gates and public scrub remain pending. #356 remains open. No new speed number.
Author
Member

Private image v5 built. Tag tt-public-candidate:20261112-v5, image ID sha256:1f8bdd9ae0c8f18cd895dc46921b1694d1b13e3443f79dbcef85590cf3030faf, 7.53 GB, offline build in 1351 s on the local builder. The in-build import smoke passed (imports plus wheel/JIT source identity). Sources: metal 3b31bad4, plugin bef89e42, vLLM 568afb3a. Record: bench/runs/public-image-v5-built-20261113.jsonl (LEDGER R-2026-11-13-public-image-v5, branch codex/public-release @ 8eaca2ea).

Still open:

  • No registry push, so no pullable digest yet. Next is a push to Forgejo packages in a private namespace.
  • No device boot, no #355 acceptance.
  • Pre-public scrub: the metal source URL points at a personal GitHub fork. Confirm it is the intended public fork before anything goes public.
**Private image v5 built.** Tag `tt-public-candidate:20261112-v5`, image ID `sha256:1f8bdd9ae0c8f18cd895dc46921b1694d1b13e3443f79dbcef85590cf3030faf`, 7.53 GB, offline build in 1351 s on the local builder. The in-build import smoke passed (imports plus wheel/JIT source identity). Sources: metal `3b31bad4`, plugin `bef89e42`, vLLM `568afb3a`. Record: `bench/runs/public-image-v5-built-20261113.jsonl` (LEDGER `R-2026-11-13-public-image-v5`, branch `codex/public-release` @ `8eaca2ea`). Still open: - No registry push, so no pullable digest yet. Next is a push to Forgejo packages in a private namespace. - No device boot, no #355 acceptance. - Pre-public scrub: the metal source URL points at a personal GitHub fork. Confirm it is the intended public fork before anything goes public.
Author
Member

Image v6 (owner decision: public metal fork = donach/tt-metal).

  • v6 is v5 with only the flat-manifest metal repository URL changed to https://github.com/donach/tt-metal.git. ID sha256:f3b3d49b5970e34665a1040df000f07c87703cf715a4d718045567c0dc1499f8, 7.53 GB; the in-build import smoke passed. Record bench/runs/public-image-v6-built-20261113.jsonl.
  • donach/tt-metal does not exist on GitHub (API 404) or on git.bitp.cz. The source commit 3b31bad4ee08f7db85139d83411148e3c7c5222d is currently the head of branch cfx/qwen36-p300-tp2 on dhavli/tt-metal, which is itself a fork of tanvirarafin/tt-metal. To publish it, create github.com/donach/tt-metal (a fork of tenstorrent/tt-metal or of dhavli/tt-metal) and push 3b31bad4… as branch cfx/qwen36-p300-tp2. Owner go needed; I have not created or pushed anything.
  • One reference remains: graft_source.base_metal_repository in the K-op graft lock still names dhavli. I will change it in the next rebuild once the fork exists.
  • Registry: the Forgejo packages push was refused (reqPackageAccess, the fj token lacks package write). The bitpartner org is public, so a private registry copy would have to go under a private owner. The bundle does not need it, because the image ships through HF.
**Image v6** (owner decision: public metal fork = donach/tt-metal). - v6 is v5 with only the flat-manifest metal repository URL changed to `https://github.com/donach/tt-metal.git`. ID `sha256:f3b3d49b5970e34665a1040df000f07c87703cf715a4d718045567c0dc1499f8`, 7.53 GB; the in-build import smoke passed. Record `bench/runs/public-image-v6-built-20261113.jsonl`. - **donach/tt-metal does not exist** on GitHub (API 404) or on git.bitp.cz. The source commit `3b31bad4ee08f7db85139d83411148e3c7c5222d` is currently the head of branch `cfx/qwen36-p300-tp2` on `dhavli/tt-metal`, which is itself a fork of `tanvirarafin/tt-metal`. To publish it, create `github.com/donach/tt-metal` (a fork of tenstorrent/tt-metal or of dhavli/tt-metal) and push `3b31bad4…` as branch `cfx/qwen36-p300-tp2`. Owner go needed; I have not created or pushed anything. - One reference remains: `graft_source.base_metal_repository` in the K-op graft lock still names dhavli. I will change it in the next rebuild once the fork exists. - Registry: the Forgejo packages push was refused (`reqPackageAccess`, the fj token lacks package write). The bitpartner org is public, so a private registry copy would have to go under a private owner. The bundle does not need it, because the image ships through HF.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack#356
No description provided.