Added support for finetuning OmniGen2.

This commit is contained in:
Jaret Burkett
2025-06-25 13:58:16 -06:00
parent 5e733764aa
commit 19ea8ecc38
28 changed files with 6405 additions and 5 deletions

View File

@@ -170,6 +170,19 @@ export const modelArchs: ModelArch[] = [
},
disableSections: ['model.quantize', 'train.timestep_type'],
},
{
name: 'omnigen2',
label: 'OmniGen2',
defaults: {
// default updates when [selected, unselected] in the UI
'config.process[0].model.name_or_path': ['OmniGen2/OmniGen2', defaultNameOrPath],
'config.process[0].sample.sampler': ['flowmatch', 'flowmatch'],
'config.process[0].train.noise_scheduler': ['flowmatch', 'flowmatch'],
'config.process[0].model.quantize': [false, false],
'config.process[0].model.quantize_te': [true, false],
},
disableSections: ['network.conv'],
},
].sort((a, b) => {
// Sort by label, case-insensitive
return a.label.localeCompare(b.label, undefined, { sensitivity: 'base' })