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