How to use a custom loss with hugging face
Recently I helped a colleague at work to fix an issue to setup a custom loss when using hugging face. We couldn’t find much information about it, so we had to figure it out ourselves. Here I want to share it so others can find it next time.