serialization
Use this sub-skill when the task is about persisting an already fitted BERTopic model, reloading it locally, or publishing/loading it through the Hugging Face Hub.
Route here for
BERTopic.save(...)andBERTopic.load(...)workflows.- Choosing among
serialization="safetensors",serialization="pytorch", andserialization="pickle". - Deciding whether to include
save_ctfidf=Truefor topic-term inspection after reload. - Deciding how to use
save_embedding_model: a lightweight model pointer, omitting the backend, or reinjecting a backend at load time. - Local save/load from a pickle file or from a lightweight model directory.
- Hub upload with
BERTopic.push_to_hf_hub(...)and Hub loading withBERTopic.load("namespace/repo"). - Serialization-side failures from
BERTopic.merge_models(...), such as missingtorchorsafetensors; route the model-combination decision itself to topic-modeling.
Route elsewhere
- Training, fitting, transforming, partial fitting, topic reduction, topic merging, or outlier workflows: use the topic-modeling sub-skill.
- Embedding backend selection, custom backend implementation, API-client setup, or precomputed embedding construction: use the embeddings-backends sub-skill.
- c-TF-IDF or vectorizer tuning before saving: use the vectorizers-ctfidf sub-skill.
- Representation models, custom labels, or multi-aspect labels: use the representations-labeling sub-skill.
- Plotting, visualization, hierarchy dashboards, or figure export: use the analysis-visualization sub-skill.