Skip to content

Add optional benchmarking for inference scripts#137

Open
Yokto13 wants to merge 1 commit into
nvidia-cosmos:mainfrom
Yokto13:dfarhan/benchmark_flags_inference
Open

Add optional benchmarking for inference scripts#137
Yokto13 wants to merge 1 commit into
nvidia-cosmos:mainfrom
Yokto13:dfarhan/benchmark_flags_inference

Conversation

@Yokto13

@Yokto13 Yokto13 commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

This PR adds an option to run a simple benchmark for all inference scripts. When the --benchmark option is used, four calls to pipeline.generate are executed, and the average run time of the last three is logged (the first is used as a warm-up).

It's similar to this PR in predict 2.

tested with: cosmos_predict1/autoregressive/inference/base.py and cosmos_predict1/diffusion/inference/text2world.py as it takes considerable time to run all the pipelines.

Signed-off-by: Dominik Farhan <dfarhan@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant