huggingface_hub
b5d2d690 - Add validator for repo id + decorator to validate arguments in `huggingface_hub` (#1029)

Commit
3 years ago
Add validator for repo id + decorator to validate arguments in `huggingface_hub` (#1029) * implement repo_id validator * Add documentation * Add validate_hf_hub_args decorator everywhere * prefixing 'datasets' should not be supported * try to fix doc * update example * Fix loading of config file from model_id in from_pretrained * Apply suggestions from code review Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> * docstring from code review * Update docs/source/package_reference/utilities.mdx Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> * FIX doc builder * Update src/huggingface_hub/utils/_validators.py * Update src/huggingface_hub/utils/_validators.py Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr> Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr>
Author
Parents
Loading