Views
No views yet
transformer/ text_encoder/ vae/ tokenizer/ scheduler/) with the
transformer stored at bf16. Loaded by the Swift/MLX port; int8/int4 are produced at load time
(correct resident footprint — a q4 pipeline ≈ 6 GB fits a 16 GB Mac).1import MLXZImage
2import MLXToolKit
3let package = ZImageTurboT2IPackage(configuration: .turbo(quant: .int4, snapshotPath: "<this repo dir>"))
4try await package.load()
5let r = try await package.run(T2IRequest(prompt: "a lighthouse at dusk, photorealistic",
6 width: 1024, height: 1024, seed: 42)) as! T2IResponse