[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:
co-authored by
Cursor
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent
7cc89a7dda
commit
70584f69b1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user