Image-to-Image
Diffusers
Safetensors
English
self-conditioning
visual-reasoning
flux
qwen-image
lora
Instructions to use alfalfa-w/self-conditioning-deep-reasoning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use alfalfa-w/self-conditioning-deep-reasoning with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("alfalfa-w/self-conditioning-deep-reasoning") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Add main checkpoint vsp vanilla checkpoint-40000
Browse files
05_diffthinker_controlled/vsp/vanilla/checkpoint-40000/lora/adapter_config.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": {
|
| 6 |
+
"base_model_class": "Flux2Transformer2DModel",
|
| 7 |
+
"parent_library": "diffusers.models.transformers.transformer_flux2"
|
| 8 |
+
},
|
| 9 |
+
"base_model_name_or_path": null,
|
| 10 |
+
"bias": "none",
|
| 11 |
+
"corda_config": null,
|
| 12 |
+
"ensure_weight_tying": false,
|
| 13 |
+
"eva_config": null,
|
| 14 |
+
"exclude_modules": null,
|
| 15 |
+
"fan_in_fan_out": false,
|
| 16 |
+
"inference_mode": true,
|
| 17 |
+
"init_lora_weights": true,
|
| 18 |
+
"layer_replication": null,
|
| 19 |
+
"layers_pattern": null,
|
| 20 |
+
"layers_to_transform": null,
|
| 21 |
+
"loftq_config": {},
|
| 22 |
+
"lora_alpha": 32,
|
| 23 |
+
"lora_bias": false,
|
| 24 |
+
"lora_dropout": 0.0,
|
| 25 |
+
"lora_ga_config": null,
|
| 26 |
+
"megatron_config": null,
|
| 27 |
+
"megatron_core": "megatron.core",
|
| 28 |
+
"modules_to_save": null,
|
| 29 |
+
"peft_type": "LORA",
|
| 30 |
+
"peft_version": "0.19.1",
|
| 31 |
+
"qalora_group_size": 16,
|
| 32 |
+
"r": 32,
|
| 33 |
+
"rank_pattern": {},
|
| 34 |
+
"revision": null,
|
| 35 |
+
"target_modules": [
|
| 36 |
+
"linear_out",
|
| 37 |
+
"single_transformer_blocks.14.attn.to_out",
|
| 38 |
+
"to_q",
|
| 39 |
+
"single_transformer_blocks.11.attn.to_out",
|
| 40 |
+
"single_transformer_blocks.1.attn.to_out",
|
| 41 |
+
"single_transformer_blocks.17.attn.to_out",
|
| 42 |
+
"single_transformer_blocks.19.attn.to_out",
|
| 43 |
+
"single_transformer_blocks.2.attn.to_out",
|
| 44 |
+
"to_add_out",
|
| 45 |
+
"single_transformer_blocks.7.attn.to_out",
|
| 46 |
+
"single_transformer_blocks.8.attn.to_out",
|
| 47 |
+
"single_transformer_blocks.12.attn.to_out",
|
| 48 |
+
"add_k_proj",
|
| 49 |
+
"add_v_proj",
|
| 50 |
+
"single_transformer_blocks.0.attn.to_out",
|
| 51 |
+
"single_transformer_blocks.4.attn.to_out",
|
| 52 |
+
"to_k",
|
| 53 |
+
"add_q_proj",
|
| 54 |
+
"linear_in",
|
| 55 |
+
"single_transformer_blocks.15.attn.to_out",
|
| 56 |
+
"single_transformer_blocks.18.attn.to_out",
|
| 57 |
+
"single_transformer_blocks.6.attn.to_out",
|
| 58 |
+
"single_transformer_blocks.5.attn.to_out",
|
| 59 |
+
"single_transformer_blocks.16.attn.to_out",
|
| 60 |
+
"single_transformer_blocks.9.attn.to_out",
|
| 61 |
+
"single_transformer_blocks.13.attn.to_out",
|
| 62 |
+
"to_qkv_mlp_proj",
|
| 63 |
+
"to_v",
|
| 64 |
+
"single_transformer_blocks.10.attn.to_out",
|
| 65 |
+
"to_out.0",
|
| 66 |
+
"single_transformer_blocks.3.attn.to_out"
|
| 67 |
+
],
|
| 68 |
+
"target_parameters": null,
|
| 69 |
+
"task_type": null,
|
| 70 |
+
"trainable_token_indices": null,
|
| 71 |
+
"use_bdlora": null,
|
| 72 |
+
"use_dora": false,
|
| 73 |
+
"use_qalora": false,
|
| 74 |
+
"use_rslora": false
|
| 75 |
+
}
|
05_diffthinker_controlled/vsp/vanilla/checkpoint-40000/lora/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8add44b6f08bfc3cbd9728d8b93d9bbb56ec7ef38c50ea4107eddd00371e596f
|
| 3 |
+
size 192704480
|