Skip to content

Commit

Permalink
add granite testwhen supported by transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Nov 18, 2024
1 parent 3c1f85f commit 82bfbbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/onnxruntime/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,6 @@ class ORTModelForCausalLMIntegrationTest(ORTModelTestMixin):
"gpt_neo",
"gpt_neox",
"gptj",
"granite",
"llama",
"mistral",
"opt",
Expand All @@ -2339,6 +2338,9 @@ class ORTModelForCausalLMIntegrationTest(ORTModelTestMixin):
if check_if_transformers_greater("4.41"):
SUPPORTED_ARCHITECTURES.extend(["phi3", "mpt"])

if check_if_transformers_greater("4.45"):
SUPPORTED_ARCHITECTURES.append("granite")

FULL_GRID = {
"model_arch": SUPPORTED_ARCHITECTURES,
"use_cache": [False, True],
Expand Down

0 comments on commit 82bfbbf

Please sign in to comment.