File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 30
30
from optimum .exporters .onnx import MODEL_TYPES_REQUIRING_POSITION_IDS
31
31
from optimum .intel import (
32
32
IPEXModel ,
33
- IPEXModelForAudioClassification ,
34
33
IPEXModelForCausalLM ,
35
- IPEXModelForImageClassification ,
36
34
IPEXModelForMaskedLM ,
37
35
IPEXModelForQuestionAnswering ,
38
36
IPEXModelForSequenceClassification ,
@@ -87,7 +85,6 @@ class IPEXModelTest(unittest.TestCase):
87
85
SUPPORTED_ARCHITECTURES = (
88
86
"albert" ,
89
87
"bert" ,
90
- "convbert" ,
91
88
"distilbert" ,
92
89
"electra" ,
93
90
"flaubert" ,
@@ -124,8 +121,10 @@ def test_pipeline(self, model_arch):
124
121
tokenizer = AutoTokenizer .from_pretrained (model_id )
125
122
pipe = pipeline (self .IPEX_MODEL_CLASS .export_feature , model = model , tokenizer = tokenizer )
126
123
text = "This restaurant is awesome"
127
- _ = pipe (text )
124
+ if self .IPEX_MODEL_CLASS .export_feature == "fill-mask" :
125
+ text += tokenizer .mask_token
128
126
127
+ _ = pipe (text )
129
128
self .assertEqual (pipe .device , model .device )
130
129
131
130
You can’t perform that action at this time.
0 commit comments