Commit ec07cba
Forward fix for D82242003 (#14241)
Summary:
This fixes internal failures on D82242003:
* pyre errors
* buck build --flagfile fbcode//mode/dev fbcode//executorch/examples/models/fb/llama4:ngtts_semantic_lm_xnnpack_quantized.pte
The second failure is because the old and new APIs have different behaviors when group_size is incompatible with the nn.Linear module's shape. In the old API, it silently does not quantize the layer, whereas the new API is more explicit and throws an error. This diff uses a filter_fn to restore the previous behavior.
Reviewed By: digantdesai
Differential Revision: D822655861 parent e6b9111 commit ec07cba
File tree
2 files changed
+15
-1
lines changed- backends/xnnpack/test/ops
- examples/models/llama/source_transformation
2 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
399 | 401 | | |
400 | 402 | | |
401 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
| 170 | + | |
160 | 171 | | |
161 | 172 | | |
162 | 173 | | |
| 174 | + | |
163 | 175 | | |
164 | 176 | | |
165 | 177 | | |
| |||
0 commit comments