Instructions to use princeton-nlp/bert_small_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use princeton-nlp/bert_small_1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="princeton-nlp/bert_small_1")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("princeton-nlp/bert_small_1") model = AutoModelForMaskedLM.from_pretrained("princeton-nlp/bert_small_1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
d3c702f | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:13760ecdcff7a02c0e82b7d2d310a11c3a3f0c3af35391d262db6e71a1740f32
size 115213060
|