Skip to content

Conversation

@sunnyshen321
Copy link

Summary:
Exclude ABANDONED and FAILED trials from initalization budget transition criterion

f1020104666 has 3 abandoned trials (missing qps metrics) and 2 completed trials. But it hit a dead end:

  • Can't generate more Sobol trials (blocked by criterion 1 - 'block_gen_if_met': True)
  • Can't transition to BO (blocked by criterion 2 - not enough COMPLETED trials)

block_gen_if_met = True is a sensible default as we don't necessarily want to spend more SOBOL trials just to meet the max_parallelism, but we should excldue FAILED/ABANDONED trials to prevent issues like f1020104666

This means that if we have 3 COMPLETED trials and 2 FAILED/ABANDONED trials, we will stay in SOBOL (previous behavior: move to BO). Intuitively it shouldn't make a big difference in optimization result as BO model is probably not good with 3 datapoints, and probably behaves like SOBOL anyway (except for BO is more likely to generate boundary points).

Differential Revision: D90807058

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

meta-codesync bot commented Jan 15, 2026

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

sunnyshen321 pushed a commit to sunnyshen321/Ax that referenced this pull request Jan 15, 2026
…als in initalization budget (facebook#4776)

Summary:

Exclude ABANDONED and FAILED trials from initalization budget transition criterion

f1020104666 has 3 abandoned trials (missing qps metrics) and 2 completed trials. But it hit a dead end:
  - Can't generate more Sobol trials (blocked by criterion 1 - 'block_gen_if_met': True)
  - Can't transition to BO (blocked by criterion 2 - not enough COMPLETED trials)

`block_gen_if_met = True` is a sensible default as we don't necessarily want to spend more SOBOL trials just to meet the max_parallelism, but we should excldue FAILED/ABANDONED trials to prevent issues like f1020104666

This means that if we have 3 COMPLETED trials and 2 FAILED/ABANDONED trials, we will stay in SOBOL (previous behavior: move to BO). Intuitively it shouldn't make a big difference in optimization result as BO model is probably not good with 3 datapoints, and probably behaves like SOBOL anyway (except for BO is more likely to generate boundary points).

Reviewed By: saitcakmak

Differential Revision: D90807058
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.72%. Comparing base (4b9710e) to head (70d7d48).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4776   +/-   ##
=======================================
  Coverage   96.72%   96.72%           
=======================================
  Files         583      583           
  Lines       60880    60903   +23     
=======================================
+ Hits        58887    58910   +23     
  Misses       1993     1993           

☔ 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.

…als in initalization budget (facebook#4776)

Summary:

Exclude ABANDONED and FAILED trials from initalization budget transition criterion

f1020104666 has 3 abandoned trials (missing qps metrics) and 2 completed trials. But it hit a dead end:
  - Can't generate more Sobol trials (blocked by criterion 1 - 'block_gen_if_met': True)
  - Can't transition to BO (blocked by criterion 2 - not enough COMPLETED trials)

`block_gen_if_met = True` is a sensible default as we don't necessarily want to spend more SOBOL trials just to meet the max_parallelism, but we should excldue FAILED/ABANDONED trials to prevent issues like f1020104666

This means that if we have 3 COMPLETED trials and 2 FAILED/ABANDONED trials, we will stay in SOBOL (previous behavior: move to BO). Intuitively it shouldn't make a big difference in optimization result as BO model is probably not good with 3 datapoints, and probably behaves like SOBOL anyway (except for BO is more likely to generate boundary points).

Reviewed By: saitcakmak

Differential Revision: D90807058
@meta-codesync
Copy link

meta-codesync bot commented Jan 16, 2026

This pull request has been merged in 3156389.

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