Commit 850325c
committed
[skills] Add FLUX-port learnings to add-model + seed-ssim skills
Three concrete, generalizable improvements derived from PR hao-ai-lab#1321 (FLUX.1-dev
port fixes) that the next model-port will hit:
1. add-model-02-parity — Tolerance guide stopped at "Full DiT, cross-kernel
bf16: 0.1". FLUX (57 layers) needed atol=0.5 — observed max=0.5, mean=0.04,
median=0 on A40. Added a "Very deep DiT (50+ layers), bf16" row and a
"Calibrating atol > 0.1" subsection that requires diagnostic prints
(max/mean/median/p99) so reviewers can verify the calibration without
rerunning. Also distinguishes the healthy bf16-tail signature (median≈0,
mean<<atol) from a real bug signature (mean_diff>>0.1).
2. add-model-09-pipeline — Step 4 listed two surfaces (sampling_param.py + CLI
args) for adding new generation kwargs. The current architecture has four:
sampling_param.py, api/schema.py SamplingConfig, the schema_parity_inventory
YAML (moved + expected_dests), and the test_parser.py roundtrip dict
snapshot. Missing any one fails CI with a different error; we hit three
separate failures during PR hao-ai-lab#1321 before getting it green. Expanded Step 4
to enumerate all four with the failure mode for each.
3. seed-ssim-references — Skill documented .mp4 and .pt artefacts. T2I tests
that reuse run_text_to_video_similarity_test produce .png when num_frames=1;
reference_videos_cli.py copy-local silently skips PNG (walks .mp4/.pt only,
reports "0 copied files"). Added .png as a third artefact type and a step-5
gotcha with the manual cp workaround plus the .gitignore negation pitfall.
Each change is a small in-place edit to an existing skill file. No new skills
added, no skill removed. Verifiable against the FLUX port: every failure mode
called out here has a corresponding commit in PR hao-ai-lab#1321 (c82dd31 for atol,
d1a63c8 for schema parity inventory, aabf179 for test_parser snapshot,
5b5fdcf for SSIM PNG copy).1 parent 3668279 commit 850325c
3 files changed
Lines changed: 66 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
206 | 229 | | |
207 | 230 | | |
208 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
76 | 94 | | |
77 | 95 | | |
78 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
114 | 135 | | |
115 | 136 | | |
116 | 137 | | |
| |||
0 commit comments