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

Add HPU specific arguments to benchmark_throughput #406

Merged

Conversation

kdamaszk
Copy link

Modify benchmark_throughput.py to allow running with FP8 on HPU (KV cache dtype fp8_inc) and to use padding-aware scheduling.

parser.add_argument("--weights-load-device",
type=str,
default=None,
choices=["cuda", "neuron", "hpu", "cpu"],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the need to add other than cpu and hpu?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to block other paths that are theoretically possible, based on the EngineArgs defaults. I see that currently this value is based on the DEVICE_OPTIONS, so I can change to this.

@kdamaszk kdamaszk added the habana Issues or PRs submitted by Habana Labs label Oct 21, 2024
@michalkuligowski michalkuligowski merged commit acde882 into habana_main Oct 22, 2024
19 checks passed
@michalkuligowski michalkuligowski deleted the dev/kdamaszke/update-benchmark-throughput branch October 22, 2024 08:24
xuechendi pushed a commit to xuechendi/vllm-fork that referenced this pull request Oct 23, 2024
Modify `benchmark_throughput.py` to allow running with FP8 on HPU (KV
cache dtype `fp8_inc`) and to use padding-aware scheduling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
habana Issues or PRs submitted by Habana Labs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants