forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Support Torch profiler in Habana Worker (#357)
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: ```python from vllm import LLM, SamplingParams llm = LLM(...) llm.start_profile() llm.stop_profile() ```
- Loading branch information
1 parent
f848d27
commit d8ba780
Showing
5 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters