Text Classification
Transformers
Safetensors
English
roberta
security
safety
adversarial
RoBERTa
text-embeddings-inference
Instructions to use Nid4l/X-Guard-Bench with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nid4l/X-Guard-Bench with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Nid4l/X-Guard-Bench")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Nid4l/X-Guard-Bench") model = AutoModelForSequenceClassification.from_pretrained("Nid4l/X-Guard-Bench") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!