Skip to content

Commit

Permalink
fix: include max_length in continue expconf (#10188)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhou-determined authored Nov 1, 2024
1 parent 21b0256 commit 2afecfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webui/react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ export const ContinuableNonSingleSearcherName = new Set<ExperimentSearcherName>(

const Searcher = t.intersection([
t.partial({
max_length: t.record(
t.union([t.literal('batches'), t.literal('records'), t.literal('epochs')]),
t.number,
),
max_trials: t.number,
sourceTrialId: t.number,
}),
Expand Down
3 changes: 3 additions & 0 deletions webui/react/src/utils/experiment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ export const trialContinueConfig = (
name: 'single',
smaller_is_better: experimentConfig.searcher.smaller_is_better,
source_trial_id: trialId,
...(experimentConfig.searcher.max_length !== undefined && {
max_length: experimentConfig.searcher.max_length,
}),
},
workspace: workspaceName,
};
Expand Down

0 comments on commit 2afecfc

Please sign in to comment.