huggingface / trl

Train transformer language models with reinforcement learning.
http://hf.co/docs/trl
Apache License 2.0
8.61k stars 1.06k forks source link

`TrlParser`: Add ignore extra args option #1748

Closed younesbelkada closed 1 week ago

younesbelkada commented 1 week ago

https://github.com/huggingface/trl/pull/1739 introduced raising errors if users passed extra un-used arguments in the config file. Before that PR we were not raising errors and some users reported that it worked before on their setup (and might be convenient for some use-cases) we should re-enable that through a simple API ignore_extra_args=True when creating the TrlParser

cc @philschmid @mnoukhov @vwxyzjn

HuggingFaceDocBuilderDev commented 1 week ago

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.