Skip to content

Commit fddbab7

Browse files
authored
[research_projects] Update README.md to include a note about NF5 T5-xxl (#9775)
Update README.md
1 parent 298ab6e commit fddbab7

File tree

1 file changed

+3
-2
lines changed
  • examples/research_projects/flux_lora_quantization

1 file changed

+3
-2
lines changed

examples/research_projects/flux_lora_quantization/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
66
This example shows how to fine-tune [Flux.1 Dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) with LoRA and quantization. We show this by using the [`Norod78/Yarn-art-style`](https://huggingface.co/datasets/Norod78/Yarn-art-style) dataset. Steps below summarize the workflow:
77

8-
* We precompute the text embeddings in `compute_embeddings.py` and serialize them into a parquet file.
8+
* We precompute the text embeddings in `compute_embeddings.py` and serialize them into a parquet file.
9+
* Even though optional, we load the T5-xxl in NF4 to further reduce the memory foot-print.
910
* `train_dreambooth_lora_flux_miniature.py` takes care of training:
1011
* Since we already precomputed the text embeddings, we don't load the text encoders.
1112
* We load the VAE and use it to precompute the image latents and we then delete it.
@@ -163,4 +164,4 @@ image.save("yarn_merged.png")
163164
|-------|-------|
164165
| ![Image A](https://huggingface.co/datasets/sayakpaul/sample-datasets/resolve/main/quantized_flux_training/merged.png) | ![Image B](https://huggingface.co/datasets/sayakpaul/sample-datasets/resolve/main/quantized_flux_training/unmerged.png) |
165166

166-
As we can notice the first column result follows the style more closely.
167+
As we can notice the first column result follows the style more closely.

0 commit comments

Comments
 (0)