Instructions to use VINAY-UMRETHE/tiny-refusal-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VINAY-UMRETHE/tiny-refusal-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="VINAY-UMRETHE/tiny-refusal-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("VINAY-UMRETHE/tiny-refusal-classifier") model = AutoModelForSequenceClassification.from_pretrained("VINAY-UMRETHE/tiny-refusal-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("VINAY-UMRETHE/tiny-refusal-classifier")
model = AutoModelForSequenceClassification.from_pretrained("VINAY-UMRETHE/tiny-refusal-classifier", device_map="auto")Quick Links
- Downloads last month
- 27
Model tree for VINAY-UMRETHE/tiny-refusal-classifier
Base model
answerdotai/ModernBERT-base Finetuned
VINAY-UMRETHE/Refusal-Classifier
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="VINAY-UMRETHE/tiny-refusal-classifier")