mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-21 18:53:22 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f8caea7762
commit
840b9f3266
@ -211,7 +211,6 @@ class GPT2PipelineForwards:
|
||||
encoder_attention_mask,
|
||||
)
|
||||
|
||||
|
||||
if self.gradient_checkpointing and self.training:
|
||||
if use_cache:
|
||||
logger.warning_once(
|
||||
|
@ -40,7 +40,6 @@ class GPT2Policy(Policy):
|
||||
|
||||
policy = {}
|
||||
|
||||
|
||||
embedding_cls = None
|
||||
if self.shard_config.enable_tensor_parallelism:
|
||||
embedding_cls = col_nn.VocabParallelEmbedding1D
|
||||
@ -48,8 +47,6 @@ class GPT2Policy(Policy):
|
||||
if self.tie_weight:
|
||||
embedding_cls = col_nn.PaddingEmbedding
|
||||
|
||||
|
||||
|
||||
print("embedding_cls", embedding_cls)
|
||||
|
||||
if self.shard_config.enable_fused_normalization:
|
||||
|
Loading…
Reference in New Issue
Block a user