Instructions to use CollectionStudio/ModernBERT-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CollectionStudio/ModernBERT-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="CollectionStudio/ModernBERT-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("CollectionStudio/ModernBERT-base") model = AutoModelForMaskedLM.from_pretrained("CollectionStudio/ModernBERT-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download onnx/model.onnx from CollectionStudio/ModernBERT-base: direct link, hf CLI and curl.
- Browser
- Download file 599 MB
-
https://huggingface.co/CollectionStudio/ModernBERT-base/resolve/main/onnx/model.onnx
- Command line
-
hf download hf://CollectionStudio/ModernBERT-base/onnx/model.onnx
-
curl -L -o model.onnx https://huggingface.co/CollectionStudio/ModernBERT-base/resolve/main/onnx/model.onnx
599 MB
- Xet hash:
- c02141a6aecbc183c5086af84d9dc727bcd5e79780419b3d89fb5ba813505e28
- Size of remote file:
- 599 MB
- SHA256:
- 0f6e8bf251fbf4109d3ba351cefd30b5ea7477f47cd18c1196528dd19fa2b674
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.