Download exp_code/1_benchmark/Pyramid-Flow/scripts/inference_multigpu.sh from SuperCS/useful_code: direct link, hf CLI and curl.
- Browser
- Download file 865 Bytes
-
https://huggingface.co/datasets/SuperCS/useful_code/resolve/a15ff044296b40dcb1cd3f65de1e0cd84a0150ec/exp_code/1_benchmark/Pyramid-Flow/scripts/inference_multigpu.sh
- Command line
-
hf download hf://datasets/SuperCS/useful_code@a15ff044296b40dcb1cd3f65de1e0cd84a0150ec/exp_code/1_benchmark/Pyramid-Flow/scripts/inference_multigpu.sh
-
curl -L -o inference_multigpu.sh https://huggingface.co/datasets/SuperCS/useful_code/resolve/a15ff044296b40dcb1cd3f65de1e0cd84a0150ec/exp_code/1_benchmark/Pyramid-Flow/scripts/inference_multigpu.sh
865 Bytes
| # This scripts using 2 gpus to inference. | |
| # Now only supports 2GPUs and 4GPUs for pyramid-flow-sd3; and 2GPUs or 3 GPUs for pyramid-flow-miniflux | |
| # You can set it to 4 to further reduce the generating time | |
| # Requires nproc_per_node == sp_group_size | |
| # Replace the model_path to your downloaded ckpt dir | |
| GPUS=2 # should be 2 for pyramid_flux, and 2 or 4 for pyramid_mmdit | |
| MODEL_NAME=pyramid_flux # or pyramid_mmdit | |
| VARIANT=diffusion_transformer_768p # or diffusion_transformer_384p | |
| MODEL_PATH=/home/jinyang06/models/pyramid-flow-miniflux # Replace with your checkpoint path | |
| TASK=t2v # i2v for image-to-video | |
| torchrun --nproc_per_node $GPUS \ | |
| inference_multigpu.py \ | |
| --model_name $MODEL_NAME \ | |
| --model_path $MODEL_PATH \ | |
| --variant $VARIANT \ | |
| --task $TASK \ | |
| --model_dtype bf16 \ | |
| --temp 16 \ | |
| --sp_group_size $GPUS |