Instructions to use Forost/grim-all-v3-zimage-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Forost/grim-all-v3-zimage-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Tongyi-MAI/Z-Image", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Forost/grim-all-v3-zimage-lora") 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
Grim All v3 β Z-Image LoRA
LoRA trained from Tongyi-MAI/Z-Image (non-Turbo) with AI Toolkit v0.11.2.
Available weights
grim_all_v3_zimage_lora_epoch1.safetensorsβ first complete epoch, step 11,738.grim_all_v3_zimage_lora_epoch2.safetensorsβ second complete epoch, cumulative step 23,476.
Both files contain 480 LoRA tensors. Epoch 1 and epoch 2 are preserved as separate immutable weights so they can be compared directly.
Training summary
- LoRA rank / alpha: 64 / 64
- Resolution: 1024 px with aspect-ratio buckets
- Optimizer: AdamW 8-bit, weight decay
1e-4 - Learning rate:
5e-5 - Precision: BF16
- Transformer and text encoder loading: qfloat8
- Dataset: 11,735 images
- Caption presentations per image: one short caption and one long caption
- Effective examples per epoch: 23,470
- Batch size: 2
- Text encoder: frozen
- Gradient checkpointing: enabled
The source images were restored with HYPIR and selectively color graded. Short and long caption presentations were both included explicitly in every epoch.
Usage
import torch
from diffusers import ZImagePipeline
pipe = ZImagePipeline.from_pretrained(
"Tongyi-MAI/Z-Image",
torch_dtype=torch.bfloat16,
).to("cuda")
pipe.load_lora_weights(
"Forost/grim-all-v3-zimage-lora",
weight_name="grim_all_v3_zimage_lora_epoch2.safetensors",
)
To use the earlier checkpoint, replace the weight name with grim_all_v3_zimage_lora_epoch1.safetensors.
- Downloads last month
- 29
Model tree for Forost/grim-all-v3-zimage-lora
Base model
Tongyi-MAI/Z-Image