Skip to content

General maintenance #47517

Open
zucchini-nlp wants to merge 4 commits into
huggingface:mainfrom
zucchini-nlp:rope-conversion
Open

General maintenance #47517
zucchini-nlp wants to merge 4 commits into
huggingface:mainfrom
zucchini-nlp:rope-conversion

Conversation

@zucchini-nlp

@zucchini-nlp zucchini-nlp commented Jul 24, 2026

Copy link
Copy Markdown
Member

CI

What does this PR do?

Some quick things i wanted to fix, can split into two PRs for layer-type and for conversion

  1. bring back the two layer type convention
  2. fix PermuteForRope which on main actually permutes back from block-split llama format, while we usually want the other way round

TBH we can get rid of VisionFuseAndPermute imo and use the corrected rope conversion with Chunk(dim=0). Technically breaking but no-one would actually use VisionFuseAndPermute no?

"""

def __init__(self, dim: int = 0, permute_layer_names: list[str] | None = None):
def __init__(self, dim: int = 0, permute_layer_names: list[str] | None = None, inverse: bool = True):

@zucchini-nlp zucchini-nlp Jul 24, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True for BC, i.e. permute back from hf block-layout to rope in complex-style

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@zucchini-nlp
zucchini-nlp requested a review from vasqu July 24, 2026 10:19
@molbap

molbap commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

For VisionFuseAndPermute indeed there's no usage for now, agree to remove

@molbap molbap left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor thing, could we add to docs/agentic doc that ALLOWED_ATTN_LAYER_TYPES and MLP counterpart have to be updated if necessary? two lists == two entrypoints to maintain, no big deal but need to be written somewhere

@zucchini-nlp

zucchini-nlp commented Jul 24, 2026

Copy link
Copy Markdown
Member Author

@molbap do you mean the model contribution MD you shared on the hub, since the CLAUDE.MD i am seeing at root dir seems to be less detailed about what to update, and where
I can open PR into that if you wish, when this PR gets merged

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments but in general aligned 🫡

Comment thread src/transformers/configuration_utils.py Outdated
Comment thread src/transformers/configuration_utils.py Outdated
Comment thread src/transformers/core_model_loading.py
Comment thread tests/utils/test_core_model_loading.py Outdated

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meant to approve...

@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 30102090256:1
Result: failure | Jobs: 15 | Tests: 47,846 | Failures: 9 | Duration: 2h 3m

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants