Text Classification
Transformers
ONNX
Safetensors
Transformers.js
English
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-tiny-en 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-tiny-en. 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-tiny-en 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-tiny-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/refusal-guard-tiny-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Tamarillo/refusal-guard-tiny-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/refusal-guard-tiny-en") model = AutoModelForSequenceClassification.from_pretrained("Tamarillo/refusal-guard-tiny-en", device_map="auto") - Transformers.js
How to use Tamarillo/refusal-guard-tiny-en with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Tamarillo/refusal-guard-tiny-en'); - Notebooks
- Google Colab
- Kaggle
Release Tamarillo/refusal-guard-tiny-en (32M Apache-2.0 garak drop-in, 100%-parity FP32/FP16/Gather-INT8 ONNX, Stage-2 PASS)
217d858 verified Download training_summary.json from Tamarillo/refusal-guard-tiny-en: direct link, hf CLI and curl.
- Browser
- Download file 2.74 kB
-
https://huggingface.co/Tamarillo/refusal-guard-tiny-en/resolve/main/training_summary.json
- Command line
-
hf download hf://Tamarillo/refusal-guard-tiny-en/training_summary.json
-
curl -L -o training_summary.json https://huggingface.co/Tamarillo/refusal-guard-tiny-en/resolve/main/training_summary.json
2.74 kB
| { | |
| "base_model": "jhu-clsp/ettin-encoder-32m", | |
| "distilled_from": "/mnt/disks/gcs/runs/tamarillo-lab-v3/outputs/63cd12f08469/model", | |
| "max_length": 2560, | |
| "epochs": 2.5, | |
| "lr": 8e-05, | |
| "train_examples": 60171, | |
| "val_examples": 2198, | |
| "train_runtime_sec": 2995.2, | |
| "best_val_metrics": { | |
| "val_macro_f1": 0.91128, | |
| "val_roc_auc": 0.97305, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.94358, | |
| "step": 1568, | |
| "weights": "raw" | |
| }, | |
| "val_history": [ | |
| { | |
| "val_macro_f1": 0.83817, | |
| "val_roc_auc": 0.95847, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.90046, | |
| "step": 392, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.88614, | |
| "val_roc_auc": 0.96297, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.92774, | |
| "step": 392, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.89251, | |
| "val_roc_auc": 0.96852, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.93235, | |
| "step": 784, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.89802, | |
| "val_roc_auc": 0.96968, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.93561, | |
| "step": 784, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.90169, | |
| "val_roc_auc": 0.97086, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.93787, | |
| "step": 1176, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.89758, | |
| "val_roc_auc": 0.97199, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.93583, | |
| "step": 1176, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.91128, | |
| "val_roc_auc": 0.97305, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.94358, | |
| "step": 1568, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.90442, | |
| "val_roc_auc": 0.97302, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.93981, | |
| "step": 1568, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.90533, | |
| "val_roc_auc": 0.97334, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.94037, | |
| "step": 1960, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.90124, | |
| "val_roc_auc": 0.97324, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.9381, | |
| "step": 1960, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_macro_f1": 0.90488, | |
| "val_roc_auc": 0.97268, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.93999, | |
| "step": 2352, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_macro_f1": 0.90352, | |
| "val_roc_auc": 0.97283, | |
| "val_disclaimer_fpr": 0.00893, | |
| "selection_score": 0.93927, | |
| "step": 2352, | |
| "weights": "ema" | |
| } | |
| ] | |
| } |