-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'github/main' into mamba_jamba_pp
Signed-off-by: mzusman <[email protected]>
- Loading branch information
Showing
19 changed files
with
438 additions
and
394 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
import time | ||
|
||
from vllm.config import CompilationConfig, CompilationLevel | ||
from vllm.logger import init_logger | ||
|
||
logger = init_logger(__name__) | ||
|
||
torch_compile_start_time: float = 0.0 | ||
|
||
|
||
def start_monitoring_torch_compile(compilation_config: CompilationConfig): | ||
pass | ||
global torch_compile_start_time | ||
torch_compile_start_time = time.time() | ||
|
||
|
||
def end_monitoring_torch_compile(compilation_config: CompilationConfig): | ||
if compilation_config.level == CompilationLevel.PIECEWISE: | ||
logger.info("graph compilation takes %.2f s in total", | ||
logger.info("torch.compile takes %.2f s in total", | ||
compilation_config.compilation_time) |
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
Oops, something went wrong.