Commit 59bae08
committed
refactor(muon): remove torch.compile from muon_update
Benchmarks show torch.compile provides negligible speedup (0-5%)
and is sometimes slower for muon_update, since computation is
dominated by matmul which already uses cuBLAS in eager mode.
Signed-off-by: Ma, Guokai <guokai.ma@gmail.com>1 parent a886c3d commit 59bae08
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | | - | |
| 137 | + | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
| |||
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 153 | | |
158 | 154 | | |
159 | 155 | | |
| |||
0 commit comments