Skip to content

Commit a45e7eb

Browse files
committed
Review unpdates.
1 parent ede15a7 commit a45e7eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torchtitan/distributed/activation_checkpoint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
_layer_sac_count = 0
2525

2626

27-
def _apply_layer_sac(module: nn.Module, ac_config: ACConfig, debug_config: DebugConfig) -> nn.Module:
27+
def _apply_layer_sac(module: nn.Module, ac_config: ACConfig) -> nn.Module:
2828
"""Apply layer selective activation checkpointing to the module.
2929
3030
Args:
@@ -137,7 +137,7 @@ def selective_checkpointing_context_fn():
137137
)
138138

139139

140-
def _apply_full_ac(module: nn.Module, ac_config: ACConfig ) -> nn.Module:
140+
def _apply_full_ac(module: nn.Module, ac_config: ACConfig) -> nn.Module:
141141
"""Apply full activation checkpointing to the module.
142142
143143
Args:
@@ -282,7 +282,7 @@ def _apply_ac_to_transformer_block(
282282
module, ac_config, base_fqn=base_fqn, op_sac_save_list=op_sac_save_list
283283
)
284284

285-
return _apply_layer_sac(module, job_config)
285+
return _apply_layer_sac(module, ac_config)
286286

287287

288288
def apply_ac(

0 commit comments

Comments
 (0)