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_fp16.onnx from CollectionStudio/ModernBERT-base: direct link, hf CLI and curl.
- Browser
- Download file 300 MB
-
https://huggingface.co/CollectionStudio/ModernBERT-base/resolve/main/onnx/model_fp16.onnx
- Command line
-
hf download hf://CollectionStudio/ModernBERT-base/onnx/model_fp16.onnx
-
curl -L -o model_fp16.onnx https://huggingface.co/CollectionStudio/ModernBERT-base/resolve/main/onnx/model_fp16.onnx
300 MB
- Xet hash:
- b2ab6c030271f6040fe74167a02d2022b81a8e46f08e687de6f91d437ecb5017
- Size of remote file:
- 300 MB
- SHA256:
- d9e191270aaf3a13d1108d3443c3d22f3c9353e4f4fa4211db5c7802b788de32
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.