This repository was archived by the owner on Jun 6, 2026. It is now read-only.
Repository navigation
The first complete guide for deploying federated learning on the NVIDIA Jetson AGX Xavier #1
rekkles2
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Jetson AGX Xavier Deployment Guide for Federated Learning via Flower Framework
Note
Please strictly follow the versions provided in this guide, as the Jetson Xavier platform has a unique hardware architecture. It requires specific versions of PyTorch and related packages. Note that the communication package
grpciomay cause version conflicts with other deep-learning packages if mismatched.Ubuntu 20.04.6 LTS with JetPack 5.1-b1471.8.01.12.0a0 + 02fb0b0f.nv22.06l4t-pytorch:r35.1.0-pth1.13-py3grpcio==1.62.1Figure 1: NVIDIA Jetson AGX Xavier.
Let’s Start!!!
1. Prepare a Virtual Machine to Flash the AGX Xavier System
Note
The virtual machine should run Ubuntu 18.04.6 LTS, and the disk must have at least 70 GB of free space to download and flash the AGX Xavier system image.
There are many online tutorials for setting up virtual machines.
I recommend using VMware Workstation Pro 16 for its stability and ease of use.
Since this guide focuses primarily on flashing the AGX Xavier and preparing it for federated learning, the details of virtual machine configuration are omitted here — these setup steps are widely documented and do not involve many hidden pitfalls.
2. Flash the System for AGX Xavier
Figure 2. NVIDIA SDK Manager (version view).
Figure 3. Platform selection in SDK Manager.
Download SDK Manager
sdkmanager_2.0.0-11402_amd64.deband transfer the package to your virtual machine.Install the package:
Launch SDK Manager (you should see a UI similar to Figure 3):
When flashing begins, connect your host computer to the AGX Xavier via USB.
In SDK Manager, select JetPack 5.1 (rev. 1) for installation.
After the flashing process is complete, the AGX Xavier device will automatically power on and its display will light up — indicating that the system installation has finished successfully.
You can now proceed to the next step.
3. Expand the Storage Space on AGX Xavier
Note
By default, the AGX Xavier provides only 32 GB of onboard storage, which is insufficient for large datasets.
After completing the initial flashing process, it is recommended to expand the available storage by mounting and migrating the system to an external SSD.
Figure 4. Disk Utility App.
Figure 5. Select SSD.
Figure 6. Create a Disk Partition.
First, open the Disks application (as shown in Figure 4).
Locate the installed SSD and select it (Figure 5).
Press Ctrl + D to format the SSD and prepare it for mounting.
Next, click the “+” button (Figure 6) to create a new partition, set a volume name, and then click Create.
To migrate the root filesystem from eMMC to the SSD, open a terminal within the SSD directory and run:
Figure 7. Setting up NVMe boot for AGX Xavier.
git clone https://github.com/jetsonhacks/rootOnNVMe.git cd rootOnNVMe ./copy-rootfs-ssd.sh ./setup-service.shOnce all steps are complete, reboot the AGX Xavier to finalize the setup:
4. Let the Fan Spin Up ☺
Figure 8. Jtop graphical interface.
Figure 9. Jtop graphical interface.
To enable and monitor the fan on AGX Xavier, install jetson-stats:
If an error occurs during installation or when starting
jtop, check the service log:5. Set the Docker Environment for AGX Xavier
First, pull the NVIDIA PyTorch image (this step might take some time depending on your network speed):
Then, run and open the container:
Figure 10. Docker terminal interface.
Figure 11. File navigation inside Docker.
Figure 12. Dataset storage location.
After launching the container (Figure 10), navigate as shown in Figure 11 to access your filesystem.
Upload datasets or project files into the folder indicated in Figure 12:
Tip
The container’s internal files will reset when it restarts.
To preserve your environment, commit the current container to a new image.
For example, save it as flower:
Next time, you can open it with:
6. Install Flower Framework for Federated Learning
Now install the Flower framework in the Docker environment:
Then:
Then:
Now, all conditions are prepared. Thanks for following! ❤
This discussion was created from the release The first complete guide for deploying federated learning on the NVIDIA Jetson AGX Xavier .
All reactions