Skip to content

[Bug]: The deployment function requires a divisible relationship, but the model structure does not meet this requirement. What should I do? #7149

@BrenchCC

Description

@BrenchCC

🐛 Describe the bug

def get_siglip_patch_grid_length(*, image_size: int, patch_size: int) -> int:
assert image_size % patch_size == 0
return image_size // patch_size

"vision_config": { --   | "hidden_act": "gelu_pytorch_tanh",   | "hidden_size": 1152,   | "image_size": 384,   | "intermediate_size": 4304,   | "layer_norm_eps": 1e-06,   | "model_type": "siglip_vision_model",   | "num_attention_heads": 16,   | "num_hidden_layers": 27,   | "patch_size": 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions