Automatic vectorization with vmap and gradients with grad in Jax