--- license: other library_name: mlx pipeline_tag: text-to-image tags: - stable-diffusion-xl - flux - flux.1-dev - comfyui - mlx - apple-silicon - acceleration - lora - sdmlx --- # SDMLX Acceleration Patches Pre-mapped SDXL and FLUX.1 acceleration patches for SDMLX / ComfyUI on Apple Silicon. These packages are **not fully expanded UNet deltas**. They contain SDMLX-mapped low-rank LoRA factors: - target keys already match the SDMLX MLX UNet - linear factors use `[out, rank]` and `[rank, in]` - Conv2D down factors use MLX layout `[rank, kernel_h, kernel_w, in]` - runtime scale is `strength * alpha / rank` Each `.sdmlxpatch` package contains: - `patch.safetensors` - `manifest.json` - optional `source_metadata.json` ## Packages ### SDXL | Package | Recommended Steps | CFG | Sampler | Scheduler | Force No CFG | | --- | ---: | ---: | --- | --- | --- | | `dmd2_sdxl_4step_lora_fp16.sdmlxpatch` | 4 | 1.0 | `lcm` | `normal` | true | | `dmd2-lighting8step_cfg1.5.sdmlxpatch` | 8 | 1.5 | `lcm` | `normal` | false | | `sdxl_lightning_4step_lora.sdmlxpatch` | 4 | 1.0 | `euler` | `sgm_uniform` | true | | `sdxl_lightning_8step_lora.sdmlxpatch` | 8 | 1.0 | `lcm` | `normal` | true | | `lcm-lora-sdxl.sdmlxpatch` | 8 | 1.0 | `lcm` | `normal` | true | | `Hyper-SDXL-8steps-CFG-lora.sdmlxpatch` | 8 | 5.0 | `lcm` | `normal` | false | | `Hyper-SDXL-12steps-CFG-lora.sdmlxpatch` | 12 | 7.5 | `lcm` | `normal` | false | ### FLUX.1 | Package | Target | Recommended Steps | Notes | | --- | --- | ---: | --- | | `Hyper-Flux.1-Dev-4-step-Lora.sdmlxpatch` | FLUX.1 Dev | 4 | Optional SDMLX FLUX.1 acceleration patch. | The recommendations are metadata only. SDMLX should keep sampler settings explicit in the UI. ## Source Licenses These packages are transformed LoRA factors. They are provided with source attribution and remain subject to their upstream licenses: - `dmd2_*`: source `tianweiy/DMD2`, Hugging Face metadata lists `cc-by-nc-4.0`; the model card text names Creative Commons Attribution-NonCommercial-ShareAlike 4.0. - `sdxl_lightning_*`: source `ByteDance/SDXL-Lightning`, license `openrail++`. - `lcm-lora-sdxl`: source `latent-consistency/lcm-lora-sdxl`, license `openrail++`. - `Hyper-SDXL-*`: source `ByteDance/Hyper-SD`; SD-related Hyper-SD models are covered by the CreativeML Open RAIL++-M license in the upstream `LICENSE.md`. - `Hyper-Flux.1-Dev-4-step-Lora`: source `Lingyuzhou/Hyper_Flux.1_Dev_4_step_Lora`. No substantive upstream license grant is documented: Hugging Face metadata says `license: 123` and the included `LICENSE` file is empty (checked 2026-08-04). Do not assume redistribution or commercial-use rights; verify the upstream terms or obtain permission. Use is also subject to applicable FLUX.1 Dev terms. Do not publish or redistribute packages whose upstream license does not fit your use case. In particular, DMD2 is non-commercial/share-alike. OpenRAIL++ and OpenRAIL++-M packages include use-based restrictions that downstream users must follow. The SDMLX code license does not relicense these packages. For the repository-level notice, see `THIRD_PARTY_NOTICES.md` in the SDMLX code repository. ## Hugging Face Upload Use Git LFS for package tensors: ```bash git lfs track "*.safetensors" git lfs track "*.sdmlxpatch/patch.safetensors" git add .gitattributes README.md *.sdmlxpatch git commit -m "Add SDMLX acceleration patches" git push ``` Suggested repo type: model.