Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Change Offline samples_per_query #1883

Open
zixianwang2022 opened this issue Oct 21, 2024 · 2 comments
Open

How to Change Offline samples_per_query #1883

zixianwang2022 opened this issue Oct 21, 2024 · 2 comments

Comments

@zixianwang2022
Copy link

zixianwang2022 commented Oct 21, 2024

Hi,

How do I change the values of samples_per_query given to the sut by loadgen?
https://github.com/mlcommons/inference/blob/master/text_to_image/main.py#L421

    def issue_queries(query_samples):
        runner.enqueue(query_samples)
@arjunsuresh
Copy link
Contributor

Hi @zixianwang2022 it's not trivial to change that as it's scenario specific and for each scenario it's value is calculated by loadgen using multiple parameters. In offline scenario, target_qps is the main parameters which determines the number of samples in a query.

If you are running via CM, you can provide --test_query_count=N to the run command to control this.

@NoureddineBouhali
Copy link

NoureddineBouhali commented Nov 12, 2024

You can do that by additing the lines in your user.conf :
*.Offline.min_query_count = <desired number of samples>
*.Offline.min_duration = 1
Details for this can be found in loadgen.cpp which controls the number of samples in the query according to the target qps, min_duration and min_query_count in user.conf.

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

No branches or pull requests

3 participants