Technical requirements
You can find the supplemental code files for this chapter in the book’s GitHub repository:
https://github.com/PacktPublishing/Federated-Learning-with-Python
Important note
You can use the code files for personal or educational purposes. Please note that we will not support deployments for commercial use and will not be responsible for any errors, issues, or damage caused by using the code.
Each implementation example in this chapter was run on an x64 machine running Ubuntu 20.04.
The implementation of the training code for the NLP example requires the following libraries to run:
- Python 3 (version ≥ 3.8)
- NumPy
- TensorFlow (version ≥ 2.9.1)
- TensorFlow Hub (
pip
install tensorflow-hub
) - TensorFlow Datasets (
pip
install tensorflow-datasets
) - TensorFlow Text (
pip
install tensorflow-text
)
Using a GPU with the appropriate TensorFlow installation is recommended to save training time for the NLP example...