[Model] Add Cohere Compass model (#54774)

Signed-off-by: am-cohere <312513976+am-cohere@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
am-cohere
2026-09-07 07:36:49 -07:00
committed by GitHub
co-authored by Cursor mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 7cc89a7dda
commit 70584f69b1
4 changed files with 2366 additions and 1 deletions
+4
View File
@@ -809,6 +809,10 @@ _MULTIMODAL_EXAMPLE_MODELS = {
extras={"command-a-plus": "CohereLabs/command-a-plus-05-2026-bf16"},
min_transformers_version="5.9.0",
),
"CohereCompassForConditionalGeneration": _HfExamplesInfo(
"CohereLabs/North-Micro-Vision-Instruct",
min_transformers_version="5.16.0",
),
"Cosmos3ForConditionalGeneration": _HfExamplesInfo(
"nvidia/Cosmos3-Nano",
extras={"super": "nvidia/Cosmos3-Super"},
File diff suppressed because it is too large Load Diff
+4
View File
@@ -356,6 +356,10 @@ _MULTIMODAL_MODELS = {
"cohere2_vision",
"Cohere2VisionForConditionalGeneration",
),
"CohereCompassForConditionalGeneration": (
"cohere_compass",
"CohereCompassForConditionalGeneration",
),
"Cosmos3ForConditionalGeneration": ("cosmos3", "Cosmos3ForConditionalGeneration"),
"Cosmos3EdgeForConditionalGeneration": (
"cosmos3_edge",
+4 -1
View File
@@ -573,7 +573,10 @@ def _uses_mrope(config: PretrainedConfig) -> bool:
if rope_parameters is None:
return False
return "mrope_section" in rope_parameters
return "mrope_section" in rope_parameters or any(
isinstance(params, dict) and "mrope_section" in params
for params in rope_parameters.values()
)
def uses_mrope(config: PretrainedConfig) -> bool: