Text-to-Image
Diffusers
Safetensors
English
Korean
ZImagePipeline
darwin-image
aether-metacognitive
z-image
lora-merge
korean-text
vlm-judge
Instructions to use FINAL-Bench/Darwin-Image-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FINAL-Bench/Darwin-Image-v1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("FINAL-Bench/Darwin-Image-v1", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
File size: 5,183 Bytes
3ce9bf4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | ---
license: apache-2.0
language:
- en
- ko
library_name: diffusers
pipeline_tag: text-to-image
tags:
- darwin-image
- aether-metacognitive
- z-image
- lora-merge
- korean-text
- vlm-judge
base_model:
- Tongyi-MAI/Z-Image-Turbo
- Shakker-Labs/AWPortrait-Z
- qqnyanddld/nsfw-z-image-lora
- renderartist/Technically-Color-Z-Image-Turbo
- wcde/Z-Image-Turbo-DeJPEG-Lora
inference: false
---
# Darwin-Image-v1 β Unified DiT + VLM
**Darwin-Image-v1** is a **physically unified** model repository that
combines two models into a single HF repo:
1. **Z-Image Turbo** (6B DiT) at the repo root, with 4 LoRAs fused into
the transformer weights (no runtime adapter loading).
2. **Darwin-4B-David** (Gemma4 multimodal VLM, ~16GB bf16) inside the
`vlm_judge/` subfolder.
Both models coexist as real safetensors files in this single repo, so a
single `from_pretrained()` call downloads everything needed for the
AETHER metacognitive image generation pipeline.
## Repo Layout
```
FINAL-Bench/Darwin-Image-v1/
βββ model_index.json # Z-Image pipeline manifest
βββ scheduler/ # Z-Image components
βββ text_encoder/ # (Qwen3)
βββ tokenizer/
βββ transformer/ # β
DiT with 4 LoRAs fused
βββ vae/
βββ vlm_judge/ # β
β
Darwin-4B-David
β βββ config.json # Gemma4ForConditionalGeneration
β βββ model.safetensors # ~16GB bfloat16
β βββ tokenizer.json
β βββ chat_template.jinja
β βββ generation_config.json
βββ lora_manifest.yaml
βββ aether_config.json
βββ fuse_report.json
βββ README.md (this file)
```
## LoRA Stack Fused Into DiT (v2, 2026-04-10)
```
Z-Image Turbo (6B DiT, bf16)
βββ + Shakker-Labs/AWPortrait-Z (scale 0.7) β portrait quality
βββ + qqnyanddld/nsfw-z-image-lora (scale 0.5) β uncensored
βββ + renderartist/Technically-Color-Z-Image-Turbo (scale 0.3) β color
```
All LoRAs use the ai-toolkit standard format (480 keys each,
`diffusion_model.layers.N.X.lora_A/B.weight`). Fused via direct matrix
update (`pipeline/manual_fuse.py`): `W += (B @ A) Γ (alpha/rank) Γ scale`.
### v2 Changelog
- **Removed** `wcde/Z-Image-Turbo-DeJPEG-Lora/dejpeg_v3` β caused over-smoothing
that destroyed portrait/color detail. delta_norm was 3.67 vs 0.14~0.41 for
other LoRAs (26Γ baseline). Z-Image Turbo is distilled and has minimal
JPEG artifacts to begin with, so dejpeg was unnecessary.
- **Reduced** `Technically-Color-Z-Image-Turbo` scale 0.4 β 0.3 to prevent
over-saturation on high-contrast/neon scenes.
## Usage
### DiT only (text-to-image)
```python
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained(
"FINAL-Bench/Darwin-Image-v1",
torch_dtype=torch.bfloat16,
token="hf_...",
).to("cuda")
image = pipe(
prompt="cinematic portrait of a korean woman, golden hour, 85mm f1.4",
num_inference_steps=8,
guidance_scale=3.5,
height=1024,
width=1024,
).images[0]
```
### Load the bundled VLM judge (from subfolder)
```python
from transformers import AutoModel, AutoProcessor
import torch
judge = AutoModel.from_pretrained(
"FINAL-Bench/Darwin-Image-v1",
subfolder="vlm_judge",
torch_dtype=torch.bfloat16,
device_map="cuda",
token="hf_...",
)
processor = AutoProcessor.from_pretrained(
"FINAL-Bench/Darwin-Image-v1",
subfolder="vlm_judge",
token="hf_...",
)
```
## AETHER Integration
For the full metacognitive pipeline (VLM prompt enhancement + quality
judging + Korean text inpainting), use the Darwin Image pipeline code:
```python
from darwin_image.pipeline import DarwinZImagePipeline, DarwinJudge, run_aether, AetherConfig
pipe = DarwinZImagePipeline(base_model="FINAL-Bench/Darwin-Image-v1")
judge = DarwinJudge() # loads Darwin-4B-David
result = run_aether(
user_prompt='μν ν¬μ€ν°: "λ΄μ μμΈ" λ²κ½ λ¨μ°νμ',
pipe=pipe,
judge=judge,
config=AetherConfig(max_iter=3, threshold=8.0),
seed=42,
)
result.final_image.save("out.png")
```
## Default AETHER Config
See `aether_config.json` for the default metacognitive loop parameters:
- `max_iter`: 3 (up to 3 retries)
- `threshold`: 8.0 (overall score threshold to exit early)
- `enable_vlm_enhance`: true (VLM rewrites prompts)
- `enable_vlm_judge`: true (VLM scores each iteration)
- `enable_mti`: false (experimental, off by default on 8-step distilled models)
## License
Apache 2.0 β inherits from Z-Image Turbo and all LoRA base models.
## Citation
If you use Darwin-Image-v1, please cite:
```bibtex
@misc{darwin-image-2026,
title={Darwin Image: VLM-Guided Metacognitive Image Generation with Korean Text Integration},
author={VIDRAFT and μ§λμ AI and FINAL-Bench},
year={2026},
howpublished={\url{https://huggingface.co/FINAL-Bench/Darwin-Image-v1}},
}
```
## Safety Notice
This model includes an uncensored LoRA component. Use responsibly.
The AETHER pipeline Space (`darwin-image-gen`) is deployed as **private**
(FINAL-Bench org only) for this reason.
|