{"id":26571115,"url":"https://github.com/lebellig/jax-fm","last_synced_at":"2025-03-22T22:34:38.839Z","repository":{"id":276152640,"uuid":"859766467","full_name":"lebellig/jax-fm","owner":"lebellig","description":"Minimal implementation of flow matching with JAX","archived":false,"fork":false,"pushed_at":"2024-10-04T13:10:06.000Z","size":3737,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T15:53:21.560Z","etag":null,"topics":["deep-learning","flow-matching","generative-ai","jax"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lebellig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-19T08:41:41.000Z","updated_at":"2025-01-14T14:36:41.000Z","dependencies_parsed_at":"2025-02-06T15:53:23.855Z","dependency_job_id":"ebf703c0-b86d-4dd6-8ad0-88c4d7c7012b","html_url":"https://github.com/lebellig/jax-fm","commit_stats":null,"previous_names":["lebellig/jax-fm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebellig%2Fjax-fm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebellig%2Fjax-fm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebellig%2Fjax-fm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebellig%2Fjax-fm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lebellig","download_url":"https://codeload.github.com/lebellig/jax-fm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245029496,"owners_count":20549714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","flow-matching","generative-ai","jax"],"created_at":"2025-03-22T22:34:38.194Z","updated_at":"2025-03-22T22:34:38.830Z","avatar_url":"https://github.com/lebellig.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flow Matching with Jax\n_notebook by Georges Le Bellier_  - [Twitter](https://twitter.com/_lebellig), [Website](https://gle-bellier.github.io)\n\n![flow(1)](https://github.com/gle-bellier/jax_fm/blob/main/swiss_1000.gif)\n\nThis notebook proposes a minimal implementation of _Flow Matching_ using Jax, Flax and JaxTyping. I mostly wanted to define the conditional velocity as the time derivative of the interpolant (i.e. conditional path):\n```python\ndef interpolant(x0: Float[Array, \"N\"] , x1: Float[Array, \"N\"], t: float) -\u003e Float[Array, \"N\"]:\n    return x0 + (x1 - x0) * t\n\nvelocity = jax.jacrev(interpolant, argnums=2)\n```\n\n## References:\n\n📄 [1] **Flow Matching for Generative Modeling** by Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, Matt Le - [Article](https://arxiv.org/abs/2210.02747)\n\n🐍 [2] **Jax** - [Code](https://github.com/jax-ml/jax)\n\n🐍 [3] **Flax** - [Code](https://github.com/google/flax)\n\n🐍 [4] **JaxTyping** by Patrick Kidger - [Doc](https://github.com/patrick-kidger/jaxtyping)\n\n🐍 [5] **Introduction to Flow Matching** by Georges Le Bellier - [Notebook](https://github.com/gle-bellier/flow-matching/tree/main)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flebellig%2Fjax-fm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flebellig%2Fjax-fm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flebellig%2Fjax-fm/lists"}