Install TransformerEngine-FL#

Direct install from FlagOS Repository#

pip install transformer_engine==0.1.0+te2.9.0 --extra-index-url https://resource.flagos.net/repository/flagos-pypi-hosted/simple

Install from source#

git clone https://github.com/flagos-ai/TransformerEngine-FL.git
cd TransformerEngine-FL
git checkout <tag number>
git submodule update --init --recursive
MAX_JOBS=xxx pip install .

Note

This requires the image from the vendors.

For an end-to-end training workflow using TransformerEngine-FL, Megatron-LM-FL, and FlagScale, see End-to-End Use Case: TransformerEngine-FL + Megatron-LM-FL + FlagScale.