Instructions to use jhu-clsp/mmBERT-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jhu-clsp/mmBERT-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="jhu-clsp/mmBERT-base")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("jhu-clsp/mmBERT-base") model = AutoModelForMaskedLM.from_pretrained("jhu-clsp/mmBERT-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
feat: Improve mmBERT-base model card with full title, abstract, and updated content
#10
by nielsr HF Staff - opened
This PR significantly improves the model card for jhu-clsp/mmBERT-base by:
Updating Metadata:
- Changing the
pipeline_tagfromfill-masktofeature-extractionto better reflect the model's primary use cases as a multilingual encoder for classification, embedding, and retrieval tasks. This ensures the model appears in the correct search results at https://huggingface.co/models?pipeline_tag=feature-extraction. - Adding
fill-maskas anadditional tagto maintain discoverability for masked language modeling, which is a supported capability as demonstrated in the usage examples.
- Changing the
Enhancing Content:
- Updating the main title to the full paper title: "mmBERT: A Modern Multilingual Encoder with Annealed Language Learning".
- Adding a direct link to the Hugging Face paper page: https://huggingface.co/papers/2509.06888, alongside the existing Arxiv link.
- Including the comprehensive paper abstract.
- Integrating and expanding sections like "Overview", "Quick Start", "Model Family", "Usage Examples", "Fine-tuning Examples", "Training Details", "Evaluation", "FAQ", and "Limitations" using the more detailed and up-to-date information from the official GitHub repository README, making the model card a more complete resource for users.
- Updating the
transformersinstallation requirement totransformers>=4.48.0for consistency with the GitHub README. - Renaming the "Base Model for Classification" example in the "Quick Start" to "Base Model for Masked Language Modeling" to accurately reflect its content.
These changes provide users with a clearer understanding of the model's capabilities, how to use it, and its underlying design.