huggingface_hub
huggingface_hub copied to clipboard
Fix Error messages
This PR fixes the validator for top_p, which should be allows to be set to 1.0.
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.
1.0 is not a valid value. top_p
must be > 0.0 and < 1.0.
1.0 is not a valid value.
top_p
must be > 0.0 and < 1.0.
doesn't transformers support 1.0?
Since https://github.com/huggingface/huggingface_hub/pull/2094 there is no client-side validation (no pydantic) to avoid this kind of situation where we can't know before-hand which values the server is able to handle. I'm therefore closing this PR without merging.