Skip to content

Conversation

molbap
Copy link
Contributor

@molbap molbap commented Jul 18, 2025

What does this PR do?

Refactor of boilerplate one-liners like get_decoder and set_decoder which are prevalent across the codebase while not being part of the core modeling code. They are now pulled from PreTrainedModel more reliably.

Continued from #39339 .

@HuggingFaceDocBuilderDev

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.

@molbap molbap marked this pull request as ready for review August 22, 2025 12:23
@molbap molbap changed the title [WIP] :broom: :broom: :broom: Get set decoder cleanup 🧹 🧹 🧹 Get set decoder cleanup Aug 22, 2025
@molbap molbap requested a review from ArthurZucker August 22, 2025 12:33
Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

🧼 🧼 thanks 🫡

@molbap molbap enabled auto-merge (squash) August 22, 2025 15:00
Copy link
Contributor

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

run-slow: arcee, aria, autoformer, bamba, bart, beit, bigbird_pegasus, bitnet, blenderbot, blenderbot_small, chameleon, clvp, cohere, cohere2, conditional_detr, csm

@ArthurZucker ArthurZucker disabled auto-merge August 25, 2025 08:57
@ArthurZucker ArthurZucker merged commit ba095d3 into main Aug 25, 2025
23 of 25 checks passed
@ArthurZucker ArthurZucker deleted the get_set_decoder branch August 25, 2025 08:57
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.

3 participants