-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding InferenceClient.get_recommended_model
#1770
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick PR @jamesbraza! I've added some minor comments but overall looks good :)
Co-authored-by: Lucain <[email protected]>
…tring to have been populated
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1770 +/- ##
==========================================
- Coverage 82.60% 82.17% -0.44%
==========================================
Files 62 62
Lines 7302 7310 +8
==========================================
- Hits 6032 6007 -25
- Misses 1270 1303 +33
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks for making the changes @jamesbraza !
* removed tags from endpoint tests * removed tags from endpoints * removed tags from hf_api * removed tags from docstrings in endpoint_helpers * removed tags from hf_api * removed model search argument from test_hf_api * removed ModelSearchArguments and DataSearchArguments * removed DatasetSearchArguments and ModelSearchArguments * removed DatasetSearchArguments and * removed ModelSearchArguments and DatasetSearchArguments from the docs * Revert "removed DatasetSearchArguments and" This reverts commit ce6b91b. * removed tags from __init__.py * ran make style * Removed ## How to explore filter options ? section * Revert "removed tags from __init__.py" This reverts commit ad1a31c. Reverting removal get_dataset_tags and get_model_tags for comment 2 * Revert "removed DatasetSearchArguments and ModelSearchArguments" This reverts commit fbf6dd0. * Revert "removed tags from __init__.py" This reverts commit ad1a31c. * Revert "removed tags from hf_api" This reverts commit 2cefee1. * Revert "removed tags from hf_api" This reverts commit dd3b8f1. * Removed attribute dictionary from imports and removed model search argument class * Complete removed class AttributeDictionary(dict): * Removed attribute dictionary tests * Updating ModelTags and DatasetTags so that they just return the raw dictionary * Removed final DatasetTags import * Removed 'ModelTags' import * Ran make style * fix: remove useless token (#1765) * Retry on ConnectionError/ReadTimeout when streaming file from server (#1766) * Retry on ConnectionError/ReadTimeout when streaming file from server * add test * fix testing utils * Adding `InferenceClient.get_recommended_model` (#1770) * Moved logger info to InferenceClient, so get_recommended_model function can bypass that * Added get_recommended_model to InferenceClient * Ran make style to generate the async client * Added tests of get_recommended_model * Update src/huggingface_hub/inference/_client.py Co-authored-by: Lucain <[email protected]> * Fixed ordering of logger info and _get_recommended_model, for model string to have been populated * Removed _get_recommended_model private function, in favor of get_recommended_model in InferenceClient * Fixed wording of ValueError to use 'model' not 'task' * Ran make style for AsyncInferenceClient --------- Co-authored-by: Lucain <[email protected]> * Fix document link for manage-cache (#1774) * Fix document link for manage-cache * Use redirects in _redirects.yml * Update docs/source/en/package_reference/file_download.md --------- Co-authored-by: Lucain <[email protected]> * Minor doc fixes (#1775) * Don't use `api` in `list_repo_refs` example. * Minor typo fssepc -> fsspec * Use `.item_object_id` instead of `._id` * Ran make style --------- Co-authored-by: Remy <[email protected]> Co-authored-by: Lucain <[email protected]> Co-authored-by: James Braza <[email protected]> Co-authored-by: liuxueyang <[email protected]> Co-authored-by: Pedro Cuenca <[email protected]>
Closes #1767