FedML Installation on NVIDIA Jetson Devices¶
Run FedML with Docker (Recommended)¶
Pull FedML RPI docker image
docker pull fedml/fedml:latest-nvidia-jetson-l4t-ml-r35.1.0-py3
Run Docker with “fedml login”
docker run -t -i --runtime nvidia fedml/fedml:latest-nvidia-jetson-l4t-ml-r35.1.0-py3 /bin/bash
root@8bc0de2ce0e0:/usr/src/app# fedml login 299
Install with pip¶
This method is only recommended to those who don’t want to use docker. fedml needs to be installed without dependencies because Pytorch is not available in pip on Jetson.
install Pytorch using python wheels
install rest of the dependencies with pip3 except torch and torchvision:
install fedml without dependencies since they are installed manually.
pip3 install fedml --no-dependencies
Issues and solutions:¶
pip3 install h5py related error:
sudo apt-get install subversion
ln -s /usr/include/locale.h /usr/include/xlocale.h
sudo apt-get install libhdf5-serial-dev
pip3 install sklearn related error:
sudo apt-get install build-essential libatlas-base-dev gfortran