some models have generation configs that produces warnings during validation (example of model https://huggingface.co/lmsys/vicuna-7b-v1.5), save_pretrained method of such configs throws error. This PR skips saving generation config if it is treated as invalid.
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.
What does this PR do?
some models have generation configs that produces warnings during validation (example of model https://huggingface.co/lmsys/vicuna-7b-v1.5), save_pretrained method of such configs throws error. This PR skips saving generation config if it is treated as invalid.