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

Update infer.py for logging measurements into a csv file #104

Closed
wants to merge 0 commits into from

Conversation

quic-morteza
Copy link
Contributor

@quic-morteza quic-morteza commented Sep 9, 2024

For the user to keep track of their measurements, code is added to log the necessary arguments and the measurements into a csv file. E.g.

python -m QEfficient.cloud.infer --model_name gpt2 --batch_size 1 --prompt_len 32 --ctx_len 128 --mxfp6 --num_cores 16 --device_group [0] --prompt "My name is" --mos 1 --aic_enable_depth_first

gpt2_benchmarking.csv is generated in the working directory that stores
image

@vbaddi
Copy link
Contributor

vbaddi commented Sep 11, 2024

@quic-morteza , the linter checks are failing, pls kindly do the below steps and commit again. Thanks

- pip install pre-commit
- pre-commit install
- git commit -m ...

This will run the linter and format the code accordingly.

@quic-morteza
Copy link
Contributor Author

Thanks Vinayak. Followed your instructions for the following PRs:
#108
#109

Please discard this PR.

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.

2 participants