Add compile to the actual right config section.
This commit is contained in:
@@ -406,16 +406,16 @@ export default function SimpleJob({
|
||||
</FormGroup>
|
||||
<Checkbox
|
||||
label="Compile Model"
|
||||
checked={jobConfig.config.process[0].train.compile || false}
|
||||
checked={jobConfig.config.process[0].model.compile || false}
|
||||
onChange={value => {
|
||||
setJobConfig(value, 'config.process[0].train.compile');
|
||||
setJobConfig(value, 'config.process[0].model.compile');
|
||||
if (value) {
|
||||
for (const key in defaultCompileOptions) {
|
||||
setJobConfig((defaultCompileOptions as any)[key], `config.process[0].train.${key}`);
|
||||
setJobConfig((defaultCompileOptions as any)[key], `config.process[0].model.${key}`);
|
||||
}
|
||||
} else {
|
||||
for (const key in defaultCompileOptions) {
|
||||
setJobConfig(undefined, `config.process[0].train.${key}`);
|
||||
setJobConfig(undefined, `config.process[0].model.${key}`);
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
||||
@@ -151,12 +151,6 @@ export interface TrainConfig {
|
||||
differential_guidance_scale?: number;
|
||||
audio_loss_multiplier?: number;
|
||||
max_loss?: number | null;
|
||||
compile?: boolean;
|
||||
block_compile?: boolean;
|
||||
compile_mode?: 'default' | 'max-autotune' | 'fastest';
|
||||
compile_fullgraph?: boolean;
|
||||
compile_dynamic?: boolean;
|
||||
cache_size_limit?: number;
|
||||
}
|
||||
|
||||
export interface QuantizeKwargsConfig {
|
||||
@@ -177,6 +171,12 @@ export interface ModelConfig {
|
||||
layer_offloading_transformer_percent?: number;
|
||||
layer_offloading_text_encoder_percent?: number;
|
||||
assistant_lora_path?: string;
|
||||
compile?: boolean;
|
||||
block_compile?: boolean;
|
||||
compile_mode?: 'default' | 'max-autotune' | 'fastest';
|
||||
compile_fullgraph?: boolean;
|
||||
compile_dynamic?: boolean;
|
||||
cache_size_limit?: number;
|
||||
}
|
||||
|
||||
export interface SampleItem {
|
||||
|
||||
@@ -1 +1 @@
|
||||
VERSION = "0.10.7"
|
||||
VERSION = "0.10.8"
|
||||
|
||||
Reference in New Issue
Block a user