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