Instructions to use sgraham/ModernBERT_archae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sgraham/ModernBERT_archae with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="sgraham/ModernBERT_archae")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("sgraham/ModernBERT_archae") model = AutoModelForTokenClassification.from_pretrained("sgraham/ModernBERT_archae", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 153 Bytes
cee6770 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | {
"O": 0,
"B-ORG": 1,
"I-ORG": 2,
"B-LOC": 3,
"I-LOC": 4,
"B-PER": 5,
"I-PER": 6,
"B-SUBJ": 7,
"I-SUBJ": 8,
"B-ID": 9,
"I-ID": 10
} |