Text Classification
Transformers
Safetensors
modernbert
ai-safety
safeguards
guardrails
text-embeddings-inference
Instructions to use dcarpintero/pangolin-guard-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dcarpintero/pangolin-guard-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dcarpintero/pangolin-guard-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dcarpintero/pangolin-guard-base") model = AutoModelForSequenceClassification.from_pretrained("dcarpintero/pangolin-guard-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from dcarpintero/pangolin-guard-base: direct link, hf CLI and curl.
- Browser
- Download file 3.58 MB
-
https://huggingface.co/dcarpintero/pangolin-guard-base/resolve/697a49173e7e27664272943a7189b8f32975e283/tokenizer.json
- Command line
-
hf download hf://dcarpintero/pangolin-guard-base@697a49173e7e27664272943a7189b8f32975e283/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/dcarpintero/pangolin-guard-base/resolve/697a49173e7e27664272943a7189b8f32975e283/tokenizer.json
3.58 MB
File too large to display, you can check the raw version instead.