[public] Flatten best arm into one tt-metal + one plugin branch (no overlays, flags as defaults) #355

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

Problem: the best arm (…-gpgob-dfr) only exists as layers that live on cfx-llm2:

  • image vllm-tt:k2-mr-pk3r, about 10 stacked Dockerfiles on dhavli/tt-metal@3b31bad4ee (base v0.79.0-dev20260903)
  • Nix-store overlays (bench/overlays/pk3r+0033+…+0049.json, patches 0033–0049)
  • about 10 kernel files swapped in from bench/probes/*
  • the patches/prod-local-* trees and async-prefill-flush/decode-levers
  • 97 env flags across a 54-arm inheritance chain

Nobody outside can rebuild that.

Work

  • Make one tt-metal branch (public fork) with every image patch, overlay patch and probe kernel committed, and the prod-local model files in place.
  • Make one vllm-tt-plugin branch with the prod-local-plugin changes.
  • Bake the shipped flags in as defaults for the Qwen3.8 TP=2 P150 config. Keep the flags only as off-switches. Delete dead flag paths from the public branch.
  • Write tools/ttx output that resolves the arm into a flat env and file manifest. Use it to check that the flattened build equals the arm.

Done when: an arm that uses the flattened image with zero overlays and zero env passes these:

  • greedy equivalence against BEST, tier 1 (bit-exact)
  • every BEST banner present
  • a sweep32k within noise of BEST
**Problem:** the best arm (`…-gpgob-dfr`) only exists as layers that live on cfx-llm2: - image `vllm-tt:k2-mr-pk3r`, about 10 stacked Dockerfiles on `dhavli/tt-metal@3b31bad4ee` (base `v0.79.0-dev20260903`) - Nix-store overlays (`bench/overlays/pk3r+0033+…+0049.json`, patches 0033–0049) - about 10 kernel files swapped in from `bench/probes/*` - the `patches/prod-local-*` trees and `async-prefill-flush`/`decode-levers` - **97 env flags across a 54-arm inheritance chain** Nobody outside can rebuild that. **Work** - Make one tt-metal branch (public fork) with every image patch, overlay patch and probe kernel committed, and the prod-local model files in place. - Make one vllm-tt-plugin branch with the prod-local-plugin changes. - Bake the shipped flags in as defaults for the Qwen3.8 TP=2 P150 config. Keep the flags only as off-switches. Delete dead flag paths from the public branch. - Write `tools/ttx` output that resolves the arm into a flat env and file manifest. Use it to check that the flattened build equals the arm. **Done when:** an arm that uses the flattened image with **zero overlays and zero env** passes these: - greedy equivalence against BEST, tier 1 (bit-exact) - every BEST banner present - a sweep32k within noise of BEST
Author
Member

Step 1: arm-flatten tool, PR open (public/arm-flatten). Next: list the patches in the image-layer Dockerfile chain, then build the fork branch.

Step 1: arm-flatten tool, PR open (`public/arm-flatten`). Next: list the patches in the image-layer Dockerfile chain, then build the fork branch.
Author
Member

2026-11-12 audit: read #361 and every review. Its production manifest/tool is useful preparatory work, not a flattened serving image: known missing image-layer patch chain remains. Freeze/reproduce S12PHV-L1234 with fresh vanilla references; build one pinned metal tree and one plugin tree, then prove zero-overlay/zero-env acceptance on that SAME checkpoint (tier1 identity, all banners, sweep inside measured noise). Comparing vanilla output to private ThinkingCap cannot establish flatten equivalence. No flatten gate has run in this session. Await source/image preparation and a coordinated TT window behind mando-1to1; no window claimed.

2026-11-12 audit: read #361 and every review. Its production manifest/tool is useful preparatory work, not a flattened serving image: known missing image-layer patch chain remains. Freeze/reproduce S12PHV-L1234 with fresh vanilla references; build one pinned metal tree and one plugin tree, then prove zero-overlay/zero-env acceptance on that SAME checkpoint (tier1 identity, all banners, sweep inside measured noise). Comparing vanilla output to private ThinkingCap cannot establish flatten equivalence. No flatten gate has run in this session. Await source/image preparation and a coordinated TT window behind mando-1to1; no window claimed.
Author
Member

Sourcev5 is staged privately: flat-manifest SHA2568dce5285cc16c87125da6a93078237cd84a4434d3a457beee508d9c1158f7410. It fixes the actual archive CMake failure by retaining deterministic upstream numeric version0.79.0, the real source-base SHA and modified=true independently of any enclosing Git checkout. Complete inventory comparison: only metal/cmake/version.cmake changed (plus manifest); all serving/math/runtime/rank files and26 symlinks unchanged.

Real CMake project/package-config/version-header probe passes under an unrelated enclosing Git tag;12 stager tests pass. Separate proof: bench/runs/public-flat-archive-version-20261112.jsonl. Earlier v4 proof remains unchanged. Root commits e74a5ba0/108e6d70. Current combined public-release tool suite41 pass and image-tool suite16 pass. The private image builder is retrying this source; no image success, flattened hardware equivalence, quality gate or PP/TG measurement is claimed. #355 remains open. No public push.

Sourcev5 is staged privately: flat-manifest SHA2568dce5285cc16c87125da6a93078237cd84a4434d3a457beee508d9c1158f7410. It fixes the actual archive CMake failure by retaining deterministic upstream numeric version0.79.0, the real source-base SHA and modified=true independently of any enclosing Git checkout. Complete inventory comparison: only metal/cmake/version.cmake changed (plus manifest); all serving/math/runtime/rank files and26 symlinks unchanged. Real CMake project/package-config/version-header probe passes under an unrelated enclosing Git tag;12 stager tests pass. Separate proof: bench/runs/public-flat-archive-version-20261112.jsonl. Earlier v4 proof remains unchanged. Root commits e74a5ba0/108e6d70. Current combined public-release tool suite41 pass and image-tool suite16 pass. The private image builder is retrying this source; no image success, flattened hardware equivalence, quality gate or PP/TG measurement is claimed. #355 remains open. No public push.
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#355
No description provided.