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

[TPU] Add example for profiling TPU inference #12531

Merged

Conversation

mgoin
Copy link
Member

@mgoin mgoin commented Jan 28, 2025

Provides an example for simple prefill or decode profiling on TPUs. This is a starting point equivalent to text-only inference using benchmark_latency.py, where all the user can specify is batch size, input length, and output length.

Future work should expand this example to cover realistic data and multimodal inference.

Example screenshot of a profile in tensorboard (tensorboard --logdir profiles/ --port 6006):
Screenshot 2025-01-28 at 5 26 47 PM

Copy link

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can do one of these:

  • Add ready label to the PR
  • Enable auto-merge.

🚀

mgoin added 2 commits January 28, 2025 23:26
Signed-off-by: mgoin <[email protected]>
Signed-off-by: mgoin <[email protected]>
@robertgshaw2-redhat robertgshaw2-redhat enabled auto-merge (squash) January 29, 2025 02:24
@robertgshaw2-redhat robertgshaw2-redhat added the ready ONLY add when PR is ready to merge/full CI is needed label Jan 29, 2025
@robertgshaw2-redhat robertgshaw2-redhat merged commit fbb5bd4 into vllm-project:main Jan 29, 2025
42 checks passed
rasmith pushed a commit to rasmith/vllm that referenced this pull request Jan 30, 2025
Isotr0py pushed a commit to Isotr0py/vllm that referenced this pull request Feb 2, 2025
NickLucche pushed a commit to NickLucche/vllm that referenced this pull request Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ONLY add when PR is ready to merge/full CI is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants