Repository navigation
Conversation
|
What's the issue with using FlashInfer for some of the models? Float32? |
There was a problem hiding this comment.
remind me again why we want different submodules here? some issue about clean-up/canonicalize_graph right?
There was a problem hiding this comment.
I am really hoping we can just instead add a pass to our canonicalize_graph pass that will delete unused buffers/parameters even if the submodule has users
There was a problem hiding this comment.
Yes, registering as submodule ensures it to be handled by gm.delete_all_unused_submodules().
There was a problem hiding this comment.
This was an issue when unfuse_weight and fuse_gemm are applied in a pipeline, not the necessary update for supporting Phi
There was a problem hiding this comment.
Can we just write a utility in canonicalize_graph to remove unused weights/buffers based on gm.delete_all_unused_submodules()
There was a problem hiding this comment.
Just seems we should address this issue at its "core"
There was a problem hiding this comment.
I remember in updating #3079 we had a similar function that manually deletes all the unused weights, I don't fully remember why we switched to adding submodule. Maybe in the process of debugging the memory leakage issue, I fear that manually deleting the weights can leave some stray reference to the weight and caused the leakage. But the leakage turned out to be sth irrelevent.
Maybe we can skip modifying fusion.py for the remove unused weights/buffers in this update, the issue won't arise since we removed unfuse_weight transformation.
HeadDim not multiple of 64, also skipping flashinfer RoPE for this |
Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Ubuntu <[email protected]>
7dfda0a to
7e83c10
Compare
Includes #17 , #18, #21 , #23 * move Phi PR for sprint Signed-off-by: Ubuntu <[email protected]> * remove Phi3 patch and unfuse_weight transformation Signed-off-by: Ubuntu <[email protected]> * update Phi3/4 patches Signed-off-by: Ubuntu <[email protected]> * minor Signed-off-by: Ubuntu <[email protected]> * minor Signed-off-by: Ubuntu <[email protected]> * Update the position id to int64 Signed-off-by: Chenghao Zhang <[email protected]> * Add support for handling aliased parameters Signed-off-by: Suyog Gupta <[email protected]> * update tests Signed-off-by: Suyog Gupta <[email protected]> * lint Signed-off-by: Suyog Gupta <[email protected]> * lint Signed-off-by: Suyog Gupta <[email protected]> * removed load state dict with assign context manager Signed-off-by: Suguna Velury <[email protected]> * formatting fix Signed-off-by: Suguna Velury <[email protected]> * Removed related unit tests Signed-off-by: Suguna Velury <[email protected]> * [AutoDeploy] correctly identifying how to load HF checkpoint weights Signed-off-by: Lucas Liebenwein <[email protected]> * [AutoDeploy] correctly load sharded weights Signed-off-by: Lucas Liebenwein <[email protected]> * skip sharding if num_users>1 Signed-off-by: Suyog Gupta <[email protected]> --------- Signed-off-by: Ubuntu <[email protected]> Signed-off-by: Chenghao Zhang <[email protected]> Signed-off-by: Suyog Gupta <[email protected]> Signed-off-by: Suguna Velury <[email protected]> Signed-off-by: Lucas Liebenwein <[email protected]> Co-authored-by: Ubuntu <[email protected]> Co-authored-by: Chenghao Zhang <[email protected]> Co-authored-by: Suguna Velury <[email protected]> Co-authored-by: Lucas Liebenwein <[email protected]>
|
merged in #25 |
Includes #17 , #18, #21 , #23 * move Phi PR for sprint Signed-off-by: Ubuntu <[email protected]> * remove Phi3 patch and unfuse_weight transformation Signed-off-by: Ubuntu <[email protected]> * update Phi3/4 patches Signed-off-by: Ubuntu <[email protected]> * minor Signed-off-by: Ubuntu <[email protected]> * minor Signed-off-by: Ubuntu <[email protected]> * Update the position id to int64 Signed-off-by: Chenghao Zhang <[email protected]> * Add support for handling aliased parameters Signed-off-by: Suyog Gupta <[email protected]> * update tests Signed-off-by: Suyog Gupta <[email protected]> * lint Signed-off-by: Suyog Gupta <[email protected]> * lint Signed-off-by: Suyog Gupta <[email protected]> * removed load state dict with assign context manager Signed-off-by: Suguna Velury <[email protected]> * formatting fix Signed-off-by: Suguna Velury <[email protected]> * Removed related unit tests Signed-off-by: Suguna Velury <[email protected]> * [AutoDeploy] correctly identifying how to load HF checkpoint weights Signed-off-by: Lucas Liebenwein <[email protected]> * [AutoDeploy] correctly load sharded weights Signed-off-by: Lucas Liebenwein <[email protected]> * skip sharding if num_users>1 Signed-off-by: Suyog Gupta <[email protected]> --------- Signed-off-by: Ubuntu <[email protected]> Signed-off-by: Chenghao Zhang <[email protected]> Signed-off-by: Suyog Gupta <[email protected]> Signed-off-by: Suguna Velury <[email protected]> Signed-off-by: Lucas Liebenwein <[email protected]> Co-authored-by: Ubuntu <[email protected]> Co-authored-by: Chenghao Zhang <[email protected]> Co-authored-by: Suguna Velury <[email protected]> Co-authored-by: Lucas Liebenwein <[email protected]> Signed-off-by: Lucas Liebenwein <[email protected]>
Moving from #3079
Unfuse_weight transformation and Phi-3 Model init patch is removed, mainly updating some utility functions.
Support Matrix
microsoft/Phi-4-reasoning
microsoft/Phi-4-reasoning-plus
microsoft/Phi-3-medium-4k-instruct
microsoft/Phi-3-medium-128k-instruct
microsoft/Phi-4-mini-instructandmicrosoft/Phi-4-mini-reasoningpending #21TODO
Description
Please explain the issue and the solution in short.
Test Coverage
GitHub Bot Help
/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...Provide a user friendly way for developers to interact with a Jenkins server.
Run
/bot [-h|--help]to print this help message.See details below for each supported subcommand.
Details
run [--disable-fail-fast --skip-test --stage-list "A10-1, xxx" --gpu-type "A30, H100_PCIe" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-[Post-Merge]-1, xxx"]Launch build/test pipelines. All previously running jobs will be killed.
--disable-fail-fast(OPTIONAL) : Disable fail fast on build/tests/infra failures.--skip-test(OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.--stage-list "A10-1, xxx"(OPTIONAL) : Only run the specified test stages. Examples: "A10-1, xxx". Note: Does NOT update GitHub check status.--gpu-type "A30, H100_PCIe"(OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.--only-multi-gpu-test(OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.--disable-multi-gpu-test(OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.--add-multi-gpu-test(OPTIONAL) : Force run the multi-GPU tests. Will also run L0 pre-merge pipeline.--post-merge(OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.--extra-stage "H100_PCIe-[Post-Merge]-1, xxx"(OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-[Post-Merge]-1, xxx".kill
killKill all running builds associated with pull request.
skip
skip --comment COMMENTSkip testing for latest commit on pull request.
--comment "Reason for skipping build/test"is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.reuse-pipeline
reuse-pipelineReuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.