# Identifying Original Models and Getting Parameter Counts

**URL:** <https://discuss.huggingface.co/t/identifying-original-models-and-getting-parameter-counts/107346>\
**Category:** 🤗Hub\
**Created:** [September 19, 2024, 12:03pm UTC](https://discuss.huggingface.co/t/identifying-original-models-and-getting-parameter-counts/107346 "2024-09-19T12:03:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![swtb](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@swtb](https://discuss.huggingface.co/u/swtb)\
**Post date:** [September 19, 2024, 12:03pm UTC](https://discuss.huggingface.co/t/identifying-original-models-and-getting-parameter-counts/107346/1 "2024-09-19T12:03:53Z")

</div>

Using the HF API for listing models are the following possible?

1. Identify if a model is an original model (Not a reupload of an existing model)
2. Get a parameter count for each model.

I am hoping to run some analysis based on this information.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [September 19, 2024, 12:14pm UTC](https://discuss.huggingface.co/t/identifying-original-models-and-getting-parameter-counts/107346/2 "2024-09-19T12:14:48Z")

</div>

> Identify if a model is an original model (Not a reupload of an existing model)

For example, the hash of each file can be listed as standard, but it is difficult to determine whether it is original or not. In many cases, the original is not in the HF in the first place, or has disappeared. (Even the SD 1.5 official has disappeared) At best, it can be estimated from the upload date and time and the number of downloads.

> Get a parameter count for each model.

There is often an indication of whether the file is quantised or not, so if it is not quantised, it can be estimated from the file size.  
However, in many cases, the repo-name is indicated as 8B or 70B in the first place.

If you have a request for a feature of the hub, you can rely on the following people

> **[Wauplin (Lucain Pouget)](https://huggingface.co/Wauplin)**
>
> User profile of Lucain Pouget on Hugging Face

> **[@victor on Hugging Face: "🙋 Calling all Hugging Face users! We want to hear...](https://huggingface.co/posts/victor/964839563451127)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![swtb](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@swtb](https://discuss.huggingface.co/u/swtb)\
**Post date:** [September 19, 2024, 12:20pm UTC](https://discuss.huggingface.co/t/identifying-original-models-and-getting-parameter-counts/107346/3 "2024-09-19T12:20:15Z")

</div>

I see, my fall back plan was to just threshold results based on number of likes and downloads and assume that if they are popular enough then they are atleast genuine. (ill take less noise in place of perfection)

As for model size, I notice that the model card usually has a parameter count so thought it may be readily available somewhere in the API.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [September 19, 2024, 12:22pm UTC](https://discuss.huggingface.co/t/identifying-original-models-and-getting-parameter-counts/107346/4 "2024-09-19T12:22:43Z")

</div>

> the model card usually has a parameter count

All the information on the card is available via the API; it was just a matter of setting CardData=True.  
However, only a few cards are written accurately. If you are looking for an official, I think that would still work fine.

---

<div class="post-metadata">

**Author:** ![swtb](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@swtb](https://discuss.huggingface.co/u/swtb)\
**Post date:** [September 19, 2024, 12:33pm UTC](https://discuss.huggingface.co/t/identifying-original-models-and-getting-parameter-counts/107346/5 "2024-09-19T12:33:01Z")

</div>

ahh I see. As for estimating via file size, is it possible to do this without needed to pull the files? - where can I find information on quantisation?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [September 19, 2024, 12:40pm UTC](https://discuss.huggingface.co/t/identifying-original-models-and-getting-parameter-counts/107346/6 "2024-09-19T12:40:20Z")

</div>

> is it possible to do this without needed to pull the files?

Possible. As well as the file hash, a filename can also be obtained.  
Files larger than 10 GB are split up, which is a bit tricky, but the filenames and their rules are predefined, so it is manageable.

> **[HfApi Client](https://huggingface.co/docs/huggingface_hub/package_reference/hf_api#huggingface_hub.HfApi.list_repo_files)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> where can I find information on quantisation?

The right-hand side of this screen is clearly lined with data interpreted by the server. Perhaps this information is also available in the API. But come to think of it, I have never checked if I can actually get this…

> **[mradermacher/Hermes-ClimateStorm-Sauerkraut-abliterated-i1-GGUF · Hugging Face](https://huggingface.co/mradermacher/Hermes-ClimateStorm-Sauerkraut-abliterated-i1-GGUF)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
