Skip to content

Instantly share code, notes, and snippets.

@arijitx
Created June 21, 2020 06:51
Show Gist options
  • Save arijitx/c20379394852242a2fa03f76b9ee4e4f to your computer and use it in GitHub Desktop.
Save arijitx/c20379394852242a2fa03f76b9ee4e4f to your computer and use it in GitHub Desktop.
Installing transformers on Jetson Nano

FInd a better version here : https://benjcunningham.org/installing-transformers-on-jetson-nano.html

Install sentencepiece

git clone https://github.com/google/sentencepiece
cd /path/to/sentencepiece
mkdir build
cd build
cmake ..
make -j $(nproc)
sudo make install
sudo ldconfig -v
cd .. 
cd python
python3 setup.py install

Install tokenizers

curl https://sh.rustup.rs -sSf | sh
rustc --version
exit
restart
pip3 install tokenizers

Install transformers

pip3 install transformers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment