Skip to content

Add hermes as a library and enable download tracking #1626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 16, 2025

Conversation

dk-liang
Copy link
Contributor

This PR adds hermes as a dedicated library: https://huggingface.co/LMD0311/HERMES

Copy link
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.

Thanks for your PR! I left a few comments before merging. Also it's best to merge https://huggingface.co/LMD0311/HERMES/discussions/1 before merging this PR to make sure downloads are correctly counted.

@@ -1175,6 +1175,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
countDownloads: `path:"model_vae_fp16.pt"`,
snippets: snippets.threedtopia_xl,
},
hermes: {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add "hermes" entry in alphabetical order in the mapping? Thanks!

repoName: "HERMES",
repoUrl: "https://github.com/LMD0311/HERMES",
filter: false,
countDownloads: `path:"ckpt/hermes_final.pth" OR path_extension:"pth" OR path_prefix:"ckpt/" OR path_prefix:"data/"`,
Copy link
Contributor

Choose a reason for hiding this comment

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

we do not want to double count downloads. Therefore we usually count downloads only on a single file that you know for sure is required to instantiate the model. Could it be

Suggested change
countDownloads: `path:"ckpt/hermes_final.pth" OR path_extension:"pth" OR path_prefix:"ckpt/" OR path_prefix:"data/"`,
countDownloads: `path:"ckpt/hermes_final.pth"`,

only for instance?

Copy link
Contributor

@LMD0311 LMD0311 Jul 15, 2025

Choose a reason for hiding this comment

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

countDownloads: `path:"ckpt/hermes_final.pth"` is acceptable.

Alternatively, would countDownloads: `path_prefix:"ckpt/" OR path_prefix:"data/"be suitable, as some users may only require the training dataset?

Copy link
Contributor

Choose a reason for hiding this comment

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

If https://huggingface.co/LMD0311/HERMES/tree/main/data is where the training dataset is, I would highly recommend to upload it as a separate dataset repo. This way you can have proper download count for both the model part and the dataset part separately + you're able to document them separately as well (+ have separate community tabs). This is the usual way to handle a release on the Hub and it comes with many handy features - especially for user discoverability.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for help, let's use countDownloads: `path:"ckpt/hermes_final.pth"` for convenience. 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

Fine for me! This PR is now ready to be merged as soon as #1626 (comment) is addressed :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for missing that, I've reorganized the content alphabetically.

Copy link
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! I'll merge this one now. Expect 3-4 days max before getting it into production :)

@Wauplin Wauplin merged commit d9f3397 into huggingface:main Jul 16, 2025
3 of 4 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.

3 participants