Feature Extraction
Transformers
PyTorch
Safetensors
German
modernbert
fill-mask
masked-lm
long-context
text-embeddings-inference
Instructions to use LSX-UniWue/ModernGBERT_134M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LSX-UniWue/ModernGBERT_134M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="LSX-UniWue/ModernGBERT_134M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("LSX-UniWue/ModernGBERT_134M") model = AutoModelForMaskedLM.from_pretrained("LSX-UniWue/ModernGBERT_134M", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Improve model card with feature-extraction pipeline tag
#2
by nielsr HF Staff - opened
This PR updates the model card to reflect that ModernGBERT is a feature extraction model, and thus adds the feature-extraction pipeline tag. This improves discoverability on the Hugging Face Hub. The fill-mask tag remains since the model can also be used for masked language modeling.
JanPf changed pull request status to merged