bghira commited on
Commit
08a375a
1 Parent(s): 9a31568

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +35 -13
README.md CHANGED
@@ -10,7 +10,7 @@ tags:
10
  - not-for-all-audiences
11
  - lora
12
  - template:sd-lora
13
- - standard
14
  inference: true
15
  widget:
16
  - text: 'unconditional (blank prompt)'
@@ -107,7 +107,7 @@ widget:
107
 
108
  # sd3-cheechandchong-regularised
109
 
110
- This is a standard PEFT LoRA derived from [stabilityai/stable-diffusion-3.5-large](https://huggingface.co/stabilityai/stable-diffusion-3.5-large).
111
 
112
 
113
  The main validation prompt used during training was:
@@ -139,9 +139,9 @@ You may reuse the base model text encoder for inference.
139
 
140
  ## Training settings
141
 
142
- - Training epochs: 36
143
- - Training steps: 2800
144
- - Learning rate: 0.0001
145
  - Max grad norm: 0.01
146
  - Effective batch size: 12
147
  - Micro-batch size: 4
@@ -153,11 +153,31 @@ You may reuse the base model text encoder for inference.
153
  - Precision: Pure BF16
154
  - Quantised: Yes: int8-quanto
155
  - Xformers: Not used
156
- - LoRA Rank: 64
157
- - LoRA Alpha: 64.0
158
- - LoRA Dropout: 0.1
159
- - LoRA initialisation style: default
160
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
 
162
  ## Datasets
163
 
@@ -178,11 +198,13 @@ You may reuse the base model text encoder for inference.
178
  ```python
179
  import torch
180
  from diffusers import DiffusionPipeline
 
181
 
182
  model_id = 'stabilityai/stable-diffusion-3.5-large'
183
- adapter_id = 'bghira/sd3-cheechandchong-regularised'
184
- pipeline = DiffusionPipeline.from_pretrained(model_id)
185
- pipeline.load_lora_weights(adapter_id)
 
186
 
187
  prompt = "A photo-realistic image of a cat"
188
  negative_prompt = 'blurry, cropped, ugly'
 
10
  - not-for-all-audiences
11
  - lora
12
  - template:sd-lora
13
+ - lycoris
14
  inference: true
15
  widget:
16
  - text: 'unconditional (blank prompt)'
 
107
 
108
  # sd3-cheechandchong-regularised
109
 
110
+ This is a LyCORIS adapter derived from [stabilityai/stable-diffusion-3.5-large](https://huggingface.co/stabilityai/stable-diffusion-3.5-large).
111
 
112
 
113
  The main validation prompt used during training was:
 
139
 
140
  ## Training settings
141
 
142
+ - Training epochs: 1
143
+ - Training steps: 100
144
+ - Learning rate: 1e-05
145
  - Max grad norm: 0.01
146
  - Effective batch size: 12
147
  - Micro-batch size: 4
 
153
  - Precision: Pure BF16
154
  - Quantised: Yes: int8-quanto
155
  - Xformers: Not used
156
+ - LyCORIS Config:
157
+ ```json
158
+ {
159
+ "bypass_mode": true,
160
+ "algo": "lokr",
161
+ "multiplier": 1.0,
162
+ "full_matrix": true,
163
+ "linear_dim": 10000,
164
+ "linear_alpha": 1,
165
+ "factor": 12,
166
+ "apply_preset": {
167
+ "target_module": [
168
+ "JointTransformerBlock"
169
+ ],
170
+ "module_algo_map": {
171
+ "FeedForward": {
172
+ "factor": 6
173
+ },
174
+ "JointTransformerBlock": {
175
+ "factor": 12
176
+ }
177
+ }
178
+ }
179
+ }
180
+ ```
181
 
182
  ## Datasets
183
 
 
198
  ```python
199
  import torch
200
  from diffusers import DiffusionPipeline
201
+ from lycoris import create_lycoris_from_weights
202
 
203
  model_id = 'stabilityai/stable-diffusion-3.5-large'
204
+ adapter_id = 'pytorch_lora_weights.safetensors' # you will have to download this manually
205
+ lora_scale = 1.0
206
+ wrapper, _ = create_lycoris_from_weights(lora_scale, adapter_id, pipeline.transformer)
207
+ wrapper.merge_to()
208
 
209
  prompt = "A photo-realistic image of a cat"
210
  negative_prompt = 'blurry, cropped, ugly'