Skip to content

feat(tasks): count Hub downloads for NVIDIA Ising Decoding (safetensors)#2101

Merged
Wauplin merged 8 commits intohuggingface:mainfrom
kvmto:feat/ising-decoding-download-stats
Apr 24, 2026
Merged

feat(tasks): count Hub downloads for NVIDIA Ising Decoding (safetensors)#2101
Wauplin merged 8 commits intohuggingface:mainfrom
kvmto:feat/ising-decoding-download-stats

Conversation

@kvmto
Copy link
Copy Markdown
Contributor

@kvmto kvmto commented Apr 15, 2026

Summary

Registers NVIDIA Ising Decoding on the Hub so .safetensors weight downloads are counted in model download stats.

Problem

Decoder weights are shipped as standalone .safetensors checkpoints. Without a library_namecountDownloads mapping, those requests may not show up in download metrics the way library-specific “query files” do.

Change

Each current model repo ships one weight file, so this should align one download with one counted request.

Hub follow-up (required)

For stats to apply, model metadata must set:

library_name: ising-decoding

(the key must match the MODEL_LIBRARIES_UI_ELEMENTS entry exactly).

Example repos:

References

Note for reviewers

If repos under this library_name later add multiple .safetensors files, consider tightening countDownloads (explicit paths or a regexp) to avoid double counting; happy to follow up.


Note

Low Risk
Low risk: adds a single new library_name mapping used for download counting, with no changes to runtime logic beyond an additional Elasticsearch query definition.

Overview
Registers the new model library key ising-decoding in model-libraries.ts, including repo metadata and a countDownloads query to count .safetensors weight downloads for models using this library_name.

Reviewed by Cursor Bugbot for commit 896ad32. Bugbot is set up for automated code reviews on this repo. Configure here.

Register library key ising-decoding (Hub library_name) with
countDownloads on path_extension safetensors so direct checkpoint
GET/HEAD is counted. Each HF model repo ships a single weights file.

Signed-off-by: kvmto <kmato@nvidia.com>
Copy link
Copy Markdown
Contributor

@merveenoyan merveenoyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd keep it to ising and tag other parts or upcoming models like that!

Comment thread packages/tasks/src/model-libraries.ts
Comment thread packages/tasks/src/model-libraries.ts
Comment thread packages/tasks/src/model-libraries.ts
kvmto and others added 3 commits April 16, 2026 12:16
Co-authored-by: Merve Noyan <merve@huggingface.co>
Co-authored-by: Merve Noyan <merve@huggingface.co>
Co-authored-by: Merve Noyan <merve@huggingface.co>
@kvmto kvmto requested a review from merveenoyan April 16, 2026 11:21
Comment thread packages/tasks/src/model-libraries.ts Outdated
},
"ising": {
prettyLabel: "Ising",
repoName: "Ising-Decoding",```suggestion
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect the "```suggestion" wasn't an intentional addition?

Signed-off-by: kvmto <kmato@nvidia.com>
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7abbc89. Configure here.

Comment thread packages/tasks/src/model-libraries.ts Outdated
Comment thread packages/tasks/src/model-libraries.ts Outdated
Signed-off-by: kvmto <kmato@nvidia.com>
@bmhowe23
Copy link
Copy Markdown

I'd keep it to ising and tag other parts or upcoming models like that!

@kvmto I had an offline conversation with @merveenoyan. There may have been a misunderstanding about which models would be upcoming and whether or not we'd want to track them together. We don't want other non-decoding Ising models to get lumped in with our download counts, so could we please go back to including "-decoding" (or "-Decoding") in all the names?

Signed-off-by: kvmto <kmato@nvidia.com>
@Wauplin
Copy link
Copy Markdown
Contributor

Wauplin commented Apr 21, 2026

(just a reminder that https://huggingface.co/models?other=ising-decoding must be populated with at least 1 model before merging this PR)

@bmhowe23
Copy link
Copy Markdown

(just a reminder that https://huggingface.co/models?other=ising-decoding must be populated with at least 1 model before merging this PR)

We ultimately want to get download counters on https://huggingface.co/nvidia/Ising-Decoder-SurfaceCode-1-Fast and https://huggingface.co/nvidia/Ising-Decoder-SurfaceCode-1-Accurate. @kvmto can correct me if I'm wrong, but I think the thought was that we could update the client code to put the "ising-decoding" somewhere in the request, and that would tell the HF servers to count the download. Is that not the right way? Your comment about populating https://huggingface.co/models?other=ising-decoding on the server side makes me think that my understanding is actually incorrect.

@kvmto
Copy link
Copy Markdown
Contributor Author

kvmto commented Apr 22, 2026

(just a reminder that https://huggingface.co/models?other=ising-decoding must be populated with at least 1 model before merging this PR)

Hi @Wauplin just to clarify, should I add library_name: ising-decoding to the YAML frontmatter of the two ising decoding models READMEs?

---
library_name: ising-decoding
...
---

@Wauplin
Copy link
Copy Markdown
Contributor

Wauplin commented Apr 22, 2026

(just a reminder that https://huggingface.co/models?other=ising-decoding must be populated with at least 1 model before merging this PR)

Hi @Wauplin just to clarify, should I add library_name: ising-decoding to the YAML frontmatter of the two ising decoding models READMEs?

---
library_name: ising-decoding
...
---

Yes exactly, that's the way to go!

@kvmto
Copy link
Copy Markdown
Contributor Author

kvmto commented Apr 24, 2026

(just a reminder that https://huggingface.co/models?other=ising-decoding must be populated with at least 1 model before merging this PR)

Hi @Wauplin just to clarify, should I add library_name: ising-decoding to the YAML frontmatter of the two ising decoding models READMEs?

---
library_name: ising-decoding
...
---

Yes exactly, that's the way to go!

done!
Please, check!

https://huggingface.co/nvidia/Ising-Decoder-SurfaceCode-1-Fast/blob/main/README.md

https://huggingface.co/nvidia/Ising-Decoder-SurfaceCode-1-Accurate/blob/main/README.md

Signed-off-by: kvmto <kmato@nvidia.com>
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, thank you! Expect 2-3 working days before getting it live on the Hub 🤗

@Wauplin Wauplin merged commit 2f835a9 into huggingface:main Apr 24, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants