Token Classification
Transformers
Safetensors
leg-1.0-guardrail
feature-extraction
custom-code
safety
deberta-v2
sequence-classification
custom_code
Instructions to use clulab/LEG-1.0-aegis2.0-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use clulab/LEG-1.0-aegis2.0-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="clulab/LEG-1.0-aegis2.0-large", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("clulab/LEG-1.0-aegis2.0-large", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K