pytorch/functorch
functorch is JAX-like composable function transforms for PyTorch. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 37
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1962
- days_rel: n/a
- days_push: 378
- n_releases_24m: 0
Adoption not part of the score
1434 stars · 108 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
functorch is a library providing JAX-like composable function transforms (vmap, grad, vjp, jvp) for PyTorch, enabling efficient per-sample gradients, ensembles, and Jacobian/Hessian computation. Its APIs have been integrated into PyTorch 2.0 as torch.func, with the standalone package deprecated.
Use cases
- compute per-sample gradients in pytorch
- run model ensembles efficiently on one machine
- compute jacobians and hessians of neural networks
- batch inner-loop tasks in MAML meta-learning
- vectorize functions over batches with vmap
- compose grad and vmap transforms like JAX
When to choose
- you need composable vmap/grad transforms on PyTorch versions before 2.0
- you want JAX-style function transforms in an existing PyTorch codebase
- you need efficient per-sample gradients or batched Jacobians/Hessians
When to avoid
- you are on PyTorch 2.0 or newer - use torch.func instead
- you want a standalone actively developed library - this is deprecated and merged into PyTorch
- you need transforms for frameworks other than PyTorch
Facets
library · maturity maintenance
machine-learning deep-learning math machine-learning deep-learning python cross-platform pytorch jax autodiff vmap gradients function-transforms jacobians hessians algorithms gpu
4 sources
- readme: https://github.com/pytorch/functorch · fetched 2026-08-28 · 3fd09aebb74a
- homepage: https://pytorch.org/functorch/ · fetched 2026-08-29 · b8f7eeeb1f28
- registry_pypi: https://pypi.org/pypi/functorch/json · fetched 2026-08-29 · 869e0069268c
- site_page: https://pytorch.org/functorch/stable · fetched 2026-08-29 · 770332190bba
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pytorch/functorch | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="pytorch/functorch")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem