-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Handle the case of DeepCompile's enabled but not activated #7603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tohtana
merged 7 commits into
deepspeedai:master
from
tohtana:tohtana/improve_dc_enabled_state
Oct 1, 2025
Merged
Handle the case of DeepCompile's enabled but not activated #7603
tohtana
merged 7 commits into
deepspeedai:master
from
tohtana:tohtana/improve_dc_enabled_state
Oct 1, 2025
Conversation
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
Signed-off-by: Masahiro Tanaka <[email protected]>
1 task
Signed-off-by: Masahiro Tanaka <[email protected]>
Signed-off-by: Masahiro Tanaka <[email protected]>
sfc-gh-truwase
approved these changes
Sep 30, 2025
Collaborator
|
@tohtana thanks for this PR. So, is the behavior now the following?
|
Collaborator
Author
|
Hi @sfc-gh-truwase, Yes it is correct. |
ryantqiu
pushed a commit
to snorkel-marlin-repos/DeepSpeed_1460d5a8
that referenced
this pull request
Oct 1, 2025
Original PR #7603 by tohtana Original: deepspeedai/DeepSpeed#7603
ryantqiu
added a commit
to snorkel-marlin-repos/DeepSpeed_1460d5a8
that referenced
this pull request
Oct 1, 2025
…ot activated Merged from original PR #7603 Original: deepspeedai/DeepSpeed#7603
delock
pushed a commit
that referenced
this pull request
Oct 3, 2025
This PR improves state management for DeepCompile in the engine. Previously, the system relied only on the config flag indicating whether DeepCompile was enabled. However, DeepCompile is actually activated only when `compile()` is called. This meant that if DeepCompile was enabled in the config but `compile()` was never called, it could lead to invalid internal states (as shown in #7598). Since `enabled == True` should be interpreted as an option that modifies the behavior of `compile()`, this PR introduces clearer state management: - If .compile() is not called, the DeepCompile config has no effect on behavior. A one-time message is shown instead. - A new state, DeepCompile activated, is introduced. This represents the condition where DeepCompile is both enabled in the config and .compile() has been called. --------- Signed-off-by: Masahiro Tanaka <[email protected]> Co-authored-by: Olatunji Ruwase <[email protected]> Signed-off-by: Guokai Ma <[email protected]>
mauryaavinash95
pushed a commit
to DataStates/DeepSpeed
that referenced
this pull request
Oct 4, 2025
…ai#7603) This PR improves state management for DeepCompile in the engine. Previously, the system relied only on the config flag indicating whether DeepCompile was enabled. However, DeepCompile is actually activated only when `compile()` is called. This meant that if DeepCompile was enabled in the config but `compile()` was never called, it could lead to invalid internal states (as shown in deepspeedai#7598). Since `enabled == True` should be interpreted as an option that modifies the behavior of `compile()`, this PR introduces clearer state management: - If .compile() is not called, the DeepCompile config has no effect on behavior. A one-time message is shown instead. - A new state, DeepCompile activated, is introduced. This represents the condition where DeepCompile is both enabled in the config and .compile() has been called. --------- Signed-off-by: Masahiro Tanaka <[email protected]> Co-authored-by: Olatunji Ruwase <[email protected]>
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.
This PR improves state management for DeepCompile in the engine.
Previously, the system relied only on the config flag indicating whether DeepCompile was enabled. However, DeepCompile is actually activated only when
compile()is called. This meant that if DeepCompile was enabled in the config butcompile()was never called, it could lead to invalid internal states (as shown in #7598).Since
enabled == Trueshould be interpreted as an option that modifies the behavior ofcompile(), this PR introduces clearer state management: