External Publication
Visit Post

Where do I host an optimizer?

Hugging Face Forums [Unofficial] April 7, 2026
Source

As for the Optimizer, I don’t think there’s any problem with putting it in the HF repository, but that just lets you store Python files and such, so it’s not very practical… Also, if you want to integrate your optimizer into the Hugging Face ecosystem directly, the best approach is probably to commit it to the TRL GitHub repository.

Alternatively, the following method is commonly used:


HF doesn’t really have a dedicated “optimizer” section. The Hub’s first-class repo types are Models, Datasets, and Spaces, so for an optimizer library I’d usually keep the code/package on GitHub + PyPI and use HF for the parts that fit naturally.

Concretely, I’d suggest:

  • Space for an interactive demo or benchmark explorer
  • Show and Tell for the announcement / discussion thread
  • Dataset repo only if you want to publish benchmark traces or reproducibility data
  • Collection to group the Space + dataset + any paper in one place
  • Community Blog as a later long-form writeup, not the primary home

So if it were me: GitHub/PyPI as the canonical home, HF Space as the demo, then a Show and Tell post linking everything.

Community Blog could also work if you want a longer technical article, but I’d treat that as a follow-up: HF says PRO includes Community Blogs, and the current flow goes through Blog Explorers / new-blog.

Discussion in the ATmosphere

Loading comments...