[Test] Add unit tests for Triton load watch - #36106
Open
chg073 wants to merge 1 commit into
Open
Conversation
This file contains CPU-only unit tests for Triton load diagnostics, including installation checks, compilation listener chaining, and memory warning conditions.
Author
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.
Motivation
Part of #20865.
triton_load_watch.pymonitors Triton compilations and kernel device-loads that occur after serving starts, but it does not have focused unit-test coverage. These paths are important because late compilation can stall serving and late device-loading can fail when GPU memory headroom is low.Modifications
Add CPU-only tests covering:
triton.knobsand unavailable hook APIsmark_serving_started()The test mirrors the source path under
test/registered/unit/utils/, usesCustomTestCase, and is registered withregister_cpu_ci(est_time=2, suite="base-a-test-cpu").Accuracy Tests
Not applicable. This PR only adds unit tests and does not change model outputs or production behavior.
Speed Tests and Profiling
Not applicable. This PR does not affect inference performance. The targeted unit test completed in 0.08 seconds locally.
Local Validation
Command:
Output:
Additional validation:
Checklist
CI States
Latest PR Test (Base): ❌ Run #32661869803
Latest PR Test (Extra): ❌ Run #32661869683
Latest PR Test (AMD ROCm 7.2): ❌ Run #32661870034