Skip to content

Conversation

@cbalioglu
Copy link
Contributor

This PR contains the bulky, but boilerplate part of the RecipeModel deprecation work. Although it touches many files, essentially what it does is mainly replacing occurrences of RecipeModel, RecipeTokenizer, and RecipeDataset with internal _ModelHolder, _TokenizerHolder, and _DatasetHolder types. It also renames some of the internal types to shorter names to slightly improve readability. It introduces no behavioral changes and is fully backwards-compatible.

The essential (internal) changes are included in src/fairseq2/recipes/model.py and src/fairseq2/recipes/base.py.

Verified correctness by running all available recipes (including @cirquit's wav2vec2 recipes) and checking bitwise parity with the main branch.

@cbalioglu cbalioglu requested a review from rsyue November 3, 2025 16:11
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 3, 2025
@cbalioglu cbalioglu requested a review from YunchaoYang November 3, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants