Commit 2fe8a27
authored
[ML] Add aten::split and aten::stack for question-answering models (#3012)
The deepset/tinyroberta-squad2 model uses aten::split (and
aten::stack per ES node logs) in its answer span extraction logic.
These ops only appear when traced with AutoModelForQuestionAnswering
rather than AutoModel. Update the extraction configs to use the
correct auto_class.
Also verified that LaBSE, BAAI/bge-reranker-base, and
castorini/bpr-nq-ctx-encoder (from the supported models docs) are
all covered by the existing allowlist.
Made-with: Cursor1 parent 48a1e66 commit 2fe8a27
4 files changed
Lines changed: 10 additions & 7 deletions
File tree
- bin/pytorch_inference
- unittest/testfiles
- dev-tools/extract_model_ops
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
1015 | 1014 | | |
1016 | 1015 | | |
| 1016 | + | |
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
1031 | 1030 | | |
1032 | 1031 | | |
| 1032 | + | |
| 1033 | + | |
1033 | 1034 | | |
1034 | | - | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | | - | |
| 1043 | + | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
| 1046 | + | |
1046 | 1047 | | |
1047 | 1048 | | |
1048 | 1049 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments