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
Download label_map.json from sgraham/ModernBERT_archae: direct link, hf CLI and curl.
- Browser
- Download file 153 Bytes
-
https://huggingface.co/sgraham/ModernBERT_archae/resolve/main/label_map.json
- Command line
-
hf download hf://sgraham/ModernBERT_archae/label_map.json
-
curl -L -o label_map.json https://huggingface.co/sgraham/ModernBERT_archae/resolve/main/label_map.json
153 Bytes
| { | |
| "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 | |
| } |