Problem
The scheduled Build Top HuggingFace Models workflow is failing because contrib/scripts/select-top-models.py passes direction=-1 to HfApi.list_models(), but the currently installed huggingface_hub no longer accepts that keyword.
Latest observed failed run:
TypeError: HfApi.list_models() got an unexpected keyword argument 'direction'
The workflow installs dependencies from:
contrib/scripts/requirements.txt: huggingface_hub>=0.20.0
On current main (1d480ded52ab1bda1aea3d03a452ed901325344d), installing that requirement and inspecting HfApi.list_models shows direction is not in the signature.
python3 -m venv /tmp/modctl-hf-venv
/tmp/modctl-hf-venv/bin/pip install -q -r contrib/scripts/requirements.txt
/tmp/modctl-hf-venv/bin/python - <<'PY'
from huggingface_hub import HfApi
import inspect
sig = inspect.signature(HfApi.list_models)
print('direction' in sig.parameters)
PY
Output:
Expected behavior
The scheduled workflow should select models successfully with the currently supported Hugging Face Hub API, or the dependency should be pinned to a version compatible with the script.
Problem
The scheduled
Build Top HuggingFace Modelsworkflow is failing becausecontrib/scripts/select-top-models.pypassesdirection=-1toHfApi.list_models(), but the currently installedhuggingface_hubno longer accepts that keyword.Latest observed failed run:
Build Top HuggingFace ModelsThe workflow installs dependencies from:
On current
main(1d480ded52ab1bda1aea3d03a452ed901325344d), installing that requirement and inspectingHfApi.list_modelsshowsdirectionis not in the signature.Output:
Expected behavior
The scheduled workflow should select models successfully with the currently supported Hugging Face Hub API, or the dependency should be pinned to a version compatible with the script.