News for hackers. Stuff that matters.
Re:PyTorch vs. TensorFlow in 2022 by 6gvONxR4sf7o on Tuesday December 14, 2021 @12:01PM (#29554023)
> but only provides low-level linear algebra abstractions.

Just to make sure people aren't scared off by this: jax provides a lot more than just low level linear algebra. It has some fundamental NN functions in its lax submodule, and the numpy API itself goes way way past linear algebra. Numpy plus autodiff, plus automatic vectorization, plus automatic parallelization, plus some core NN functions, plus a bunch more stuff.

Jax plus optax (for common optimizers and easily making new optimizers) is plenty sufficient for a lot of NN needs. After that, the other libraries are really just useful for initialization and state management (which is still very useful; I use haiku myself).

Re:PyTorch vs. TensorFlow in 2022 by SleekEagle on Tuesday December 14, 2021 @12:44PM (#29554611)
Would you mind commenting on Haiku vs Flax? I'm partial to Haiku because I'm a fan of Sonnet/DeepMind, but I've not looked into Flax much!
Re:PyTorch vs. TensorFlow in 2022 by 6gvONxR4sf7o on Tuesday December 14, 2021 @01:05PM (#29554943)
I haven't used flax, but it seems more like pytorch. I like haiku because it's relatively minimal. The simplest transform does init and that's all. I like that.
Re:PyTorch vs. TensorFlow in 2022 by SleekEagle on Tuesday December 14, 2021 @01:28PM (#29555265)
Got it. Awesome, thanks for the info I'll check them both out this week
Re:PyTorch vs. TensorFlow in 2022 by nestorD on Tuesday December 14, 2021 @02:34PM (#29556299)
I have a preference for Flax, you basically get Pytorch but streamlined thanks to the Jax foundation.
Re:PyTorch vs. TensorFlow in 2022 by SleekEagle on Tuesday December 14, 2021 @03:21PM (#29557013)
Awesome, thanks for the suggestion. I'll check out both for sure!
Re:PyTorch vs. TensorFlow in 2022 by tehf0x on Tuesday December 14, 2021 @06:04PM (#29559367)
Indeed! Sorry, I was thinking more about the layers but of course JAX is way more than numpy on steroids. (Although it is also that: https://dionhaefner.github.io/2021/12/supercharged-high-reso...). JAX has a very nice vmap for easy parallelization on SIMD accelerators, and pmap even allows cross-device vectorization with a single line which is just beautiful !