Re:JAX – NumPy on the CPU, GPU, and TPU, with great automati...
by tasubotadas on Friday September 29, 2023 @01:16AM
(#37699554)
Is there any benefit using it instead of pytorch?
[ Parent
| on HN ]
Re:JAX – NumPy on the CPU, GPU, and TPU, with great automati...
by fnbr on Friday September 29, 2023 @01:18AM
(#37699565)
The main benefit in my experience is that it’s much easier to do distributed computations in JAX. It has a much nicer API. For single device computing there’s no advantage either way.
Re:JAX – NumPy on the CPU, GPU, and TPU, with great automati...
by marmaduke on Friday September 29, 2023 @01:49AM
(#37699738)
If you like functional languages, then Jax will fit better for you. It provides a bunch of function transformations to implement eg grad, JIT etc.
Re:JAX – NumPy on the CPU, GPU, and TPU, with great automati...
by missingET on Friday September 29, 2023 @04:23AM
(#37700801)
Jax has a much nicer handling of higher order differentiation. PyTorch has functions to compute Hessians and there are libraries to keep differentiability through optimizers, but going out of their standard use-cases becomes tricky very fast. In contrast, JAX can compute nth-derivatives of things very easily.