▲ | cmdr2 3 days ago | |
https://pypi.org/p/torchruntime might help here, it's designed precisely for this purpose. `pip install torchruntime` `torchruntime install torch` It figures out the correct torch to install on the user's PC, factoring in the OS (Win, Linux, Mac), the GPU vendor (NVIDIA, AMD, Intel) and the GPU model (especially for ROCm, whose configuration varies per generation and ROCm version). And it tries to support quite a number of older GPUs as well, which are pinned to older versions of torch. It's used by a few cross-platform torch-based consumer apps, running on quite a number of consumer installations. |