News for hackers. Stuff that matters.

Show HN: Flow Matching model inference in C

https://github.com/ecrasevvv/c-fm/tree/master

As the title and description of the GitHub repo suggest, I’m working on a small project for purely educational purposes, with the goal of implementing generative model inference (small models capable of modeling 2D distributions) based on the Flow Matching paradigm in C. I’ve worked on generative AI models based on Flow Matching from a more “abstract” perspective, using frameworks like PyTorch, and I wanted to understand what goes on behind the scenes. The repository is still a work in progress and is also one of my first "serious" projects in C.
( 2 comments | 2 points | on HN )
Re:Show HN: Flow Matching model inference in C by bialamusic on Friday July 24, 2026 @04:54AM (#49032925)
What is "Flow Matching paradigm in C"? Your Read Me file is 1 line ! Please explain these fancy words to us the old school developers
Re:Show HN: Flow Matching model inference in C by ecrasevvv on Friday July 24, 2026 @05:42AM (#49033184)
Hi, the "Flow Matching paradigm" a simulation-free approach for training Continuous Normalizing Flows (CNFs) based on regressing vector fields of fixed conditional probability paths (original paper: https://arxiv.org/abs/2210.02747, MIT Course with practical examples: https://diffusion.csail.mit.edu/2026/index.html). Less formally Flow Matching can be described as "a technique to learn how to transport samples from one distribution to another". For example we could learn how to transport samples from a simple distribution we can easily sample from (e.g. Gaussian) to a complex distribution (e.g. images , videos , robot actions , etc.).