Y
Hacker News
new
|
ask
|
show
|
jobs
by
minimaxir
588 days ago
That's a fair implementation of custom loss. Hugging Face's Trainer with transformers suggests a similar implementation, although their's has less boilerplate.
https://huggingface.co/docs/transformers/main/en/trainer#cus...