BERTopic, the Python library that has quietly become a go-to for topic modeling, just got a lot more practical for production work. The library now supports pushing and pulling trained topic models directly to and from the Hugging Face Hub, which means the days of manually serializing models and shuffling files around are over for anyone who adopts the new workflow.

The integration is refreshingly simple. Training a model and pushing it to the Hub takes a handful of lines: instantiate BERTopic, fit it to your documents, and call push_to_hf_hub with a repository name. Loading a model someone else shared is even shorter — two lines and you’re ready to predict on new data. Once a model lands on the Hub, it automatically gets a model card with an overview of the discovered topics, and the Hub’s inference widget lets you test a model before committing to it.

The storage improvements deserve attention on their own. A BERTopic model trained on 100,000 documents now compresses to roughly 50MB while retaining full functionality. Strip it down for inference-only use and it shrinks to about 3MB. That’s the difference between a model you can feasibly deploy in a container and one you leave sitting on a research laptop. The library has also added safetensors support for secure serialization, a move that aligns BERTopic with the broader Hugging Face ecosystem’s push toward safer model formats.

What makes this significant beyond convenience is how it changes collaboration patterns. Topic models have historically been difficult to share because they bundle together embeddings, cluster assignments, and topic representations. Putting them on the Hub turns them into versioned, discoverable artifacts. A researcher can publish a model alongside a paper. A team can iterate on a customer-review topic model without emailing pickle files. As BERTopic continues expanding into multimodal and guided topic modeling, having a distribution channel for finished models makes the library considerably more useful outside notebooks.