I seem to be unable to sort the results from listModels by downloads.
If I run the following:
import * as Hub from "@huggingface/hub";
Array.fromAsync(Hub.listModels({
search: {
sort: "downloads",
direction: -1,
},
limit:5,
accessToken:my_token
}))
.then(result => console.log(result))
the results are not sorted by downloads.
I'm using huggingface/hub@2.9.0 and node v24.10 .