简体   繁体   English

如何在 Power 8 或 PPC64 机器上安装 pytorch?

[英]How to install pytorch on Power 8 or PPC64 machine?

I am trying to install pytorch using conda on power 8 IBM machine .我正在尝试在Power 8 IBM 机器上使用conda安装pytorch Although, I read articles from IBM blog , I couldn't install with success because I got stuck with compiling magma .虽然,我阅读了IBM 博客上的文章,但我无法安装成功,因为我被编译magma卡住了。

Assuming that conda is already installed.假设已经安装了conda Simply run the following command只需运行以下命令

conda install -c engility pytorch
conda install -c engility torchvision

Note:笔记:
1. Goto this anaconda page 1.转到这个anaconda页面
2. Search for pytorch 2.搜索pytorch
3. Scroll down to see which one has linux-ppc64le as platform 3.向下滚动查看哪个平台是linux-ppc64le
4. Click into that specific package 4. 点击进入那个特定的包
5. You will get the command to install pytorch 5.你会得到安装pytorch的命令

I finally installed PyTorch 1.5.0 on ppc64le server using conda environment.我最终使用 conda 环境在 ppc64le 服务器上安装了 PyTorch 1.5.0。

  1. Install anaconda (in my case I just installed miniconda3):安装anaconda (在我的情况下,我刚刚安装了 miniconda3):
  2. Add a new config channel :添加一个新的配置通道
conda config --prepend channels https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda-early-access/linux-ppc64le/
  1. Create a new conda environment and activate it:创建一个新的 conda环境并激活它:
conda create --name early_access python=3.6
conda activate early_access
  1. Install pytorch :安装pytorch
conda install pytorch

That's it!就是这样! Credits to this blog: https://gauravm.gitbook.io/about/blogs/installing-pytorch-and-transformers-on-ibm-powerpc-architecture此博客的积分: https : //gauravm.gitbook.io/about/blogs/installing-pytorch-and-transformers-on-ibm-powerpc-architecture

Nowadays you can use powerai - MLDL framework from IBM , which includes PyTorch:现在您可以使用powerai - 来自 IBM 的 MLDL 框架,其中包括 PyTorch:

conda install powerai

It installs correct version of pytorch for PPC64.它为 PPC64 安装正确版本的 pytorch。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM