Lysandre Debut
|
73f0a5d1f6
|
Fixes Loss for TransfoXL when using Trainer API v2 (#16140)
* fix(transfo_xl): Fixes TransfoXL support when using Trainer.
* fix(tests): Uses losses_1 and losses_2 pattern with TransfoXL test.
* fix(transfo_xl): Adds requested changes to allow for backward compatibility.
fix(transfo_xl): Adds requested changes to allow for backward compatibility.
fix(transfo_xl): Fixes code styling.
* Backward compatibility
* Update src/transformers/models/transfo_xl/modeling_transfo_xl.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: Gustavo de Rosa <gth.rosa@uol.com.br>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
|
2022-03-17 05:49:24 -04:00 |
|