Skip to content

Conversation

@saitcakmak
Copy link
Contributor

Summary:
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

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 17, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 17, 2025

@saitcakmak has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89313576.

@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 97.34513% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.52%. Comparing base (b72fdf9) to head (2f8f905).

Files with missing lines Patch % Lines
ax/benchmark/methods/modular_botorch.py 75.00% 1 Missing ⚠️
ax/generation_strategy/generation_node.py 90.90% 1 Missing ⚠️
...ion_strategy/generation_node_input_constructors.py 50.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

saitcakmak and others added 2 commits December 17, 2025 13:58
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
saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Dec 17, 2025
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
@meta-codesync meta-codesync bot closed this in d144875 Dec 17, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 17, 2025

This pull request has been merged in d144875.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants