Skip to content

feat: wire LoRA into spawn mode dit-vae invocation#16

Merged
lmangani merged 2 commits intomainfrom
copilot/implement-lora-loading-ui-api
Mar 8, 2026
Merged

feat: wire LoRA into spawn mode dit-vae invocation#16
lmangani merged 2 commits intomainfrom
copilot/implement-lora-loading-ui-api

Conversation

Copy link
Contributor

Copilot AI commented Mar 8, 2026

LoRA adapter support existed only in HTTP mode — loraState was maintained server-side but never forwarded to the dit-vae binary in spawn mode.

Changes

  • server/src/services/acestep.tsrunViaSpawn(): inject --lora <path> and --lora-scale <scale> into ditArgs when loraState.loaded && loraState.active && loraState.path, mirroring the existing HTTP mode behaviour in buildHttpRequest()
  • Debug log: extended per-job startup log with lora and loraScale fields for operator visibility
// 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));
}

The UI LoRA panel, /api/lora/* routes, and loraState export are all pre-existing; this change closes the spawn-mode gap only.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ation

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement LoRA loading in UI and API application feat: wire LoRA into spawn mode dit-vae invocation Mar 8, 2026
@lmangani lmangani marked this pull request as ready for review March 8, 2026 21:14
@lmangani lmangani merged commit a5eb7bd into main Mar 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants