Image classification (every CNN, every ViT)
Softmax + cross-entropy is the default head on ImageNet, CIFAR, JFT-3B, and basically every benchmark. The final linear layer outputs logits; cross-entropy with one-hot labels is the loss.
loss = F.cross_entropy(logits, targets)