#39 · Primary category: Foundation Models
transfusion-pytorch
Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAI
Project last updated:08/27/26
GitHub Stars
1.4K
Forks
75
Contributors
2
License
MIT
Why we included this project
MetaAI's Transfusion paper proposed training a single model on both text and continuous data like images, and this repo is a compact PyTorch implementation of that idea. The code swaps the paper's diffusion objective for flow matching, the approach behind Flux, and keeps the API simple: you hand it interleaved sequences where integer tensors are text and float tensors are modalities, and it produces a combined loss for training plus a sampling method for joint generation. It also handles multiple continuous modalities, lets you set different latent dimensions for each, and accepts custom encoders and decoders. Because it's a training-oriented codebase rather than a pretrained model, it's best for studying and adapting the architecture for your own experiments.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
CLIP
CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
MiniCPM-V
A Pocket-Sized MLLM for Ultra-Efficient Image and Video Understanding on Your Phone
generative-models
Generative Models by Stability AI
unilm
Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities