| sudo apt update | |
| sudo apt install -y libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libavfilter-dev libswscale-dev libswresample-dev gfortran htop screen | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential python3-dev python3-setuptools make cmake | |
| sudo apt-get install -y ffmpeg libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libssl-dev screen | |
| # install the dependencies | |
| pip install -r requirements.txt | |
| pip install --upgrade diffusers transformers accelerate deepspeed nvitop | |
| pip install git+https://github.com/huggingface/diffusers | |
| # ## for AIP dataset | |
| git clone git@code.byted.org:us-cv/mininova.git /tmp/mininova | |
| pip install /tmp/mininova/py_pkg/byted/nebudata/ | |
| pip install /tmp/mininova/py_pkg/byted/aipcommon/ | |
| # for decord | |
| # git clone -b v0.3 https://github.com/dmlc/dlpack.git | |
| cd /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/dlpack | |
| mkdir build | |
| cd build | |
| cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release | |
| make | |
| sudo make install | |
| cd /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/dmlc-core | |
| mkdir build | |
| cd build | |
| cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release | |
| make | |
| sudo make install | |
| cd /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/decord | |
| mkdir build | |
| cd build | |
| cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release | |
| make | |
| cd ../python | |
| pwd=$PWD | |
| echo "PYTHONPATH=$PYTHONPATH:$pwd" >> ~/.bashrc | |
| source ~/.bashrc | |
| sudo python3 setup.py install --user | |
| # for flash-attn | |
| pip install flash-attn==2.7.4.post1 --no-build-isolation | |
| cp -r /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/flash-attention /opt/tiger | |
| cd /opt/tiger/flash-attention/hopper | |
| pip install ninja==1.11.1.3 | |
| sudo python setup.py install | |
| # for github | |
| # git remote set-url origin https://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@github.com/SHYuanBest/fp_train.git | |
| git config --global user.name SHYuanBest | |
| git config --global user.email shyuan-cs@hotmail.com | |
| pip uninstall torchao -y | |
| # sudo apt update | |
| # sudo apt install -y libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libavfilter-dev libswscale-dev libswresample-dev gfortran htop screen | |
| # sudo apt-get update | |
| # sudo apt-get install -y build-essential python3-dev python3-setuptools make cmake | |
| # sudo apt-get install -y ffmpeg libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libssl-dev screen | |
| # # install the dependencies | |
| # pip install -r requirements.txt | |
| # pip install --upgrade diffusers transformers accelerate deepspeed nvitop | |
| # pip install git+https://github.com/huggingface/diffusers | |
| # # ## for AIP dataset | |
| # git clone git@code.byted.org:us-cv/mininova.git /tmp/mininova | |
| # pip install /tmp/mininova/py_pkg/byted/nebudata/ | |
| # pip install /tmp/mininova/py_pkg/byted/aipcommon/ | |
| # # for decord | |
| # # git clone -b v0.3 https://github.com/dmlc/dlpack.git | |
| # cd /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/dlpack | |
| # mkdir build | |
| # cd build | |
| # cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release | |
| # make | |
| # sudo make install | |
| # cd /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/dmlc-core | |
| # mkdir build | |
| # cd build | |
| # cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release | |
| # make | |
| # sudo make install | |
| # cd /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/decord | |
| # mkdir build | |
| # cd build | |
| # cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release | |
| # make | |
| # cd ../python | |
| # pwd=$PWD | |
| # echo "PYTHONPATH=$PYTHONPATH:$pwd" >> ~/.bashrc | |
| # source ~/.bashrc | |
| # sudo python3 setup.py install --user | |
| # # for flash-attn | |
| # pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu126 | |
| # pip install flashinfer-python==0.3.1 vllm==0.10.1.1 qwen_vl_utils keye_vl_utils opencv-python-headless==4.11.0.86 numpy==1.26.4 video-reader-rs | |
| # cd /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/flash-attention-new | |
| # sudo python setup.py install | |
| # cp -r /mnt/bn/yufan-dev-my/ysh/Codes/dummy_dataloader/decord_temp/flash-attention /opt/tiger | |
| # cd /opt/tiger/flash-attention/hopper | |
| # pip install ninja==1.11.1.3 | |
| # sudo python setup.py install | |
| # # for github | |
| # # git remote set-url origin https://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@github.com/SHYuanBest/fp_train.git | |
| # git config --global user.name SHYuanBest | |
| # git config --global user.email shyuan-cs@hotmail.com | |
| # pip uninstall torchao | |
| # pip uninstall pynvml |