Instructions to use nomic-ai/nomic-bert-2048 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nomic-ai/nomic-bert-2048 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="nomic-ai/nomic-bert-2048", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("nomic-ai/nomic-bert-2048", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("nomic-ai/nomic-bert-2048", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Add transformers v5 compatibility while preserving v4 support
#23 opened about 2 months ago
by
tomaarsen
fix: Missing get_input_embeddings / set_input_embeddings on NomicBertModel
#22 opened 3 months ago
by
Pringled
Tensor size mismatch in apply_rotary_emb
#21 opened 11 months ago
by
rmeguro64