Token Classification
Transformers
ONNX
Safetensors
Transformers.js
English
modernbert
hallucination-detection
groundedness
faithfulness
span-detection
rag
guardrails
agent-forensics
observability
tamarillo
hallucination
rag-evaluation
llm-observability
Instructions to use Tamarillo/groundedness-guard-tiny-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/groundedness-guard-tiny-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Tamarillo/groundedness-guard-tiny-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/groundedness-guard-tiny-en") model = AutoModelForTokenClassification.from_pretrained("Tamarillo/groundedness-guard-tiny-en", device_map="auto") - Transformers.js
How to use Tamarillo/groundedness-guard-tiny-en with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Tamarillo/groundedness-guard-tiny-en'); - Notebooks
- Google Colab
- Kaggle
Release Tamarillo/groundedness-guard-tiny-en (Apache-2.0, zero trust_remote_code RAG/agent groundedness & hallucination guard, parity-verified ONNX)
e5f3768 verified Download training_summary.json from Tamarillo/groundedness-guard-tiny-en: direct link, hf CLI and curl.
- Browser
- Download file 6.95 kB
-
https://huggingface.co/Tamarillo/groundedness-guard-tiny-en/resolve/main/training_summary.json
- Command line
-
hf download hf://Tamarillo/groundedness-guard-tiny-en/training_summary.json
-
curl -L -o training_summary.json https://huggingface.co/Tamarillo/groundedness-guard-tiny-en/resolve/main/training_summary.json
6.95 kB
| { | |
| "method": "prod_2stage_nli_plus_span_kd_ema", | |
| "student_model": "jhu-clsp/ettin-encoder-32m", | |
| "teacher_dir": "/mnt/disks/gcs/runs/tamarillo-lab-v3/outputs/eecadc240e6a/model", | |
| "architecture": "ModernBertForTokenClassification", | |
| "id2label": { | |
| "0": "supported", | |
| "1": "hallucinated" | |
| }, | |
| "train_runtime_sec": 1351.8, | |
| "best_val_metrics": { | |
| "accuracy": 0.76685, | |
| "macro_f1": 0.7668, | |
| "macro_f1_mil": 0.77771, | |
| "hal_f1": 0.77017, | |
| "consistent_f1": 0.76342, | |
| "roc_auc": 0.86074, | |
| "roc_auc_mil": 0.86175, | |
| "selection_score": 0.8212, | |
| "stage": "stage2_kd", | |
| "step": 2440, | |
| "weights": "raw" | |
| }, | |
| "val_history": [ | |
| { | |
| "accuracy": 0.62381, | |
| "macro_f1": 0.61829, | |
| "macro_f1_mil": 0.65547, | |
| "hal_f1": 0.66421, | |
| "consistent_f1": 0.57237, | |
| "roc_auc": 0.71248, | |
| "roc_auc_mil": 0.71407, | |
| "selection_score": 0.6789, | |
| "stage": "stage1", | |
| "step": 583, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.62422, | |
| "macro_f1": 0.61727, | |
| "macro_f1_mil": 0.64913, | |
| "hal_f1": 0.66885, | |
| "consistent_f1": 0.5657, | |
| "roc_auc": 0.70134, | |
| "roc_auc_mil": 0.70448, | |
| "selection_score": 0.67154, | |
| "stage": "stage1", | |
| "step": 1166, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.62877, | |
| "macro_f1": 0.61973, | |
| "macro_f1_mil": 0.66105, | |
| "hal_f1": 0.67837, | |
| "consistent_f1": 0.56109, | |
| "roc_auc": 0.71424, | |
| "roc_auc_mil": 0.71672, | |
| "selection_score": 0.68169, | |
| "stage": "stage1", | |
| "step": 1749, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.62877, | |
| "macro_f1": 0.61973, | |
| "macro_f1_mil": 0.66105, | |
| "hal_f1": 0.67837, | |
| "consistent_f1": 0.56109, | |
| "roc_auc": 0.71422, | |
| "roc_auc_mil": 0.71671, | |
| "selection_score": 0.68168, | |
| "stage": "stage1", | |
| "step": 1750, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.7284, | |
| "macro_f1": 0.72839, | |
| "macro_f1_mil": 0.74919, | |
| "hal_f1": 0.72974, | |
| "consistent_f1": 0.72705, | |
| "roc_auc": 0.82882, | |
| "roc_auc_mil": 0.83208, | |
| "selection_score": 0.7892, | |
| "stage": "stage2_kd", | |
| "step": 488, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.74452, | |
| "macro_f1": 0.74449, | |
| "macro_f1_mil": 0.75888, | |
| "hal_f1": 0.74734, | |
| "consistent_f1": 0.74164, | |
| "roc_auc": 0.83856, | |
| "roc_auc_mil": 0.84052, | |
| "selection_score": 0.80001, | |
| "stage": "stage2_kd", | |
| "step": 488, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.76106, | |
| "macro_f1": 0.76105, | |
| "macro_f1_mil": 0.75695, | |
| "hal_f1": 0.76253, | |
| "consistent_f1": 0.75957, | |
| "roc_auc": 0.84391, | |
| "roc_auc_mil": 0.84497, | |
| "selection_score": 0.80599, | |
| "stage": "stage2_kd", | |
| "step": 976, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.75651, | |
| "macro_f1": 0.7565, | |
| "macro_f1_mil": 0.76307, | |
| "hal_f1": 0.75509, | |
| "consistent_f1": 0.75791, | |
| "roc_auc": 0.85155, | |
| "roc_auc_mil": 0.85306, | |
| "selection_score": 0.81067, | |
| "stage": "stage2_kd", | |
| "step": 976, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.75279, | |
| "macro_f1": 0.75269, | |
| "macro_f1_mil": 0.75527, | |
| "hal_f1": 0.7577, | |
| "consistent_f1": 0.74768, | |
| "roc_auc": 0.84097, | |
| "roc_auc_mil": 0.843, | |
| "selection_score": 0.80238, | |
| "stage": "stage2_kd", | |
| "step": 1464, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.7623, | |
| "macro_f1": 0.76219, | |
| "macro_f1_mil": 0.77178, | |
| "hal_f1": 0.7673, | |
| "consistent_f1": 0.75708, | |
| "roc_auc": 0.8561, | |
| "roc_auc_mil": 0.85733, | |
| "selection_score": 0.81634, | |
| "stage": "stage2_kd", | |
| "step": 1464, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.74742, | |
| "macro_f1": 0.74681, | |
| "macro_f1_mil": 0.7664, | |
| "hal_f1": 0.75916, | |
| "consistent_f1": 0.73446, | |
| "roc_auc": 0.85367, | |
| "roc_auc_mil": 0.85575, | |
| "selection_score": 0.81056, | |
| "stage": "stage2_kd", | |
| "step": 1952, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.76023, | |
| "macro_f1": 0.76005, | |
| "macro_f1_mil": 0.77656, | |
| "hal_f1": 0.76669, | |
| "consistent_f1": 0.7534, | |
| "roc_auc": 0.85834, | |
| "roc_auc_mil": 0.85985, | |
| "selection_score": 0.81824, | |
| "stage": "stage2_kd", | |
| "step": 1952, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.76685, | |
| "macro_f1": 0.7668, | |
| "macro_f1_mil": 0.77771, | |
| "hal_f1": 0.77017, | |
| "consistent_f1": 0.76342, | |
| "roc_auc": 0.86074, | |
| "roc_auc_mil": 0.86175, | |
| "selection_score": 0.8212, | |
| "stage": "stage2_kd", | |
| "step": 2440, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.76147, | |
| "macro_f1": 0.7612, | |
| "macro_f1_mil": 0.77338, | |
| "hal_f1": 0.76929, | |
| "consistent_f1": 0.7531, | |
| "roc_auc": 0.85746, | |
| "roc_auc_mil": 0.85889, | |
| "selection_score": 0.81728, | |
| "stage": "stage2_kd", | |
| "step": 2440, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.76437, | |
| "macro_f1": 0.76397, | |
| "macro_f1_mil": 0.77426, | |
| "hal_f1": 0.77363, | |
| "consistent_f1": 0.75431, | |
| "roc_auc": 0.85862, | |
| "roc_auc_mil": 0.85974, | |
| "selection_score": 0.81865, | |
| "stage": "stage2_kd", | |
| "step": 2928, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.76189, | |
| "macro_f1": 0.76147, | |
| "macro_f1_mil": 0.77341, | |
| "hal_f1": 0.77143, | |
| "consistent_f1": 0.75151, | |
| "roc_auc": 0.85931, | |
| "roc_auc_mil": 0.86038, | |
| "selection_score": 0.81826, | |
| "stage": "stage2_kd", | |
| "step": 2928, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.7623, | |
| "macro_f1": 0.76182, | |
| "macro_f1_mil": 0.77301, | |
| "hal_f1": 0.77246, | |
| "consistent_f1": 0.75119, | |
| "roc_auc": 0.85727, | |
| "roc_auc_mil": 0.85848, | |
| "selection_score": 0.81717, | |
| "stage": "stage2_kd", | |
| "step": 3416, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.76313, | |
| "macro_f1": 0.7627, | |
| "macro_f1_mil": 0.77135, | |
| "hal_f1": 0.77271, | |
| "consistent_f1": 0.7527, | |
| "roc_auc": 0.85825, | |
| "roc_auc_mil": 0.8593, | |
| "selection_score": 0.81749, | |
| "stage": "stage2_kd", | |
| "step": 3416, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.76064, | |
| "macro_f1": 0.76017, | |
| "macro_f1_mil": 0.77301, | |
| "hal_f1": 0.77087, | |
| "consistent_f1": 0.74946, | |
| "roc_auc": 0.85767, | |
| "roc_auc_mil": 0.8588, | |
| "selection_score": 0.81699, | |
| "stage": "stage2_kd", | |
| "step": 3665, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.76271, | |
| "macro_f1": 0.76225, | |
| "macro_f1_mil": 0.773, | |
| "hal_f1": 0.77276, | |
| "consistent_f1": 0.75173, | |
| "roc_auc": 0.85784, | |
| "roc_auc_mil": 0.85904, | |
| "selection_score": 0.81757, | |
| "stage": "stage2_kd", | |
| "step": 3665, | |
| "weights": "ema" | |
| } | |
| ] | |
| } |