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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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

2025-10-07