#!/bin/bash # Possible values for each argument ckpt_ids=("stabilityai/stable-diffusion-3-medium-diffusers" "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS" "fal/AuraFlow") batch_sizes=(1 4) torch_dtypes=("fp16" "bf16") qtypes=("fp8" "int8" "none") qte=(0 1) # Loop over all combinations for ckpt_id in "${ckpt_ids[@]}"; do for batch_size in "${batch_sizes[@]}"; do for torch_dtype in "${torch_dtypes[@]}"; do for qtype in "${qtypes[@]}"; do for te in "${qte[@]}"; do # Adjust the qtype argument if it's "None" if [ "$qtype" == "none" ]; then q_arg="" else q_arg="--qtype $qtype" fi # Run the Python script with the current combination of arguments python3 benchmark.py --ckpt_id $ckpt_id --batch_size $batch_size --torch_dtype $torch_dtype $q_arg --qte $te done done done done done