How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("Mariobilly/tocg26-000003000")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

TOCG26 000003000

LoRA for Z-Image Turbo.

  • File: TOCG26_000003000.safetensors
  • Trigger word: tocg26
  • Trained by: @Mariobilly

Samples

sample 1 sample 2 sample 3 sample 4

Usage

Place the .safetensors file in your models/loras/ folder and load it in ComfyUI or your inference UI of choice. Include the trigger word tocg26 in your prompt to activate the LoRA.

from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained("Tongyi-MAI/Z-Image-Turbo")
pipe.load_lora_weights("Mariobilly/tocg26-000003000")
image = pipe("tocg26, your prompt here").images[0]
Downloads last month
20
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support