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

[Core] Support Torch profiler in Habana Worker #357

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

mswiniarsk
Copy link

This PR allows to profile execution on HPU through flag VLLM_TORCH_PROFILER_DIR. Similar as it is done for GPU.
The profiling can be controlled:

  1. Asynchronously by posting requests to the server:
    a) to start collecting profile:
    curl -X POST http://localhost:8080/start_profile
    b) to stop collecting profile:
    curl -X POST http://localhost:8080/stop_profile
  2. In script, by instructing LLM object to start and stop profiling:
from vllm import LLM, SamplingParams
llm = LLM(...)
llm.start_profile()
llm.stop_profile()

@mswiniarsk mswiniarsk merged commit d8ba780 into habana_main Oct 4, 2024
19 checks passed
@mswiniarsk mswiniarsk deleted the dev/mswiniarski/support_torch_profiler branch October 4, 2024 08:33
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