feat: parallel JIT warmup for faster server startup#2338
Draft
sunway513 wants to merge 1 commit intotest_dsfp8_no_ckfrom
Draft
feat: parallel JIT warmup for faster server startup#2338sunway513 wants to merge 1 commit intotest_dsfp8_no_ckfrom
sunway513 wants to merge 1 commit intotest_dsfp8_no_ckfrom
Conversation
Add warmup_jit.py that pre-builds all JIT modules in parallel using ThreadPoolExecutor, leveraging the existing PREBUILD_THREAD_NUM mechanism to split CPU budget across concurrent ninja builds. Benchmark on MI355 (256 CPU threads, 23 modules): - Sequential: 943.8s - Parallel (4 threads): 606.9s (1.55x overall) - Excluding module_aiter_operator: 390s -> 56s (7x speedup) Usage: python warmup_jit.py --parallel 4 --exclude module_aiter_operator python warmup_jit.py --clean --sequential # baseline Closes #2336
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
warmup_jit.py— a standalone script that pre-builds all AITER JIT modules in parallel usingThreadPoolExecutorPREBUILD_THREAD_NUMmechanism to split CPU budget across concurrent ninja builds--excludeto skip expensive/unnecessary modules per workloadBenchmark (MI355, 8x GPU, 256 CPU threads, 23 modules)
module_aiter_operator(551s) dominates both runs as a single massive compilation unit. All other 20 modules go from 390s → 56s with parallel=4.Usage
Test plan
Closes #2336
🤖 Generated with Claude Code