Installing Pytorch and Transformers on IBM Power 9 architecture
To install pytorch and related components on the power 9 architecture follow these steps.
The first step is to setup conda by following conda docs.
You might need to restart your terminal after the above step.
After setting up conda, follow the documentation related to IBM cloud AI to install python modules. But make sure you are using the latest channel. Alternatively, copy the below commands.
Add a new config channel.
Note that I am using the early release version rather than 1.7 stable version. I am doing so because of the sentencepiece module needed for the transformers (huggingface).
Create a new conda environment and activate it
Install pytorch and ipython.
List of all packages available for this channel are here.
Installing Huggingface transformers.
Install rust compiler
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Restart terminal
source activate
Download Huggingface source and follow the below instructions.
Check if everything is working.
Last updated