Rewrite optimize() to use ax.api.client.Client, remove OptimizationLoop (#5143)#5143
Open
saitcakmak wants to merge 1 commit intofacebook:mainfrom
Open
Rewrite optimize() to use ax.api.client.Client, remove OptimizationLoop (#5143)#5143saitcakmak wants to merge 1 commit intofacebook:mainfrom
saitcakmak wants to merge 1 commit intofacebook:mainfrom
Conversation
|
@saitcakmak has exported this pull request. If you are a Meta employee, you can view the originating Diff in D99497269. |
…op (facebook#5143) Summary: **Goal:** Eliminate legacy code that keeps other legacy code alive. Even though managed loop is deprecated, it has internal use cases. It seemed easier to migrate it then to try to clean up every single use case. The `OptimizationLoop` class in `managed_loop.py` was a legacy managed optimization loop that used `choose_generation_strategy_legacy`. This diff: - Rewrites the deprecated `optimize()` function to use the modern `ax.api.client.Client` API - Removes the `OptimizationLoop` class entirely (no external callers) - Splits `managed_loop` into its own BUCK target with minimal dependencies - Updates tests and LLM rules to reflect the changes The `optimize()` function signature and return type are preserved for backward compatibility with existing callers. Differential Revision: D99497269
f36ace2 to
29bc21c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Goal: Eliminate legacy code that keeps other legacy code alive. Even though managed loop is deprecated, it has internal use cases. It seemed easier to migrate it then to try to clean up every single use case.
The
OptimizationLoopclass inmanaged_loop.pywas a legacy managed optimization loop that usedchoose_generation_strategy_legacy. This diff:optimize()function to use the modernax.api.client.ClientAPIOptimizationLoopclass entirely (no external callers)managed_loopinto its own BUCK target with minimal dependenciesThe
optimize()function signature and return type are preserved for backward compatibility with existing callers.Differential Revision: D99497269