[Chore] Remove vendored code made redundant by Transformers 5.16.1 (#60623)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bc713cf8cc
commit
2c99ee9333
@@ -125,7 +125,7 @@ class VisualTokenizer(torch.nn.Module):
|
||||
prefix: str = "",
|
||||
) -> nn.Module:
|
||||
model_type = config.backbone_config.model_type
|
||||
if model_type == "aimv2":
|
||||
if model_type == "aimv2_vision_model":
|
||||
# No post rms_norm in Ovis2's AIMv2 ViT.
|
||||
return AIMv2Model(
|
||||
config=config.backbone_config,
|
||||
|
||||
Reference in New Issue
Block a user