Add force sample toggle to the ui

This commit is contained in:
Jaret Burkett
2025-08-31 16:58:27 -06:00
parent 193c1b2dfa
commit 0f2239ca23
4 changed files with 42 additions and 2 deletions

View File

@@ -155,6 +155,17 @@ const docs: { [key: string]: ConfigDoc } = {
</>
),
},
'train.force_first_sample': {
title: 'Force First Sample',
description: (
<>
This option will force the trainer to generate samples when it starts. The trainer will normally only generate a first sample
when nothing has been trained yet, but will not do a first sample when resuming from an existing checkpoint. This option
forces a first sample every time the trainer is started. This can be useful if you have changed sample prompts and want to see
the new prompts right away.
</>
),
},
};
export const getDoc = (key: string | null | undefined): ConfigDoc | null => {