Skip to content

Vision RoPE refactor #46443

Closed
Closed

Description

@IlyasMoutawwakil

Feature request

Vision RoPE layer/module should return the final positional embedding, following #41992 (comment) @zucchini-nlp @ArthurZucker

Motivation

We already create a class for it so might as well do the full work.

Your contribution

Will open a PR

Activity

  1. added
    Feature request
    on Jun 5, 2026
  2. zucchini-nlp commented on Jun 5, 2026

    @zucchini-nlp
    Member

    Niiiiice, we have a few pure vision models (pixtral, siglip2) and all qwen-vl vision blocks from top of my head. Could be more vision RoPE modules

  3. added a commit that references this issue on Jun 8, 2026
    62f7451
  4. srishtiii28 commented on Jun 9, 2026

    @srishtiii28

    @IlyasMoutawwakil @zucchini-nlp there are a few bot PRs linked to this, if this is not already handled, can i have a go at this?

  5. srishtiii28 commented on Jun 10, 2026

    @srishtiii28

    Heyyy @zucchini-nlp @IlyasMoutawwakil @molbap @yonigozlan I have linked a PR with this. Any feedback would be helpful

  6. zucchini-nlp commented on Jun 10, 2026

    @zucchini-nlp
    Member

    Sorry for delay, and thanks for the PR

    TBH I would prefer this to be resolved by someone internally, as we should refactor all vision-related RoPE to follow llama-format, which means adding default freq compute, moving to config.rope_parameters and adding RotaryMixin for validation and non-default positional embedding types

    I had a quick look at the PR and it moves in the right direction! It will need a bit more to standardize tho and sync with LLM's rope modules. Not sure if @IlyasMoutawwakil has a local draft or wants to take it from here?

  7. IlyasMoutawwakil commented on Jun 10, 2026

    @IlyasMoutawwakil
    MemberAuthor

    i will take care of it, i think this kind of library-wide refactor is very sensitive and needs a lot of testing locally and in our ci so better be done by someone internally. thanks for the pr 🤗

  8. srishtiii28 commented on Jun 11, 2026

    @srishtiii28

    Hey, thanks for the update, i have been meaning to contribute to vision models or something related to them. Is there any other issue i can work on and contribute? Most of the vision related issues are very old, and i cant figure out if they are still relevant

  9. zucchini-nlp commented on Jun 11, 2026

    @zucchini-nlp
    Member

    @srishtiii28 thanks for initiative! I am not aware of any community contributions we have open atm for vision models. We are doing a lot of refactors lately, which imo is more suited for internal maintainers

    If you have a painpoint when working with vision models, and can propose a solutions, pls feel free to open another issue and tag me/ other vision maintainers. Also a great option is to contrib a model if there is anything requested a lot by community, or anything trending :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions