Commit edd7880
[HiDream LoRA] optimizations + small updates (#11381)
* 1. add pre-computation of prompt embeddings when custom prompts are used as well
2. save model card even if model is not pushed to hub
3. remove scheduler initialization from code example - not necessary anymore (it's now if the base model's config)
4. add skip_final_inference - to allow to run with validation, but skip the final loading of the pipeline with the lora weights to reduce memory reqs
* pre encode validation prompt as well
* Update examples/dreambooth/train_dreambooth_lora_hidream.py
Co-authored-by: Sayak Paul <[email protected]>
* Update examples/dreambooth/train_dreambooth_lora_hidream.py
Co-authored-by: Sayak Paul <[email protected]>
* Update examples/dreambooth/train_dreambooth_lora_hidream.py
Co-authored-by: Sayak Paul <[email protected]>
* pre encode validation prompt as well
* Apply style fixes
* empty commit
* change default trained modules
* empty commit
* address comments + change encoding of validation prompt (before it was only pre-encoded if custom prompts are provided, but should be pre-encoded either way)
* Apply style fixes
* empty commit
* fix validation_embeddings definition
* fix final inference condition
* fix pipeline deletion in last inference
* Apply style fixes
* empty commit
* layers
* remove readme remarks on only pre-computing when instance prompt is provided and change example to 3d icons
* smol fix
* empty commit
---------
Co-authored-by: Sayak Paul <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent b4be422 commit edd7880
File tree
2 files changed
+159
-123
lines changed- examples/dreambooth
2 files changed
+159
-123
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 56 | + | |
70 | 57 | | |
71 | 58 | | |
72 | 59 | | |
73 | 60 | | |
74 | 61 | | |
75 | 62 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 63 | + | |
| 64 | + | |
80 | 65 | | |
81 | 66 | | |
82 | | - | |
| 67 | + | |
83 | 68 | | |
84 | 69 | | |
85 | 70 | | |
86 | 71 | | |
87 | | - | |
| 72 | + | |
88 | 73 | | |
89 | 74 | | |
90 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
91 | 78 | | |
92 | 79 | | |
93 | 80 | | |
94 | 81 | | |
95 | | - | |
| 82 | + | |
96 | 83 | | |
97 | 84 | | |
98 | | - | |
99 | | - | |
| 85 | + | |
| 86 | + | |
100 | 87 | | |
101 | | - | |
| 88 | + | |
102 | 89 | | |
103 | 90 | | |
104 | 91 | | |
| |||
128 | 115 | | |
129 | 116 | | |
130 | 117 | | |
131 | | - | |
132 | 118 | | |
133 | 119 | | |
0 commit comments