# Bug in models filtering by dataset?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-in-models-filtering-by-dataset%2F145550%3E%5C
**Category:** Site Feedback\
**Created:** [March 13, 2025, 9:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-in-models-filtering-by-dataset%2F145550 "2025-03-13T09:55:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arubique](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arubique/32/43179_2.png) [@arubique](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Farubique)%5C
**Post date:** [March 13, 2025, 9:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-in-models-filtering-by-dataset%2F145550%2F1 "2025-03-13T09:55:14Z")

</div>

Hello everyone,

I noticed a potential bug in the huggingface web interface.

I want to filter models by those pre-trained or fine-tuned on the specified dataset, however, I notice inconsistency in this filtering.

To demonstrate this let’s use [imdb dataset](https://huggingface.co/datasets/stanfordnlp/imdb). On the dataset page I can see the first 6 results of the mentioned filtering in the “Models trained or fine-tuned on stanfordnlp/imdb” section (please see the left part of the screenshot, left and right parts are separated by the vertical dashed line).

However, when I click the link “Browse 1407 models trained on this dataset” (it has the form of: `https://huggingface.co/models?dataset=dataset:stanfordnlp/imdb`), a search with an applied filter is opened. That search results only in 81 models (please see the right part of the screenshot).

 ![Merged](https://us1.discourse-cdn.com/hellohellohello/original/3X/5/8/580f4778b617b2833a32c7d4cfc95956a86ebcc5.jpeg)

I think it is a bug because the number of found models in the right part of the screenshot - 81 - is inconsistent with the 1407 models mentioned in the link title in the left part of the screenshot.

Could you please confirm whether it is a bug and suggest solutions that would allow me to see the names of all 1407 models mentioned in the left part of the screenshot (now I can see only 6 names that are explicitly shown there)?

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 13, 2025, 2:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-in-models-filtering-by-dataset%2F145550%2F2 "2025-03-13T14:48:40Z")

</div>

I think that some of the datasets that can be referenced without an author name are divided into different names like this, whether it’s a bug in Hub or a feature.🤔

> **[Models - Hugging Face](https://huggingface.co/models?dataset=dataset:imdb)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **[Models - Hugging Face](https://huggingface.co/models?dataset=dataset:stanfordnlp%2Fimdb)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![arubique](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arubique/32/43179_2.png) [@arubique](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Farubique)%5C
**Post date:** [March 13, 2025, 2:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-in-models-filtering-by-dataset%2F145550%2F3 "2025-03-13T14:59:19Z")

</div>

Oh, I see thanks! In this case with IMDB I should use `dataset:imdb` when filtering in addition to `stanfordnlp/imdb` used by default. Then I find 1326 more models in addition to the 81 models I found before when using `stanfordnlp/imdb`. Together they add up to 1326 + 81 = 1407 models mentioned on the dataset page. Now it makes sense, thank you!

I think that it is still a bug because there is an inconsistency between the number of models I find when following the link from the dataset page - 81 and the number of models written in the title of this link - 1407.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 13, 2025, 3:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-in-models-filtering-by-dataset%2F145550%2F4 "2025-03-13T15:27:38Z")

</div>

I think it’s a good issue to raise either of these. I don’t know if it’s a bug or a feature, but at the very least, it can’t be called the desired behavior…

> **[huggingface/hub-docs](https://github.com/huggingface/hub-docs/issues)**
>
> Docs of the Hugging Face Hub. Contribute to huggingface/hub-docs development by creating an account on GitHub.

> **[huggingface/huggingface\_hub](https://github.com/huggingface/huggingface_hub/issues)**
>
> The official Python client for the Huggingface Hub. - huggingface/huggingface\_hub

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [March 14, 2025, 3:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-in-models-filtering-by-dataset%2F145550%2F5 "2025-03-14T03:27:47Z")

</div>

Closed on March 14, 2025, 3:27am UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
