Difference between revisions of "Porting/PyTorch"
Jump to navigation
Jump to search
JeremyRand (talk | contribs) (Add missing conversion functions between half and float for ppc64le) |
JeremyRand (talk | contribs) (ppc64le binaries) |
||
Line 1: | Line 1: | ||
+ | = Binaries = | ||
+ | |||
+ | [https://github.com/open-ce/open-ce/ Open Cognitive Environment (Open-CE)] provides ppc64le binaries of PyTorch and related packages. Example workflow to install PyTorch and [https://github.com/xinntao/Real-ESRGAN Real-ESRGAN] on Fedora 38 ppc64le: | ||
+ | |||
+ | sudo dnf install python3.10 | ||
+ | sudo dnf install conda | ||
+ | conda create --name pytorch python=3.10 | ||
+ | # Close and re-open terminal | ||
+ | conda activate pytorch | ||
+ | conda install -c https://ftp.osuosl.org/pub/open-ce/current/ pytorch-cpu torchvision-cpu py-opencv | ||
+ | conda install -c numba llvmlite | ||
+ | conda install -c conda-forge grpcio | ||
+ | conda install -c conda-forge libstdcxx-ng | ||
+ | conda install pip | ||
+ | GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true pip install basicsr facexlib gfpgan | ||
+ | clone https://github.com/xinntao/Real-ESRGAN.git | ||
+ | cd Real-ESRGAN | ||
+ | pip install -r requirements.txt | ||
+ | python setup.py develop | ||
+ | # Real-ESRGAN is now installed. | ||
+ | |||
= In progress = | = In progress = | ||
Revision as of 23:19, 4 May 2023
Binaries
Open Cognitive Environment (Open-CE) provides ppc64le binaries of PyTorch and related packages. Example workflow to install PyTorch and Real-ESRGAN on Fedora 38 ppc64le:
sudo dnf install python3.10 sudo dnf install conda conda create --name pytorch python=3.10 # Close and re-open terminal conda activate pytorch conda install -c https://ftp.osuosl.org/pub/open-ce/current/ pytorch-cpu torchvision-cpu py-opencv conda install -c numba llvmlite conda install -c conda-forge grpcio conda install -c conda-forge libstdcxx-ng conda install pip GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true pip install basicsr facexlib gfpgan clone https://github.com/xinntao/Real-ESRGAN.git cd Real-ESRGAN pip install -r requirements.txt python setup.py develop # Real-ESRGAN is now installed.