Pixel Forge
Pixel-art LoRA for Z-Image Turbo
2 min read
A new LoRA model (a lightweight add-on for a base model) turns Z-Image Turbo into a pixel-art generator. It lets you create sprites, isometric scenes, RPG maps, and game UI elements in just 8 steps at a 768-pixel resolution. The model was trained on a dataset of over 3,000 images and is tailored for indie developers and retro content creators.
Key features
- Fast generation: High-quality image creation in just 8 steps.
- Flexible resolutions: Support for 768-pixel resolution with aspect ratio buckets.
- Wide style range: Suitable for 16-bit graphics, isometric views, and side-scrollers.
- Efficiency: Compatible with VRAM optimizations to run on 12 GB GPUs.
What you can do
- Generate concepts for retro RPG games or isometric locations.
- Create tilesets and maps for platformers or side-scrollers.
- Draw character sprites and game user interface (UI) elements.
- Design background artwork in the style of 16-bit consoles.
Example
import torch
from diffusers import ZImagePipeline
pipe = ZImagePipeline.from_pretrained(
"Tongyi-MAI/Z-Image-Turbo", torch_dtype=torch.bfloat16
)
pipe.load_lora_weights(
"minas2025/pixel-forge-zimage-turbo",
weight_name="pixel-forge-zimage-turbo.safetensors",
)
pipe.enable_sequential_cpu_offload()
pipe.vae.enable_tiling()
image = pipe(
prompt="pixel art, a knight resting by a campfire, 16-bit RPG, dithering",
height=768, width=768,
num_inference_steps=8,
guidance_scale=0.0,
generator=torch.Generator("cpu").manual_seed(0),
).images[0]
image.save("knight.png")Read more
DetailsBase: Tongyi-MAI/Z-Image-Turbo (6B DiT, Apache-2.0)
Training method: DreamBooth LoRA (rank 32, alpha 32)
Hardware: 1× NVIDIA RTX PRO 6000 (96 GB)
Precision: bf16, gradient checkpointing
Limitations: generates pixel-art images rather than clean sprite sheets with a fixed grid




Comments