Skip to content

Refactor LoRA adapters and add ComfyUI/LoKr support for YuE2, VibeVoice, and ACE-Step - #974

Merged
0xShug0 merged 3 commits into
mainfrom
refactor/lora-subsystem
Oct 19, 2026
Merged

0xShug0 merged 3 commits into
mainfrom
refactor/lora-subsystem

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #948.

  • Separate adapter format import, model-specific target bindings, and load-time weight materialization in the shared weight-adapter subsystem.
  • Support native A/B, PEFT, ComfyUI up/down, and matrix LoKr layouts without putting format-specific logic in inference graphs.
  • Migrate YuE2 and VibeVoice while retaining their existing merge arithmetic, and add ACE-Step DiT adapter loading.
  • Update model specs, documentation, and ACE-Step UI adapter controls.

Adapter targets and shapes are validated before weights are modified. Base weights remain immutable; adapter changes require a new session. Inference graphs are unchanged.

Scope

This does not support every ComfyUI/LyCORIS variant: convolution/Tucker LoKr, DoRA, QALoRA, and transposed PEFT updates are explicitly rejected. Adapting a quantized base requires dequantization and requantization of affected tensors; it is not equivalent to adapting the original full-precision checkpoint before quantization.

Validation

  • Previous branch validation: weight_adapter_test, weight_adapter_source_test, and model_spec_system_test passed.
  • After rebasing onto current main: npm run check passed with zero errors or warnings; npm run build passed and the embedded UI bundle was regenerated.
  • Rebase resolution preserves both ACE-Step's caption-rewrite Run-button guard and main's translated tooltips. Native/model tests were not rerun after this UI-only conflict resolution.

@0xShug0
0xShug0 force-pushed the refactor/lora-subsystem branch from 9282997 to e031a35 Compare October 18, 2026 22:11
@0xShug0
0xShug0 merged commit fcb4619 into main Oct 19, 2026
6 checks passed
@0xShug0
0xShug0 deleted the refactor/lora-subsystem branch October 19, 2026 00:46
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.

Please make it possible to load comfyui format adapters (loras)

1 participant