explaingit

vita-epfl/rdm

Analysis updated 2026-05-18

79PythonAudience · researcherComplexity · 5/5LicenseSetup · hard

TLDR

Research code for training AI image generators that produce a finished image in a single step, matching a published paper's results.

Mindmap

mindmap
  root((RDM))
    What it does
      Trains one step image generators
      Matches feature distributions
      Converts FLUX.2 to one step
    Tech stack
      Python
      PyTorch
      Hugging Face transformers
    Use cases
      Reproduce paper results
      Train a one step generator
      Evaluate released checkpoints
    Audience
      ML researchers
      Generative model engineers
    Requirements
      Multi GPU training
      Own image datasets
      Pretrained checkpoints

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce the paper's one step ImageNet generation results.

USE CASE 2

Convert a multi step FLUX.2 image model into a faster one step generator.

USE CASE 3

Evaluate released one step generator checkpoints on standard benchmarks.

USE CASE 4

Study the representation distribution matching method for generative model training.

What is it built with?

PythonPyTorchTransformersDiffusers

How does it compare?

vita-epfl/rdmhappy-chen-ch/text_classificationliuluhaixiu/davinci-autoedit-agent
Stars797979
LanguagePythonPythonPython
Setup difficultyhardhardmoderate
Complexity5/54/53/5
Audienceresearcherresearchervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires multiple GPUs, large pretrained checkpoints, and datasets like ImageNet already downloaded locally.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

RDM, short for Representation Distribution Matching, is the research code behind a paper on training AI image generators that can produce a finished image in a single step, instead of the many refinement steps most image generators use today. The authors are from EPFL, Valeo.ai, and Sorbonne University, and the project includes a research paper, a live demo, and downloadable model checkpoints. The core idea is to train the one step generator by matching the statistical distribution of features from generated images against features from real images, using a collection of frozen, already trained image encoders as the comparison tool. There is no separate teacher model guiding the training, no adversarial network fighting against the generator, and no need to unroll multiple sampling steps during training. The README reports that this method reaches state of the art results on a standard one step ImageNet benchmark, and can also convert an existing four step image model called FLUX.2 klein into a one step version that scores higher than the original on a standard text to image evaluation. Using this project requires installing it with pip, along with libraries such as PyTorch, timm, and Hugging Face's transformers and diffusers packages, and you must already have the relevant image datasets, like ImageNet or COCO, downloaded on your own disk since the code does not fetch them for you. The repository includes scripts to download pretrained checkpoints, run evaluation, reproduce the paper's figures, and train new models across multiple GPUs. This is a research codebase aimed at people working on generative image models, not a general purpose tool, and it requires meaningful GPU compute to train from scratch. It is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me install RDM and its dependencies, including PyTorch, timm, and diffusers.
Prompt 2
Walk me through downloading the released pMF-H checkpoint and running the ImageNet evaluation.
Prompt 3
Explain in simple terms how RDM trains a one step image generator without a teacher or adversary.
Prompt 4
What GPU resources do I need to reproduce RDM's one step ImageNet training run?

Frequently asked questions

What is rdm?

Research code for training AI image generators that produce a finished image in a single step, matching a published paper's results.

What language is rdm written in?

Mainly Python. The stack also includes Python, PyTorch, Transformers.

What license does rdm use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is rdm to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is rdm for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.