mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-19 18:00:43 +00:00
parent
de3f67d128
commit
868afdb311
@ -803,8 +803,6 @@ def get_lm_forward_with_dist_cross_entropy(shard_config: ShardConfig):
|
|||||||
shift_logits,
|
shift_logits,
|
||||||
shift_labels,
|
shift_labels,
|
||||||
process_group=shard_config.tensor_parallel_process_group,
|
process_group=shard_config.tensor_parallel_process_group,
|
||||||
vocab_size=self.lm_head.out_features,
|
|
||||||
dtype=self.model.dtype,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not return_dict:
|
if not return_dict:
|
||||||
|
Loading…
Reference in New Issue
Block a user