Skip to content

Commit ea4b7d7

Browse files
committed
[CP] Fix incorrect indentation
Introduced by #1776. Verified with the comment: ``` CONFIG_FILE="./torchtitan/models/llama3/train_configs/debug_model.toml" ./run_train.sh --training.steps=10 --parallelism.context_parallel_degree=8 ```
1 parent 58c5455 commit ea4b7d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchtitan/distributed/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def context(cp_context: Generator[None, None, None] | None = None):
207207
torch._dynamo.utils.maybe_enable_compiled_autograd(True)
208208
)
209209

210+
if cp_context:
210211
stack.enter_context(cp_context)
211212

212213
yield

0 commit comments

Comments
 (0)