MLX (bf16) conversion of OpenMOSS-Team/MOSS-Image-Base (Apache-2.0) for Apple Silicon. MOSS-Image-Base is the pretrained checkpoint that MOSS-Image-SFT is fine-tuned from: same architecture and prompts, with less curated composition. It is the starting point for LoRA training. For generation, prefer MOSS-Image-SFT-bf16.
MOSS-Image pairs a 5B single-stream DiT with the Qwen3.5-9B text encoder and the FLUX.2 VAE with BFL's small decoder. Its DiT design:
summary.caption plus items, with bbox_format: "yxyx" and bbox_coord_space: "abs_centralized" (pixels, centred on the canvas, same size as the request).The snapshot is a standard diffusers tree (transformer/ text_encoder/ tokenizer/ vae/ scheduler/):
1ceede80.pipeline_moss_image.py) stays upstream.| Setting | Value |
|---|---|
| Sampler | Euler flow matching |
| Steps | 50 |
| Shift | 5 (snapped to the training grid) |
| CFG | 3, with block 22 skipped in the negative branch |
| Negative prompt | empty |
| Component | Result |
|---|---|
| Qwen3.5-9B encoder, final hidden state | relL2 4.8e-6 |
| DiT, one forward (12 timestep / prompt / skip-layer cases) | relL2 1.1e-6 – 5.3e-6 |
| Scheduler sigmas (4 – 50 steps) | bit-exact |
| FLUX.2 small decoder | relL2 1.2e-6 |
| bf16 end-to-end (8 steps) vs fp32 | inside PyTorch's own bf16 drift |
| DiT tier | Resident | Peak | Denoise |
|---|---|---|---|
| bf16 | 10.3 GB | 26.2 GB | 113 s (2.27 s/step) |
| int8 (quantized at load) | 5.6 GB | 21.5 GB | about the same |
import MLXMossImage
import MLXToolKit
let package = MossImageBasePackage(configuration: MossImageConfiguration(quant: .bf16)) // weights materialize on load
try await package.load()
let r = try await package.run(T2IRequest(prompt: "A hand-painted sign that reads OPEN LATE", width: 1024, height: 1024, seed: 42)) as! T2IResponseCode: https://github.com/xocialize/moss-image-swift (Swift/MLX port, MIT).
Review the technical report before you use the model.
The weights are Apache-2.0, as released by OpenMOSS. Components: