mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-12 13:21:47 +00:00
remove comment code
This commit is contained in:
parent
ca56b93d83
commit
a8408b4d31
@ -989,8 +989,6 @@ def get_lm_forward_with_dist_cross_entropy(shard_config: ShardConfig):
|
|||||||
process_group=shard_config.tensor_parallel_process_group,
|
process_group=shard_config.tensor_parallel_process_group,
|
||||||
vocab_size=self.lm_head.out_features,
|
vocab_size=self.lm_head.out_features,
|
||||||
)
|
)
|
||||||
# loss_fct = CrossEntropyLoss()
|
|
||||||
# loss = loss_fct(shift_logits.view(-1, self.config.vocab_size), shift_labels.view(-1))
|
|
||||||
|
|
||||||
if not return_dict:
|
if not return_dict:
|
||||||
output = (logits,) + outputs[1:]
|
output = (logits,) + outputs[1:]
|
||||||
|
Loading…
Reference in New Issue
Block a user