flow_matching is a PyTorch library implementing flow matching algorithms in both continuous and discrete settings, enabling generative modeling via matching vector fields rather than diffusion. The underlying idea is to parameterize a flow (a time-dependent vector field) that transports samples from a simple base distribution to a target distribution, and train via matching of flows without requiring score estimation or noisy corruption—this can lead to more efficient or stable generative training. The library supports both continuous-time flows (via differential equations) and discrete-time analogues, giving flexibility in design and tradeoffs. It provides examples across modalities (images, toy 2D distributions) to help users understand how to apply flow matching in practice. The codebase includes notebooks illustrating 2D flow matching, discrete flows, and Riemannian flow matching on curved manifolds (e.g. flat torus) for non-Euclidean support.

Features

  • Continuous-time flow matching for generative modeling
  • Discrete flow matching methods for alternate tradeoffs
  • Support for Riemannian manifold flow matching (non-Euclidean geometries)
  • Example notebooks illustrating 2D flows, discrete flows, and manifold flows
  • PyTorch implementation with utilities and integration ready
  • Setup scripts, environment specification, and easy installation via setup.py

Project Samples

Project Activity

See All Activity >

Categories

AI Models

License

MIT License

Follow Flow Matching

Flow Matching Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Flow Matching!

Additional Project Details

Programming Language

Python

Related Categories

Python AI Models

Registered

4 days ago