Upload config/examples/mod_lora_scale.yaml with huggingface_hub
Browse files
config/examples/mod_lora_scale.yaml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
job: mod
|
| 3 |
+
config:
|
| 4 |
+
name: name_of_your_model_v1
|
| 5 |
+
process:
|
| 6 |
+
- type: rescale_lora
|
| 7 |
+
# path to your current lora model
|
| 8 |
+
input_path: "/path/to/lora/lora.safetensors"
|
| 9 |
+
# output path for your new lora model, can be the same as input_path to replace
|
| 10 |
+
output_path: "/path/to/lora/output_lora_v1.safetensors"
|
| 11 |
+
# replaces meta with the meta below (plus minimum meta fields)
|
| 12 |
+
# if false, we will leave the meta alone except for updating hashes (sd-script hashes)
|
| 13 |
+
replace_meta: true
|
| 14 |
+
# how to adjust, we can scale the up_down weights or the alpha
|
| 15 |
+
# up_down is the default and probably the best, they will both net the same outputs
|
| 16 |
+
# would only affect rare NaN cases and maybe merging with old merge tools
|
| 17 |
+
scale_target: 'up_down'
|
| 18 |
+
# precision to save, fp16 is the default and standard
|
| 19 |
+
save_dtype: fp16
|
| 20 |
+
# current_weight is the ideal weight you use as a multiplier when using the lora
|
| 21 |
+
# IE in automatic1111 <lora:my_lora:6.0> the 6.0 is the current_weight
|
| 22 |
+
# you can do negatives here too if you want to flip the lora
|
| 23 |
+
current_weight: 6.0
|
| 24 |
+
# target_weight is the ideal weight you use as a multiplier when using the lora
|
| 25 |
+
# instead of the one above. IE in automatic1111 instead of using <lora:my_lora:6.0>
|
| 26 |
+
# we want to use <lora:my_lora:1.0> so 1.0 is the target_weight
|
| 27 |
+
target_weight: 1.0
|
| 28 |
+
|
| 29 |
+
# base model for the lora
|
| 30 |
+
# this is just used to add meta so automatic111 knows which model it is for
|
| 31 |
+
# assume v1.5 if these are not set
|
| 32 |
+
is_xl: false
|
| 33 |
+
is_v2: false
|
| 34 |
+
meta:
|
| 35 |
+
# this is only used if you set replace_meta to true above
|
| 36 |
+
name: "[name]" # [name] gets replaced with the name above
|
| 37 |
+
description: A short description of your lora
|
| 38 |
+
trigger_words:
|
| 39 |
+
- put
|
| 40 |
+
- trigger
|
| 41 |
+
- words
|
| 42 |
+
- here
|
| 43 |
+
version: '0.1'
|
| 44 |
+
creator:
|
| 45 |
+
name: Your Name
|
| 46 |
+
email: your@email.com
|
| 47 |
+
website: https://yourwebsite.com
|
| 48 |
+
any: All meta data above is arbitrary, it can be whatever you want.
|