crissallan:

Can I use the torch.nn. MultiMarginLoss instead of using the cross-entropy loss for a classification task?


Yes.



 crissallan:

Should I apply softmax function to the logits before I send the logits into the “MultiMarginLoss” to make the logits as normalized probobility?


I think typically not. Speaking of which: I would not call them “logits” for this reason but “score” or so because the former always has a “unnormalized log probabilities” ring to me, which is not the case here.
Best regards
Thomas