Spaces:
Running on Zero

mpasila commited on
Commit
b3babf9
·
verified ·
1 Parent(s): e7c3a50

feat(lora): add ComfyUI MiniMax-H3 LoRA conversion

Browse files

Implement automatic remapping of ComfyUI-format MiniMax-H3 Turbo LoRAs to diffusers module names.

- Added `_is_comfyui_lora` to detect ComfyUI naming conventions.
- Added `_convert_comfyui_lora` to handle:
- Block prefix remapping (`blocks` -> `transformer_blocks`).
- Token refiner path updates.
- Splitting fused QKV projections into separate `to_q`, `to_k`, and `to_v` weights.
- Remapping MLP and output projection keys.
- Integrated conversion into `apply_loras` to support Turbo LoRAs without manual conversion.

1 file changed +72 -1
app.py+72-1