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
Fully Managed MySQL, PostgreSQL, and SQL Server Icon
Fully Managed MySQL, PostgreSQL, and SQL Server

Automatic backups, patching, replication, and failover. Focus on your app, not your database.

Cloud SQL handles your database ops end to end, so you can focus on your app.
Try 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