Skip to content

[modular] Fix modular logic broken in #45045#45539

Merged
Cyrilvallez merged 9 commits intomainfrom
fix-modular
Apr 22, 2026
Merged

[modular] Fix modular logic broken in #45045#45539
Cyrilvallez merged 9 commits intomainfrom
fix-modular

Conversation

@Cyrilvallez
Copy link
Copy Markdown
Member

@Cyrilvallez Cyrilvallez commented Apr 21, 2026

What does this PR do?

Revert all changes to modular that were added in #45045. The changes break modular's purpose, as it takes the nodes from modular verbatim, meaning they cannot use inheritance which is the desired usage of modular. See e.g. here where the nice inheritance had to be removed and use full definition instead, which is really against modular's purpose... There are many more similar instances in the same PR.

This PR does the same, but without breaking modular's logic!

@Cyrilvallez Cyrilvallez changed the title revert modular: changes break modular's purpose revert #45045: changes break modular's purpose Apr 21, 2026
@Cyrilvallez Cyrilvallez changed the title revert #45045: changes break modular's purpose Revert #45045: changes break modular's purpose Apr 21, 2026
@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.

@github-actions
Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: conditional_detr, deepseek_vl, deformable_detr, efficientloftr, ernie4_5_vl_moe, glm_image, grounding_dino, lightglue, llava_onevision, mask2former, paddleocr_vl, rt_detr, segformer, smolvlm, video_llama_3, yolos

@Cyrilvallez Cyrilvallez changed the title Revert #45045: changes break modular's purpose Fix modular logic broken in #45045 Apr 21, 2026
@Cyrilvallez Cyrilvallez changed the title Fix modular logic broken in #45045 [modular] Fix modular logic broken in #45045 Apr 21, 2026
@Cyrilvallez
Copy link
Copy Markdown
Member Author

Got offline approval from the lm_head @ArthurZucker, merging!

@Cyrilvallez Cyrilvallez merged commit f048e84 into main Apr 22, 2026
25 checks passed
@Cyrilvallez Cyrilvallez deleted the fix-modular branch April 22, 2026 01:16
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.

2 participants