From 892a3878241752aea9e166ff6d6199cdcda8971b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 20:52:38 +0000 Subject: [PATCH 1/2] Initial plan From 48ecc008352e670f1b97063f50c426bb912766c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 20:59:36 +0000 Subject: [PATCH 2/2] feat: wire LoRA --lora and --lora-scale into spawn mode dit-vae invocation Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com> --- server/src/services/acestep.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server/src/services/acestep.ts b/server/src/services/acestep.ts index 1e40d8e..a6b975c 100644 --- a/server/src/services/acestep.ts +++ b/server/src/services/acestep.ts @@ -502,7 +502,9 @@ async function runViaSpawn( `\n steps = ${params.inferenceSteps ?? 8}` + `\n guidance = ${params.guidanceScale ?? 0.0}` + `\n shift = ${params.shift ?? 3.0}` + - `\n skipLm = ${skipLm}` + `\n skipLm = ${skipLm}` + + `\n lora = ${loraState.loaded && loraState.active ? loraState.path : 'none'}` + + `\n loraScale = ${loraState.loaded && loraState.active ? loraState.scale : 'n/a'}` ); try { @@ -646,6 +648,13 @@ async function runViaSpawn( const srcAudioPath = resolveAudioPath(params.sourceAudioUrl); ditArgs.push('--src-audio', srcAudioPath); } + + // LoRA adapter: inject --lora and --lora-scale when a LoRA is loaded and active. + if (loraState.loaded && loraState.active && loraState.path) { + ditArgs.push('--lora', loraState.path); + ditArgs.push('--lora-scale', String(loraState.scale)); + } + ditArgs.push(...parseExtraArgs(process.env.DIT_VAE_EXTRA_ARGS)); console.log(`[Job ${jobId}] Running dit-vae:\n ${ditVaeBin} ${ditArgs.join(' ')}`);