Instructions to use huberm/ModernBERT-medium-bnc-WordLevel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huberm/ModernBERT-medium-bnc-WordLevel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="huberm/ModernBERT-medium-bnc-WordLevel")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("huberm/ModernBERT-medium-bnc-WordLevel") model = AutoModelForMaskedLM.from_pretrained("huberm/ModernBERT-medium-bnc-WordLevel") - Notebooks
- Google Colab
- Kaggle
Model Card for Model ID
Medium-sized ModernBERT trained on the British National Corpus (BNC) using WordLevel tokenization (equivalently, tokenization determined by the BNC).
- Downloads last month
- 4