-
Notifications
You must be signed in to change notification settings - Fork 358
Rename model_kwargs -> generator_kwargs #4668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@saitcakmak has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89313576. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4668 +/- ##
=======================================
Coverage 96.52% 96.52%
=======================================
Files 568 568
Lines 58960 58970 +10
=======================================
+ Hits 56910 56921 +11
+ Misses 2050 2049 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary: As titled. JSON storage is updated to support loading arguments serialized with the old name. There is no direct SQA storage for these fields (serialized through JSONified GeneratorSpec / GenerationStep) Differential Revision: D89299127
Summary: Pull Request resolved: facebook#4668 Selectively renames `model_kwargs -> generator_kwargs`: - Was previously renamed for `GeneratorRun`. - Renames `GenerationStep` input and attributes. - Renames `GeneratorSpec` input and attributes. - `GeneratorSpec.fit` `**model_kwargs` input to `**generator_kwargs`, and also in a couple helper methods that used the same naming. - Updates miscellaneous usage within dispatching layer as argument names etc. Updates JSON storage to support loading both new and old arguments. No SQA storage updates needed, since these objects are serialized through their JSONinifed counterparts. In addition, renames: - `_DEPRECATED_MODEL_TO_REPLACEMENT -> _DEPRECATED_GENERATOR_TO_REPLACEMENT` - `_DEPRECATED_MODEL_KWARGS -> _DEPRECATED_GENERATOR_KWARGS` - `GeneratorRegistryBase._get_model_kwargs` and `_get_bridge_kwargs` (leftover from previous diff) Backwards compatibility for GStep & GSpec inputs are added later in the stack to ensure that this diff updates all internal usage. Reviewed By: Balandat Differential Revision: D89313576
e1f6b72 to
2f8f905
Compare
Summary: Pull Request resolved: facebook#4668 Selectively renames `model_kwargs -> generator_kwargs`: - Was previously renamed for `GeneratorRun`. - Renames `GenerationStep` input and attributes. - Renames `GeneratorSpec` input and attributes. - `GeneratorSpec.fit` `**model_kwargs` input to `**generator_kwargs`, and also in a couple helper methods that used the same naming. - Updates miscellaneous usage within dispatching layer as argument names etc. Updates JSON storage to support loading both new and old arguments. No SQA storage updates needed, since these objects are serialized through their JSONinifed counterparts. In addition, renames: - `_DEPRECATED_MODEL_TO_REPLACEMENT -> _DEPRECATED_GENERATOR_TO_REPLACEMENT` - `_DEPRECATED_MODEL_KWARGS -> _DEPRECATED_GENERATOR_KWARGS` - `GeneratorRegistryBase._get_model_kwargs` and `_get_bridge_kwargs` (leftover from previous diff) Backwards compatibility for GStep & GSpec inputs are added later in the stack to ensure that this diff updates all internal usage. Differential Revision: D89313576 Reviewed By: Balandat
|
This pull request has been merged in d144875. |
Summary:
Selectively renames
model_kwargs -> generator_kwargs:GeneratorRun.GenerationStepinput and attributes.GeneratorSpecinput and attributes.GeneratorSpec.fit**model_kwargsinput to**generator_kwargs, and also in a couple helper methods that used the same naming.Updates JSON storage to support loading both new and old arguments. No SQA storage updates needed, since these objects are serialized through their JSONinifed counterparts.
In addition, renames:
_DEPRECATED_MODEL_TO_REPLACEMENT -> _DEPRECATED_GENERATOR_TO_REPLACEMENT_DEPRECATED_MODEL_KWARGS -> _DEPRECATED_GENERATOR_KWARGSGeneratorRegistryBase._get_model_kwargsand_get_bridge_kwargs(leftover from previous diff)Backwards compatibility for GStep & GSpec inputs are added later in the stack to ensure that this diff updates all internal usage.
Differential Revision: D89313576