Skip to content

Commit

Permalink
fix typo: change polciies to policies (#4090)
Browse files Browse the repository at this point in the history
  • Loading branch information
digger-yu authored Aug 4, 2023
1 parent e831863 commit 4cde5da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepspeed/module_inject/auto_tp.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def update_mp_params(self, child):
setattr(child, param, param_val // self.mp_size)
setattr(child, "replaced", True)

def update_linear_polciies(self):
def update_linear_policies(self):
self.conv_linear_layer = False
if self.linear_layer_setting is not None:
self.linear_policies = {self.linear_layer_setting[0]: self._replace}
Expand Down
2 changes: 1 addition & 1 deletion deepspeed/module_inject/replace_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def replace_wo_policy(module, all_reduce_linears, prefix="", state_dict=None):
_autotp.set_tensor_parallel_config(config.tensor_parallel.tp_size, config.tensor_parallel.tp_group)

# 3. Set linear policies
_autotp.update_linear_polciies()
_autotp.update_linear_policies()

# 4. Replace modules
return _autotp._replace_module(module)
Expand Down

0 comments on commit 4cde5da

Please sign in to comment.