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
File size: 2,737 Bytes
217d858 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | {
"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"
}
]
} |