huggingface / optimum-intel

🤗 Optimum Intel: Accelerate inference with Intel optimization tools
https://huggingface.co/docs/optimum/main/en/intel/index
Apache License 2.0
388 stars 110 forks source link

skip saving gen config if saving failed #717

Closed eaidova closed 4 months ago

eaidova commented 4 months ago

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.

eaidova commented 4 months ago

@echarlaix could you please take a look?

HuggingFaceDocBuilderDev commented 4 months 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.