Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Standardize FSMT class naming: PretrainedFSMTModel → PreTrainedFSMTModel#39209

Open
VXXXO wants to merge 2 commits into
huggingface:mainfrom
VXXXO:fix-fsmt-class-naming
Open

Standardize FSMT class naming: PretrainedFSMTModel → PreTrainedFSMTModel#39209
VXXXO wants to merge 2 commits into
huggingface:mainfrom
VXXXO:fix-fsmt-class-naming

Conversation

@VXXXO

@VXXXO VXXXO commented Jul 3, 2025

Copy link
Copy Markdown

This PR addresses the naming inconsistency for the FSMT base model class, as described in issue #39202.

Changes

Renamed PretrainedFSMTModel to PreTrainedFSMTModel to match the naming convention used across the library (e.g., PreTrainedModel, PreTrainedTokenizer)
Updated all usages and exports accordingly
Added a comment to the class definition for clarity

Testing

✅ All imports work correctly
✅ Python syntax is valid
✅ No breaking changes to functionality
✅ All FSMT classes import successfully

This change improves code consistency and readability without affecting functionality.

Fixes: #39202

VXXXO added 2 commits July 3, 2025 23:37
…odel

- Rename PretrainedFSMTModel to PreTrainedFSMTModel to match naming convention
- Update all usages and exports accordingly
- Fixes issue huggingface#39202
@github-actions

github-actions Bot commented Jul 3, 2025

Copy link
Copy Markdown
Contributor

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

run-slow: fsmt

@ArthurZucker ArthurZucker 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.

Hey! this is a breaking change! We can only do this with a deprecation cycle!

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.

Naming incosistencies of PreTrained* classes.

2 participants