Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 28, 2024
1 parent fa7aef1 commit 66b221e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions colossalai/shardformer/policies/command.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import warnings
from functools import partial
from typing import Callable, Dict, List, Union

Expand Down Expand Up @@ -65,7 +64,7 @@ def module_policy(self) -> Dict[Union[str, nn.Module], ModulePolicyDescription]:
norm_cls = FusedLayerNorm
else:
norm_cls = LayerNorm

sp_mode = self.shard_config.sequence_parallelism_mode or None
sp_size = self.shard_config.sequence_parallel_size or None
sp_group = self.shard_config.sequence_parallel_process_group or None
Expand Down
1 change: 0 additions & 1 deletion colossalai/shardformer/policies/llama.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import warnings
from functools import partial
from typing import Callable, Dict, List, Union

Expand Down

0 comments on commit 66b221e

Please sign in to comment.