Skip to content

Commit 7c64417

Browse files
reformat
1 parent 4b70b7f commit 7c64417

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

optimum/exporters/openvino/model_configs.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2822,10 +2822,20 @@ def with_behavior(
28222822
behavior = MiniCPMVConfigBehavior(behavior)
28232823

28242824
if behavior == MiniCPMVConfigBehavior.TEXT_EMBEDDINGS:
2825-
return get_vlm_text_embeddings_config("qwen2" if self._orig_config.version == 2.6 else "llama", self._orig_config, self.int_dtype, self.float_dtype)
2825+
return get_vlm_text_embeddings_config(
2826+
"qwen2" if self._orig_config.version == 2.6 else "llama",
2827+
self._orig_config,
2828+
self.int_dtype,
2829+
self.float_dtype,
2830+
)
28262831

28272832
if behavior == MiniCPMVConfigBehavior.LANGUAGE:
2828-
return get_vlm_text_generation_config("qwen2" if self._orig_config.version == 2.6 else "llama", self._orig_config, self.int_dtype, self.float_dtype)
2833+
return get_vlm_text_generation_config(
2834+
"qwen2" if self._orig_config.version == 2.6 else "llama",
2835+
self._orig_config,
2836+
self.int_dtype,
2837+
self.float_dtype,
2838+
)
28292839

28302840
if behavior == MiniCPMVConfigBehavior.VISION_EMBEDDINGS:
28312841
return self.__class__(

0 commit comments

Comments
 (0)