transformers
4adc415b - Setup loss_type in config at model init time (#34616)

Commit
357 days ago
Setup loss_type in config at model init time (#34616) * setup loss_type in config at model init time ensures no additional graph break introduced when torch.compile'ed fixes #34615 Signed-off-by: ChanderG <mail@chandergovind.org> * lookup loss mapping at init time instead of manual setup Signed-off-by: ChanderG <mail@chandergovind.org> * remove redundant lookup at loss_function time * overwride losstype at init time --------- Signed-off-by: ChanderG <mail@chandergovind.org> Co-authored-by: Arthur Zucker <arthur.zucker@gmail.com>
Author
Parents
Loading