GLM-4.5V with new class name at transformers (#22520)
Signed-off-by: zRzRzRzRzRzRzR <2448370773@qq.com> Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn> Co-authored-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
@@ -254,7 +254,8 @@ def _uses_mrope(config: PretrainedConfig) -> bool:
|
||||
|
||||
def uses_mrope(config: PretrainedConfig) -> bool:
|
||||
"""Detect if the model with this config uses M-ROPE."""
|
||||
return _uses_mrope(config) or thinker_uses_mrope(config)
|
||||
return _uses_mrope(config) or _uses_mrope(
|
||||
config.get_text_config()) or thinker_uses_mrope(config)
|
||||
|
||||
|
||||
def thinker_uses_mrope(config: PretrainedConfig) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user