Commit d36d3d6
authored
[TRANSFORMATIONS] Fix sliding window handling for gpt-oss in SDPAToPA (#32939)
It was observed that the initial implementation of sliding window
handling for gpt-oss was incorrect and instead of using the real sliding
window value, the 0 stub was always used.
* Fix the pattern that captures the real subgraph in the model and
extracts the real sliding window value.
* Fix the test that was implemented based on the incorrect
post-transformation graph.
Tickets:
[CVS-176323](https://jira.devtools.intel.com/browse/CVS-176323)
Signed-off-by: Andrii Staikov
[[email protected]](mailto:[email protected])
Signed-off-by: Andrii Staikov <[email protected]>1 parent 3539f6c commit d36d3d6
File tree
2 files changed
+8
-8
lines changed- src/common/transformations
- src/transformations/sdpa_to_paged_attention
- tests/op_conversions
2 files changed
+8
-8
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
| 210 | + | |
213 | 211 | | |
214 | 212 | | |
215 | 213 | | |
216 | 214 | | |
217 | | - | |
218 | | - | |
| 215 | + | |
219 | 216 | | |
220 | 217 | | |
221 | 218 | | |
222 | 219 | | |
223 | 220 | | |
224 | 221 | | |
225 | | - | |
| 222 | + | |
226 | 223 | | |
227 | 224 | | |
228 | 225 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2646 | 2646 | | |
2647 | 2647 | | |
2648 | 2648 | | |
2649 | | - | |
2650 | | - | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
2651 | 2654 | | |
2652 | 2655 | | |
2653 | 2656 | | |
| |||
0 commit comments