Skip to content

Commit 14571a8

Browse files
authored
[Diffusion] Benchmark tweaks (#48)
1 parent 44d44d1 commit 14571a8

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

configs/xdit/text-to-image/benchmark.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ command_template: |
99
--workload.base_dir run/diffusion/text-to-image/{model_id} \
1010
--workload.batch_size {batch_size} \
1111
--workload.ulysses_degree {ulysses_degree} \
12-
--workload.ring_degree {ring_degree}
12+
--workload.ring_degree {ring_degree} \
13+
--workload.inference_steps None
1314
1415
sweep_defaults:
1516
- batch_size: [1, 2, 4, 8, 16]

configs/xdit/text-to-video/benchmark.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ command_template: |
1010
--workload.batch_size {batch_size} \
1111
--workload.ulysses_degree {ulysses_degree} \
1212
--workload.ring_degree {ring_degree}
13+
--workload.inference_steps None \
14+
--workload.num_frames None
1315
1416
sweep_defaults:
1517
- batch_size: [1, 2, 4, 8, 16]
@@ -42,5 +44,3 @@ sweep_defaults:
4244
- batch_size: [1, 2, 4, 8, 16]
4345
ulysses_degree: [8]
4446
ring_degree: [1]
45-
46-

mlenergy/diffusion/benchmark.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,12 @@ def save_results(
965965
result_json["inference_steps"] = args.workload.inference_steps
966966
result_json["seed"] = args.workload.seed
967967

968+
# Video-specific parameters
969+
if hasattr(args.workload, "num_frames") and args.workload.num_frames is not None:
970+
result_json["num_frames"] = args.workload.num_frames
971+
if hasattr(args.workload, "fps") and args.workload.fps is not None:
972+
result_json["fps"] = args.workload.fps
973+
968974
# Performance metrics
969975
result_json["total_images"] = num_images
970976
result_json["total_time"] = benchmark_duration

0 commit comments

Comments
 (0)