Commit f6c5235
perf(examples/fastwam): enable the measured recipe in the zero1 script
Turns on the flags the previous commits added, which is the only
training-visible change in this series: this script now trains with the
forward autocast off, `rmsnorm_impl=wan`, two compiled regions, and fused
AdamW. Anyone who was running it gets different numerics (bit-level, not
semantic) and different peak memory, so it is separated deliberately.
--optimizer TorchFusedAdamW +3.9%
--cudnn-benchmark +1.4%
--zero-parameters-as-bucket-view +2.0%
model.disable_train_autocast +3.2%
model.drop_all_true_cross_attn_mask +0.8%
model.compile_vae_encode +1.6%
model.mot_compile_blocks=both +5.7% (with model.rmsnorm_impl=wan)
Cumulative 82.9 -> 102.3 samples/s on 8xA800 at per-device batch 24, which is
within 0.8% of the upstream FastWAM reference on the same pod (103.28), i.e. at
parity given the 0.6% paired spread.
The header block documents each number, the measurement protocol (110 iterations,
10 warmed up, 100 timed, paired inside one sweep because cross-sweep drift reaches
3.4%), why `mot_compile_blocks` and `rmsnorm_impl` must move together, and why the
gain is batch dependent.
Two knobs stay off with the reason recorded rather than being enabled quietly:
`--no-check-for-nan-in-loss-and-grad` (worth ~1.4%, removes the divergence guard)
and `PER_DEVICE_BATCH_SIZE=24` (worth +7.9%, changes the effective batch size).
Convergence check at batch 16 over 200 steps against the unmodified script:
video loss tail-mean 0.18267 -> 0.18312 (+0.24%), action 0.13203 -> 0.13213
(+0.08%), no NaN, differences oscillating in both directions and decaying with
convergence. Single seed only, so this is evidence of numerical perturbation
rather than a proof of convergence neutrality.
Change-Id: I97111747b81a652f4cd67b4f06da9aa7c8dbd7371 parent 5ce06c5 commit f6c5235
1 file changed
Lines changed: 60 additions & 4 deletions
Lines changed: 60 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
32 | 71 | | |
33 | 72 | | |
34 | 73 | | |
| |||
133 | 172 | | |
134 | 173 | | |
135 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
136 | 183 | | |
137 | 184 | | |
138 | 185 | | |
| |||
143 | 190 | | |
144 | 191 | | |
145 | 192 | | |
146 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
147 | 202 | | |
148 | 203 | | |
149 | 204 | | |
| |||
167 | 222 | | |
168 | 223 | | |
169 | 224 | | |
| 225 | + | |
170 | 226 | | |
171 | 227 | | |
172 | 228 | | |
0 commit comments