Created
June 28, 2024 12:41
-
-
Save xrsrke/ca0b1fe783aa631323970fadfa5c441f to your computer and use it in GitHub Desktop.
install fp8 on nanotron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conda create --prefix ./env python=3.10 | |
module load cuda/12.1 | |
export CUDNN_PATH=/usr/local/cuda-12.1/lib | |
pip install pyyaml packaging | |
pip install torch==2.1.2 | |
pip install numpy | |
pip install git+https://github.com/NVIDIA/TransformerEngine.git@stable | |
git clone git@github.com:huggingface/nanotron.git | |
cd nanotron | |
pip install -e . | |
pip install pytest pytest-xdist | |
# NOTE: keep these packages in the following version | |
# triton==2.1.0 nvidia-nccl-cu12==2.18.1 torch==2.1.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment