We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is possible to use the sort parameter from list_models with a duration, as in (excerpt from this example):
sort
list_models
HfApi().list_models(filter="text-generation-inference", sort="likes7d", limit=5)
Currently the doc does not mention this option with duration: https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_models The key with which to sort the resulting models. Possible values are the properties of the [huggingface_hub.hf_api.ModelInfo](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.ModelInfo) class.
The key with which to sort the resulting models. Possible values are the properties of the [huggingface_hub.hf_api.ModelInfo](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.ModelInfo) class.
It would be nice to add this mechanism to the doc with all possible values.
The text was updated successfully, but these errors were encountered:
wdym by "duration"?
Sorry, something went wrong.
You can sort by "createdAt" if that's what you are looking for :)
"createdAt"
No branches or pull requests
It is possible to use the
sort
parameter fromlist_models
with a duration, as in (excerpt from this example):HfApi().list_models(filter="text-generation-inference", sort="likes7d", limit=5)
Currently the doc does not mention this option with duration: https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_models
The key with which to sort the resulting models. Possible values are the properties of the [huggingface_hub.hf_api.ModelInfo](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.ModelInfo) class.
It would be nice to add this mechanism to the doc with all possible values.
The text was updated successfully, but these errors were encountered: