[hotfix] Correct several erroneous code comments (#4794)

This commit is contained in:
littsk
2023-09-27 10:43:03 +08:00
committed by GitHub
parent 54b3ad8924
commit 11f1e426fe
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ class ModulePolicyDescription:
new_weight = shard_rowwise(weight, process_group)
module.weight = torch.nn.Parameter(new_weight)
```
sub_module_replacement (List[SubModuleReplacementDescription]): each element in the list is a ParamReplacementDescription
sub_module_replacement (List[SubModuleReplacementDescription]): each element in the list is a SubModuleReplacementDescription
object which specifies the module to be replaced and the target module used to replacement.
method_replace (Dict[str, Callable]): key is the method name, value is the method for replacement
"""