Skip to content

Commit 1ec459d

Browse files
entrpnksikiric
authored andcommitted
update readme and some dependencies.
1 parent 5df1f3c commit 1ec459d

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

README.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
[![Unit Tests](https://github.com/google/maxtext/actions/workflows/UnitTests.yml/badge.svg)](https://github.com/google/maxdiffusion/actions/workflows/UnitTests.yml)
1818

1919
# What's new?
20-
- **`2025/02/12`**: Flux LoRA for inference.
21-
- **`2025/02/08`**: Flux schnell & dev inference.
20+
- **`2025/02/08**: Flux schnell & dev inference.
2221
- **`2024/12/12`**: Load multiple LoRAs for inference.
2322
- **`2024/10/22`**: LoRA support for Hyper SDXL.
2423
- **`2024/8/1`**: Orbax is the new default checkpointer. You can still use `pipeline.save_pretrained` after training to save in diffusers format.
@@ -48,8 +47,7 @@ MaxDiffusion supports
4847
* [Training](#training)
4948
* [Dreambooth](#dreambooth)
5049
* [Inference](#inference)
51-
* [Flux](#flux)
52-
* [Flux LoRA](#flux-lora)
50+
* [Flux](#flux)
5351
* [Hyper-SD XL LoRA](#hyper-sdxl-lora)
5452
* [Load Multiple LoRA](#load-multiple-lora)
5553
* [SDXL Lightning](#sdxl-lightning)
@@ -171,24 +169,6 @@ To generate images, run the following command:
171169
python src/maxdiffusion/generate_flux.py src/maxdiffusion/configs/base_flux_schnell.yml jax_cache_dir=/tmp/cache_dir run_name=flux_test output_dir=/tmp/ prompt="photograph of an electronics chip in the shape of a race car with trillium written on its side" per_device_batch_size=1 ici_data_parallelism=1 ici_fsdp_parallelism=-1 offload_encoders=False
172170
```
173171

174-
## Flux LoRA
175-
176-
Disclaimer: not all LoRA formats have been tested. If there is a specific LoRA that doesn't load, please let us know.
177-
178-
Tested with [Amateur Photography](https://civitai.com/models/652699/amateur-photography-flux-dev) and [XLabs-AI](https://huggingface.co/XLabs-AI/flux-lora-collection/tree/main) LoRA collection.
179-
180-
First download the LoRA file to a local directory, for example, `/home/jfacevedo/anime_lora.safetensors`. Then run as follows:
181-
182-
```bash
183-
python src/maxdiffusion/generate_flux.py src/maxdiffusion/configs/base_flux_dev.yml jax_cache_dir=/tmp/cache_dir run_name=flux_test output_dir=/tmp/ prompt='A cute corgi lives in a house made out of sushi, anime' num_inference_steps=28 ici_data_parallelism=1 ici_fsdp_parallelism=-1 split_head_dim=True lora_config='{"lora_model_name_or_path" : ["/home/jfacevedo/anime_lora.safetensors"], "weight_name" : ["anime_lora.safetensors"], "adapter_name" : ["anime"], "scale": [0.8], "from_pt": ["true"]}'
184-
```
185-
186-
Loading multiple LoRAs is supported as follows:
187-
188-
```bash
189-
python src/maxdiffusion/generate_flux.py src/maxdiffusion/configs/base_flux_dev.yml jax_cache_dir=/tmp/cache_dir run_name=flux_test output_dir=/tmp/ prompt='A cute corgi lives in a house made out of sushi, anime' num_inference_steps=28 ici_data_parallelism=1 ici_fsdp_parallelism=-1 split_head_dim=True lora_config='{"lora_model_name_or_path" : ["/home/jfacevedo/anime_lora.safetensors", "/home/jfacevedo/amateurphoto-v6-forcu.safetensors"], "weight_name" : ["anime_lora.safetensors","amateurphoto-v6-forcu.safetensors"], "adapter_name" : ["anime","realistic"], "scale": [0.6, 0.6], "from_pt": ["true","true"]}'
190-
```
191-
192172
## Hyper SDXL LoRA
193173

194174
Supports Hyper-SDXL models from [ByteDance](https://huggingface.co/ByteDance/Hyper-SD)

0 commit comments

Comments
 (0)