Downloads · 30 days
0
holgt/z-image-burn
z-image-burn is a text-to-image model from holgt. Use it when you need an image from a text prompt. It is set up for burn. The card lists the license as apache-2.0.
Z-Image Turbo model weights converted to Burn's Burnpack format for use with the Burn deep learning framework.
Downloads · 30 days
0
Access
Public
Updated Feb 22, 2026
Repo size
42.4 GB
Likes
0
Public
Click a slice to open those files.
.bpk34.4 GB · 100%
From the Hugging Face model README
Z-Image Turbo model weights converted to Burn's Burnpack format for use with the Burn deep learning framework.
Z-Image is a fast image generation model based on flow-matching diffusion, designed for generating high-quality images from text prompts. This repository contains the model weights in Burnpack (.bpk) format, optimized for inference on Apple Silicon (Metal) and other Burn backends.
| File | Size | Description |
|---|---|---|
z_image_turbo_bf16.bpk | 11 GB | Transformer weights in BF16 precision |
To run Z-Image, you also need:
See the z-image-app for a macOS GUI application.
use burn::backend::candle::{Candle, CandleDevice};
use half::bf16;
use qwen3_burn::{Qwen3Config, Qwen3Model, Qwen3Tokenizer};
use z_image::{GenerateFromTextOpts, modules::ae::AutoEncoderConfig, modules::transformer::ZImageModelConfig};
type Backend = Candle<bf16, i64>;
fn main() {
let device = CandleDevice::metal(0);
let model_dir = PathBuf::from("./models");
// Load components
let tokenizer = Qwen3Tokenizer::from_file(model_dir.join("qwen3-tokenizer.json")).unwrap();
let mut text_encoder: Qwen3Model<Backend> = Qwen3Config::z_image_text_encoder().init(&device);
text_encoder.load_weights(model_dir.join("qwen3_4b_text_encoder.safetensors")).unwrap();
let mut transformer = ZImageModelConfig::default().init(&device);
transformer.load_weights(model_dir.join("z_image_turbo_bf16.bpk")).unwrap();
let mut ae = AutoEncoderConfig::flux_ae().init(&device);
ae.load_weights(model_dir.join("ae.safetensors")).unwrap();
// Generate image
let opts = GenerateFromTextOpts {
prompt: "A beautiful sunset over mountains".to_string(),
out_path: PathBuf::from("output.png"),
width: 512,
height: 512,
};
z_image::generate_from_text(&opts, &tokenizer, &text_encoder, &ae, &transformer, &device).unwrap();
}
Apache 2.0