Ordinal Regression/Classification Loss

How can we build the Loss for Orginal labels.
Please point me to any link with implementation…
I tried this one but it is not converging
https://www.kaggle.com/yosefardhito/pb0-87-pytorch-ordinal-regression-w-spacecutter