Expose pretrained LoRA path in simple UI

This commit is contained in:
杨平安 2026-07-03 15:11:13 +08:00
parent f63221e577
commit 4db0e0144d
2 changed files with 12 additions and 0 deletions

View File

@ -487,6 +487,17 @@ export default function SimpleJob({
)}
{jobConfig.config.process[0].network?.type == 'lora' && (
<>
<TextInput
label="Pretrained LoRA Path"
value={jobConfig.config.process[0].network.pretrained_lora_path ?? ''}
onChange={value =>
setJobConfig(
value.trim() === '' ? undefined : value.trim(),
'config.process[0].network.pretrained_lora_path'
)
}
placeholder="eg. /path/to/previous_lora.safetensors"
/>
<NumberInput
label="Linear Rank"
value={jobConfig.config.process[0].network.linear}

View File

@ -62,6 +62,7 @@ export interface GPUApiResponse {
export interface NetworkConfig {
type: string;
pretrained_lora_path?: string;
linear: number;
linear_alpha: number;
conv: number;