Commit 0dc3db5
committed
Add CPU test for use_syrk forwarding in newton_schulz_tp
Follow-up to #239. In test_distributed_muon_utils_cpu.py, using a real gloo
process group, verifies use_syrk is forwarded through newton_schulz_tp to the
underlying newton_schulz for both TP modes and both partition dims: a 3D input
with use_syrk=True raises the code-owned TypeError 'use_syrk does not support
N-d input' (mirroring test_newton_schulz_use_syrk_with_3d_raises_type_error),
while use_syrk=False stays on the dense batched path and succeeds.
Signed-off-by: pingtianl <pingtianl@nvidia.com>1 parent dc80675 commit 0dc3db5
1 file changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
230 | 266 | | |
231 | 267 | | |
232 | 268 | | |
| |||
0 commit comments