[shardformer] fix type hint

pull/4445/head
ver217 2023-07-05 15:20:59 +08:00 committed by Hongxin Liu
parent 1ed3f8a24f
commit d35bd7d0e6
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ class ShardConfig:
The config for sharding the huggingface model
Args:
tensor_parallel_process_group (int): The process group for tensor parallelism, defaults to None, which is the global process group.
pipeline_stage_manager (PipelineStageManager): The pipeline stage manager, defaults to None, which means no pipeline.
tensor_parallel_process_group (Optional[ProcessGroup]): The process group for tensor parallelism, defaults to None, which is the global process group.
pipeline_stage_manager (Optional[PipelineStageManager]): The pipeline stage manager, defaults to None, which means no pipeline.
enable_tensor_parallelism (bool): Whether to turn on tensor parallelism, default is True.
enable_fused_normalization (bool): Whether to use fused layernorm, default is False.
enable_all_optimization (bool): Whether to turn on all optimization, default is False.