Skip to content

Commit

Permalink
add architectures depending on transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Oct 29, 2024
1 parent 1ce1a0f commit 641d351
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/onnxruntime/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
DIFFUSION_MODEL_VAE_ENCODER_SUBFOLDER,
logging,
)
from optimum.utils.import_utils import is_diffusers_available
from optimum.utils.import_utils import is_diffusers_available, check_if_transformers_greater
from optimum.utils.testing_utils import (
grid_parameters,
remove_directory,
Expand Down Expand Up @@ -2316,10 +2316,12 @@ class ORTModelForCausalLMIntegrationTest(ORTModelTestMixin):
"mistral",
"mpt",
"opt",
"phi3",
"qwen2",
]


if check_if_transformers_greater("4.40"):
SUPPORTED_ARCHITECTURES.extend(["gemma", "phi3", "qwen2"])

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

0 comments on commit 641d351

Please sign in to comment.