conda-forge / pytorch-cpu-feedstock

A conda-smithy repository for pytorch-cpu.
BSD 3-Clause "New" or "Revised" License
17 stars 43 forks source link

Packaging difference conda-forge's and pytorch's distribution of pytorch #218

Open jjerphan opened 8 months ago

jjerphan commented 8 months ago

Hi,

Thank you for packaging pytorch on conda-forge!

I have few questions about this distribution with respect to the official one from pytorch:

hmaarrfk commented 8 months ago

What is the plus-value of installing conda-forge's builds of pytorch instead of pytorch's?

If your computation stack depends on some optimized C binaries and they aren't available on pypi, then conda allows you to have your own "channel" and build in accordance to your requirements.

pytorch's channel depends on anaconda's "default" channel optimizations.

on conda-forge, we depend on conda-forge's optimizations.

On conda-forge, it is a community lead development so you and others can have an impact on the development. For example, I believe we were the first to have Apple silicon (arm) packages.

What was the original reason behind redistributing pytorch on conda-forge?

The above.

Do you know a summary of the differences between conda-forge's and the original distribution of pytorch?

jjerphan commented 8 months ago

Thank you for those elements.

pytorch and torchvision (and a few other packages from NVIDIA it seems) are distributed on conda-forge, but the rest of the packages are distributed on the pytorch and nvidia channels.

In the case of pytorch, to which extends is it possible to mix packages coming from different channels? Installing as many packages as possible from conda-forge and then from pytorch is possible, but would such an installation be prone to problems?

hmaarrfk commented 8 months ago

yes prone to problems if you mix conda-forge + defaults