API REFERENCE
Useful links for Colossal-AI
Vocab parallel cross entropy loss for 1D parallelism.
reduction (bool, optional) – whether to average the loss, defaults to True.
Calculate loss between logits and targets.
logits (torch.tensor) – Predicted unnormalized scores (often referred to as logits).
torch.tensor
targets (torch.tensor) – Ground truth class indices or class probabilities.