Skip to content

Commit 2632916

Browse files
committed
remove useless code
1 parent 9efc79e commit 2632916

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

colossalai/shardformer/modeling/mistral.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ def mistral_for_causal_lm_forward(
270270
shift_labels = labels[..., 1:].contiguous()
271271
# Flatten the tokens
272272
loss_fct = CrossEntropyLoss()
273-
#shift_logits = shift_logits.view(-1, self.config.vocab_size)
274273
shift_labels = shift_labels.view(-1)
275274
# Enable model parallelism
276275
shift_labels = shift_labels.to(shift_logits.device)

colossalai/shardformer/policies/mistral.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ def module_policy(self):
277277
suffix="lm_head",
278278
target_module=VocabParallelLMHead1D,
279279
kwargs={
280-
#gather_output=True,
281280
"gather_output": not self.shard_config.parallel_output,
282281
"make_vocab_size_divisible_by": self.shard_config.make_vocab_size_divisible_by,
283282
},

0 commit comments

Comments
 (0)