Commit 9a296b6
Speed up slow tutorial smoke tests (meta-pytorch#3238)
Summary:
Pull Request resolved: meta-pytorch#3238
Improve SMOKE_TEST handling in 8 botorch tutorial notebooks that were
taking >200s in CI. The changes fall into two categories:
1. Added SMOKE_TEST handling where none existed:
- orthogonal_additive_gp: Added SMOKE_TEST env var check, reduced
n_train (20→10), n_test (500→50), n_2nd (50→20)
- max_value_entropy: Added SMOKE_TEST check, reduced num_restarts
(10→2), raw_samples (512→4), candidate_set (1000→100)
2. Improved existing SMOKE_TEST handling with missed parameters:
- cost_aware_bayesian_optimization: Reduced budget (25→5) which
was never gated on SMOKE_TEST
- multi_fidelity_bo: Reduced batch q (4→2) in both MFKG and EI loops
- multi_objective_bo: Reduced BATCH_SIZE (4→2), affects all 3
acquisition functions per iteration
- saasbo: Reduced final 'predict on test points' section from
50→10 train/test points
- closed_loop_botorch_only: Reduced N_TRIALS (3→1 in smoke mode)
- decoupled_mobo: Reduced COST_BUDGET (54→30)
Measured speedups (test session 13510799038369321):
- orthogonal_additive_gp: 261.8s → 163.6s (1.6x)
- max_value_entropy: 220.2s → 104.6s (2.1x)
- cost_aware_bayesian_optimization: 234.9s → 143.6s (1.6x)
- multi_fidelity_bo: 247.6s → 147.3s (1.7x)
- multi_objective_bo: 232.9s → 134.4s (1.7x)
- saasbo: 231.0s → 126.6s (1.8x)
- closed_loop_botorch_only: 208.8s → 109.7s (1.9x)
- decoupled_mobo: 256.6s → 162.0s (1.6x)
Overall test suite: 580s → 185s (3.1x speedup).
All 64 tests pass.
Reviewed By: esantorella
Differential Revision: D97134436
fbshipit-source-id: cfd6b3f5c295c9dafcb61e3a945e070a536aa0ba1 parent 4decc06 commit 9a296b6
8 files changed
Lines changed: 8414 additions & 8381 deletions
File tree
- tutorials
- closed_loop_botorch_only
- cost_aware_bayesian_optimization
- decoupled_mobo
- max_value_entropy
- multi_fidelity_bo
- multi_objective_bo
- orthogonal_additive_gp
- saasbo
Lines changed: 1189 additions & 1189 deletions
Large diffs are not rendered by default.
Lines changed: 1012 additions & 1009 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Lines changed: 1860 additions & 1857 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
158 | | - | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
419 | 422 | | |
420 | 423 | | |
421 | 424 | | |
422 | | - | |
| 425 | + | |
423 | 426 | | |
424 | 427 | | |
425 | 428 | | |
| |||
443 | 446 | | |
444 | 447 | | |
445 | 448 | | |
446 | | - | |
| 449 | + | |
| 450 | + | |
447 | 451 | | |
448 | 452 | | |
449 | 453 | | |
| |||
0 commit comments