Hi everyone,
I was wondering why pytorch is installed relying on custom repositories with pip.
Pytorch must be installed as:
pip install torch --index-url https://download.pytorch.org/whl/cu121
There different repositories for different cuda versions or cpu.
This is a nightmare when specifiying pytorch as a requirement in python packages. Pretty much impossible to define dynamically (i.e. let the user choose a cuda version or cpu).
Jax on contrary nicely solves this enabling cuda as an extra: pip install jax[cuda_12]