Instructions to use tommyp111/modernbert-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tommyp111/modernbert-diffusion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="tommyp111/modernbert-diffusion")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("tommyp111/modernbert-diffusion") model = AutoModelForMaskedLM.from_pretrained("tommyp111/modernbert-diffusion") - Notebooks
- Google Colab
- Kaggle
Ctrl+K