Skip to content

Commit e9f00db

Browse files
mmikolajczmvafin
authored andcommitted
Add Optimum OV support for Arcee AFM (#1401)
Signed-off-by: Mateusz Mikolajczyk <[email protected]>
1 parent 8127f65 commit e9f00db

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

docs/source/openvino/models.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Here is the list of the supported architectures :
1717
- Albert
1818
- Aquila
1919
- Aquila 2
20+
- Arcee
2021
- Arctic
2122
- Audio Spectrogram Transformer
2223
- Baichuan 2

optimum/exporters/openvino/model_configs.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,21 @@ class ExaoneOpenVINOConfig(LlamaOpenVINOConfig):
635635
pass
636636

637637

638+
@register_in_tasks_manager(
639+
"arcee",
640+
*[
641+
"feature-extraction",
642+
"feature-extraction-with-past",
643+
"text-generation",
644+
"text-generation-with-past",
645+
"text-classification",
646+
],
647+
library_name="transformers",
648+
)
649+
class ArceeOpenVINOConfig(LlamaOpenVINOConfig):
650+
MIN_TRANSFORMERS_VERSION = "4.53.0"
651+
652+
638653
class QwenDummyPastKeyValuesGenerator(DummyPastKeyValuesGenerator):
639654
def __init__(
640655
self,

tests/openvino/test_modeling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,9 @@ class OVModelForCausalLMIntegrationTest(unittest.TestCase):
11831183
if is_transformers_version(">=", "4.51.3"):
11841184
SUPPORTED_ARCHITECTURES += ("glm4",)
11851185

1186+
if is_transformers_version(">=", "4.53.0"):
1187+
SUPPORTED_ARCHITECTURES += ("arcee",)
1188+
11861189
if is_transformers_version(">=", "4.54.0"):
11871190
SUPPORTED_ARCHITECTURES += ("ernie4_5",)
11881191

@@ -1273,6 +1276,7 @@ class OVModelForCausalLMIntegrationTest(unittest.TestCase):
12731276
"qwen3_moe": 2,
12741277
"mamba": 0,
12751278
"falcon-mamba": 0,
1279+
"arcee": 2,
12761280
"ernie4_5": 2,
12771281
}
12781282

tests/openvino/utils_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"albert": "hf-internal-testing/tiny-random-albert",
2828
"aquila": "katuni4ka/tiny-random-aquilachat",
2929
"aquila2": "katuni4ka/tiny-random-aquila2",
30+
"arcee": "onnx-internal-testing/tiny-random-ArceeForCausalLM",
3031
"arctic": "katuni4ka/tiny-random-snowflake",
3132
"audio-spectrogram-transformer": "Ericwang/tiny-random-ast",
3233
"bge": "BAAI/bge-small-en-v1.5",

0 commit comments

Comments
 (0)