---
title: "PRX Part 3 — Training a Text-to-Image Model in 24h!"
description: "A 24-hour, ~$1500 speedrun on 32 H200s combines the most effective diffusion training tricks into a single text-to-image recipe."
url: "https://swe.quest/articles/prx-part-3-training-a-text-to-image-model-in-24h-e27e27a7f3c7dc41"
canonical: "https://huggingface.co/blog/Photoroom/prx-part3"
source: "Hugging Face"
published: "2026-03-03"
difficulty: "hard"
kind: "Case study"
reading_minutes: 9
tags: ["model-training","computer-vision","machine-learning"]
---

# PRX Part 3 — Training a Text-to-Image Model in 24h!

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-03-03, 9 min read, Case study. Original: [https://huggingface.co/blog/Photoroom/prx-part3](https://huggingface.co/blog/Photoroom/prx-part3)

## Summary

A 24-hour, ~$1500 speedrun on 32 H200s combines the most effective diffusion training tricks into a single text-to-image recipe. The recipe uses x-prediction in pixel space with patch size 32 and no VAE, LPIPS and DINOv2 perceptual losses applied to pooled full images at all noise levels, TREAD token routing with dense-vs-routed self-guidance, REPA alignment to DINOv3 at block 8 on non-routed tokens only, and Muon for 2D parameters with Adam for everything else. Training ran 100k steps at 512px followed by 20k steps at 1024px on about 8.7M synthetic images. The resulting model follows prompts well, and its remaining artifacts look like undertraining rather than flaws in the recipe. Code and configs are open-sourced in the PRX repository.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- diffusion models
- flow matching
- vision transformers ([easy posts on Computer vision](https://swe.quest/tags/computer-vision.md?difficulty=easy))
- distributed training ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))

## Keywords

PRX, TREAD, REPA, DINOv3, Muon, LPIPS, H200, Photoroom

## Related posts

- [Training Design for Text-to-Image Models: Lessons from Ablations](https://swe.quest/articles/training-design-for-text-to-image-models-lessons-from-ablations-0bc11bc8d1a3210c.md): Hugging Face · 2026-02-03 · Hard · 31 min read · Model training, Computer vision, Machine learning, Evaluation
  Photoroom's ablations on its PRX-1.2B text-to-image model compare recent training-efficiency techniques against a plain Flow Matching baseline: 100k steps at 256×256 on 1M MidJourney images, scored with FID, CMMD, DINO-MMD and throughput.
- [Welcome FLUX.3 Image Klein in Diffusers](https://swe.quest/articles/welcome-flux-3-image-klein-in-diffusers-478c83816e6db758.md): Hugging Face · 2026-10-15 · Medium · 16 min read · Computer vision, Inference & serving, Model training, Python
  FLUX.3 Image Klein from Black Forest Labs is supported in Diffusers from launch.
- [The Annotated Diffusion Model](https://swe.quest/articles/the-annotated-diffusion-model-62697ee4beb56b3a.md): Hugging Face · 2022-06-07 · Hard · 24 min read · Computer vision, Model training, Machine learning, Python
  Denoising Diffusion Probabilistic Models (Ho et al., 2020) work by pairing a fixed forward process that gradually adds Gaussian noise to an image under a variance schedule with a learned reverse process that denoises step by step from pure noise.
- [LoRA training scripts of the world, unite!](https://swe.quest/articles/lora-training-scripts-of-the-world-unite-73f0d15365f25313.md): Hugging Face · 2024-01-02 · Hard · 18 min read · Model training, Computer vision, Machine learning
  Combining Pivotal Tuning (textual inversion of newly inserted tokens, then LoRA fine-tuning) with the adaptive Prodigy optimizer produces strong SDXL Dreambooth LoRA results, and both are now available in a diffusers training script.
- [Open Preference Dataset for Text-to-Image Generation by the 🤗 Community](https://swe.quest/articles/open-preference-dataset-for-text-to-image-generation-by-the-community-51063f2eca79d4de.md): Hugging Face · 2024-12-09 · Easy · 7 min read · Model training, Computer vision, Evaluation, Open source
  Data is Better Together released an Apache 2.0 text-to-image preference dataset of 10K pairs, with over 30K annotations from more than 250 community members collected in under two weeks.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
