Commit 44172ae
committed
test(esm2): update perf_logger tests for split _attn_work_*_accum buffers
The single self._attn_work_accum was split into _attn_work_unpadded_accum
and _attn_work_padded_accum to support the unpadded/padded MFU distinction,
but two tests in esm2_native_te still referenced the old single name,
failing in CI with AttributeError. Update the assertions to check both
buffers. With no attention_mask and no cu_seq_lens on the test batch,
both paths fall through to shape-synthesis and hold the same value, so
each test now asserts both accumulators hold the expected amount.
No changes needed in llama3 / opengenome2_llama / codonfm: their test
files don't exercise _attn_work_accum lifecycle directly.
Signed-off-by: Gagan Kaushik <gkaushik@nvidia.com>1 parent b979eed commit 44172ae
1 file changed
Lines changed: 8 additions & 4 deletions
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
251 | | - | |
| 254 | + | |
| 255 | + | |
252 | 256 | | |
0 commit comments