Skip to content

Commit

Permalink
Non-GenAI models coverage XNNPACK
Browse files Browse the repository at this point in the history
  • Loading branch information
guangy10 committed Jul 30, 2024
1 parent b7c8378 commit 81a6c94
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .ci/scripts/gather_test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
"macos": {
"mobilebert": 90,
},
"linux": {
"emformer_predict": 360,
},
"macos": {
"emformer_predict": 360,
},
}


Expand Down Expand Up @@ -84,7 +90,11 @@ def model_should_run_on_event(model: str, event: str) -> bool:
"""
if event == "pull_request":
return model in ["mv3", "vit"]
return True
elif event == "push":
# 'emformer_predict' is running super slow. Only run it periodically
return model not in ["emformer_predict"]
else:
return True


def model_should_run_on_target_os(model: str, target_os: str) -> bool:
Expand Down
9 changes: 6 additions & 3 deletions examples/xnnpack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ class XNNPACKOptions(object):
"mv3": XNNPACKOptions(True, True),
"resnet18": XNNPACKOptions(True, True),
"resnet50": XNNPACKOptions(True, True),
"vit": XNNPACKOptions(False, True),
"w2l": XNNPACKOptions(False, True),
"vit": XNNPACKOptions(False, True), # T161242362
"w2l": XNNPACKOptions(True, True),
"edsr": XNNPACKOptions(True, True),
"mobilebert": XNNPACKOptions(False, True), # T170286473
"mobilebert": XNNPACKOptions(False, True), # T197452682
"llama2": XNNPACKOptions(False, True),
"emformer_join": XNNPACKOptions(True, True),
"emformer_predict": XNNPACKOptions(True, True),
"emformer_transcribe": XNNPACKOptions(False, True), # T197449765
}


Expand Down

0 comments on commit 81a6c94

Please sign in to comment.