Commit a1b6bc9
committed
Drop redundant num_experts from RoutedExperts
num_experts is intrinsic to the grouped-GEMM (GroupedExperts, which sizes
w1_EFD/w2_EDF/w3_EFD); RoutedExperts is a pure wrapper (token_dispatcher +
inner_experts) and carried a duplicate. Read it from the source of truth
(routed_experts.inner_experts.num_experts) in MoE buffer sizing and the HF
export instead.1 parent 00f5206 commit a1b6bc9
4 files changed
Lines changed: 3 additions & 7 deletions
File tree
- torchtitan
- experiments/rl/models
- models
- common
- gpt_oss
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | | - | |
151 | 149 | | |
152 | 150 | | |
153 | 151 | | |
| |||
559 | 557 | | |
560 | 558 | | |
561 | 559 | | |
562 | | - | |
| 560 | + | |
563 | 561 | | |
564 | 562 | | |
565 | 563 | | |
566 | | - | |
| 564 | + | |
567 | 565 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
0 commit comments