Spaces:
Runtime error
Runtime error
Download update-model-cache.sh from featherless-ai/try-this-model: direct link, hf CLI and curl.
- Browser
- Download file 231 Bytes
-
https://huggingface.co/spaces/featherless-ai/try-this-model/resolve/ac7e364ebbcdc73992a8408fc548f4f0913b1ece/update-model-cache.sh
- Command line
-
hf download hf://spaces/featherless-ai/try-this-model@ac7e364ebbcdc73992a8408fc548f4f0913b1ece/update-model-cache.sh
-
curl -L -o update-model-cache.sh https://huggingface.co/spaces/featherless-ai/try-this-model/resolve/ac7e364ebbcdc73992a8408fc548f4f0913b1ece/update-model-cache.sh
231 Bytes
| my_jq_query=$(cat << JQ | |
| [.data[] | select(.model_class)] | |
| | [group_by(.model_class)[] | { key: .[0].model_class, value: ([.[].id] | sort) }] | from_entries | |
| JQ | |
| ) | |
| capi /v1/models | jq "$my_jq_query" > model-cache.json | |