Skip to content

Commit ffe0d73

Browse files
mengniwang95XuehaoSun
authored andcommitted
Fix flux benchmark GPU setting (#2322)
1 parent a8a1b50 commit ffe0d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pytorch/diffusion_model/diffusers/flux/run_benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function run_benchmark {
6262
python dataset_split.py --split_num ${visible_gpus} --input_file ${dataset_location} --limit ${limit}
6363

6464
for ((i=0; i<visible_gpus; i++)); do
65-
export CUDA_VISIBLE_DEVICES=${i}
65+
export CUDA_VISIBLE_DEVICES=${gpu_ids[i]}
6666

6767
python3 main.py \
6868
--model ${input_model} \

0 commit comments

Comments
 (0)