functorch aims to provide composable vmap (vectorization) and autodiff transforms that work well with PyTorch modules and PyTorch autograd.