Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
refusal-detection
over-refusal
llm-safety
red-teaming
garak
guardrails
ai-security
tamarillo
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run Tamarillo/refusal-guard-small on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Tamarillo/refusal-guard-small. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Tamarillo/refusal-guard-small on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Tamarillo/refusal-guard-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/refusal-guard-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Tamarillo/refusal-guard-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/refusal-guard-small") model = AutoModelForSequenceClassification.from_pretrained("Tamarillo/refusal-guard-small", device_map="auto") - Transformers.js
How to use Tamarillo/refusal-guard-small with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Tamarillo/refusal-guard-small'); - Notebooks
- Google Colab
- Kaggle
Release Tamarillo/refusal-guard-small (140.6M multilingual Apache-2.0 garak drop-in, 100%-parity FP32/FP16/Gather-INT8 ONNX, Stage-2 PASS)
97ceea8 verified Download training_summary.json from Tamarillo/refusal-guard-small: direct link, hf CLI and curl.
- Browser
- Download file 3.08 kB
-
https://huggingface.co/Tamarillo/refusal-guard-small/resolve/main/training_summary.json
- Command line
-
hf download hf://Tamarillo/refusal-guard-small/training_summary.json
-
curl -L -o training_summary.json https://huggingface.co/Tamarillo/refusal-guard-small/resolve/main/training_summary.json
3.08 kB
| { | |
| "base_model": "jhu-clsp/mmBERT-small", | |
| "distilled_from": "/mnt/disks/gcs/runs/tamarillo-lab-v3/outputs/63cd12f08469/model", | |
| "max_length": 2560, | |
| "epochs": 2.0, | |
| "lr": 4.5e-05, | |
| "train_examples": 67303, | |
| "val_examples": 2456, | |
| "train_runtime_sec": 4955.9, | |
| "best_val_metrics": { | |
| "val_macro_f1": 0.95587, | |
| "val_roc_auc": 0.98849, | |
| "val_disclaimer_fpr": 0.0, | |
| "selection_score": 0.97343, | |
| "step": 2100, | |
| "weights": "ema" | |
| }, | |
| "val_history": [ | |
| { | |
| "val_macro_f1": 0.93305, | |
| "val_roc_auc": 0.97247, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.95663, | |
| "step": 350, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.93541, | |
| "val_roc_auc": 0.97632, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.9587, | |
| "step": 350, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.93965, | |
| "val_roc_auc": 0.98052, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.96188, | |
| "step": 700, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.94049, | |
| "val_roc_auc": 0.98272, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.96278, | |
| "step": 700, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.94791, | |
| "val_roc_auc": 0.98536, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.96738, | |
| "step": 1050, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.94844, | |
| "val_roc_auc": 0.986, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.9678, | |
| "step": 1050, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.95143, | |
| "val_roc_auc": 0.98666, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.96958, | |
| "step": 1400, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.953, | |
| "val_roc_auc": 0.98687, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.97049, | |
| "step": 1400, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.95508, | |
| "val_roc_auc": 0.98821, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.9719, | |
| "step": 1750, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.9567, | |
| "val_roc_auc": 0.98815, | |
| "val_disclaimer_fpr": 0.00415, | |
| "selection_score": 0.97278, | |
| "step": 1750, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.95503, | |
| "val_roc_auc": 0.98858, | |
| "val_disclaimer_fpr": 0.0, | |
| "selection_score": 0.97298, | |
| "step": 2100, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.95587, | |
| "val_roc_auc": 0.98849, | |
| "val_disclaimer_fpr": 0.0, | |
| "selection_score": 0.97343, | |
| "step": 2100, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.95544, | |
| "val_roc_auc": 0.98869, | |
| "val_disclaimer_fpr": 0.0, | |
| "selection_score": 0.97323, | |
| "step": 2104, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.95546, | |
| "val_roc_auc": 0.98856, | |
| "val_disclaimer_fpr": 0.0, | |
| "selection_score": 0.97321, | |
| "step": 2104, | |
| "weights": "ema" | |
| } | |
| ] | |
| } |