Skip to content

Commit 1f0a698

Browse files
committed
Non-GenAI models coverage XNNPACK
1 parent b7c8378 commit 1f0a698

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.ci/scripts/gather_test_models.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@
3535
# Just some examples on how custom timeout can be set
3636
"linux": {
3737
"mobilebert": 90,
38+
"emformer_predict": 360,
3839
},
3940
"macos": {
4041
"mobilebert": 90,
42+
"emformer_predict": 360,
4143
},
4244
}
4345

@@ -84,7 +86,11 @@ def model_should_run_on_event(model: str, event: str) -> bool:
8486
"""
8587
if event == "pull_request":
8688
return model in ["mv3", "vit"]
87-
return True
89+
elif event == "push":
90+
# 'emformer_predict' is running super slow. Only run it periodically
91+
return model not in ["emformer_predict"]
92+
else:
93+
return True
8894

8995

9096
def model_should_run_on_target_os(model: str, target_os: str) -> bool:

examples/xnnpack/__init__.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ class XNNPACKOptions(object):
2424
"mv3": XNNPACKOptions(True, True),
2525
"resnet18": XNNPACKOptions(True, True),
2626
"resnet50": XNNPACKOptions(True, True),
27-
"vit": XNNPACKOptions(False, True),
28-
"w2l": XNNPACKOptions(False, True),
27+
"vit": XNNPACKOptions(False, True), # T161242362
28+
"w2l": XNNPACKOptions(True, True),
2929
"edsr": XNNPACKOptions(True, True),
30-
"mobilebert": XNNPACKOptions(False, True), # T170286473
30+
"mobilebert": XNNPACKOptions(False, True), # T197452682
3131
"llama2": XNNPACKOptions(False, True),
32+
"emformer_join": XNNPACKOptions(True, True),
33+
"emformer_predict": XNNPACKOptions(False, True), # T197457838
34+
"emformer_transcribe": XNNPACKOptions(False, True), # T197449765
3235
}
3336

3437

0 commit comments

Comments
 (0)