Download inference_rot.sh from BlueSourceJY/LightningDiT-Comp: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/BlueSourceJY/LightningDiT-Comp/resolve/main/inference_rot.sh
- Command line
-
hf download hf://BlueSourceJY/LightningDiT-Comp/inference_rot.sh
-
curl -L -o inference_rot.sh https://huggingface.co/BlueSourceJY/LightningDiT-Comp/resolve/main/inference_rot.sh
526 Bytes
| CONFIG_PATH=$1 | |
| GPUS_PER_NODE=${GPUS_PER_NODE:-8} | |
| NNODES=${WORLD_SIZE:-1} | |
| NODE_RANK=${RANK:-0} | |
| MASTER_ADDR=${MASTER_ADDR:-127.0.0.1} | |
| MASTER_PORT=${MASTER_PORT:-1235} | |
| WORLD_SIZE=$(($GPUS_PER_NODE*$NNODES)) | |
| PRECISION=${PRECISION:-bf16} | |
| accelerate launch \ | |
| --main_process_ip $MASTER_ADDR \ | |
| --main_process_port $MASTER_PORT \ | |
| --machine_rank $NODE_RANK \ | |
| --num_processes $(($GPUS_PER_NODE*$NNODES)) \ | |
| --num_machines $NNODES \ | |
| --mixed_precision $PRECISION \ | |
| inference_rot.py \ | |
| --config $CONFIG_PATH |