Token Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
hallucination-detection
groundedness
faithfulness
span-detection
rag
guardrails
agent-forensics
observability
tamarillo
hallucination
rag-evaluation
llm-observability
Instructions to use Tamarillo/groundedness-guard-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/groundedness-guard-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Tamarillo/groundedness-guard-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/groundedness-guard-base") model = AutoModelForTokenClassification.from_pretrained("Tamarillo/groundedness-guard-base", device_map="auto") - Transformers.js
How to use Tamarillo/groundedness-guard-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Tamarillo/groundedness-guard-base'); - Notebooks
- Google Colab
- Kaggle
Release Tamarillo/groundedness-guard-base (Apache-2.0, zero trust_remote_code RAG/agent groundedness & hallucination guard, parity-verified ONNX)
ce6548c verified Download training_summary.json from Tamarillo/groundedness-guard-base: direct link, hf CLI and curl.
- Browser
- Download file 4.93 kB
-
https://huggingface.co/Tamarillo/groundedness-guard-base/resolve/main/training_summary.json
- Command line
-
hf download hf://Tamarillo/groundedness-guard-base/training_summary.json
-
curl -L -o training_summary.json https://huggingface.co/Tamarillo/groundedness-guard-base/resolve/main/training_summary.json
4.93 kB
| { | |
| "method": "prod_tok_span_mil_ema_v5", | |
| "base_model": "jhu-clsp/mmBERT-base", | |
| "architecture": "ModernBertForTokenClassification", | |
| "id2label": { | |
| "0": "supported", | |
| "1": "hallucinated" | |
| }, | |
| "train_runtime_sec": 3017.6, | |
| "best_val_metrics": { | |
| "accuracy": 0.80382, | |
| "macro_f1": 0.79934, | |
| "macro_f1_mil": 0.80249, | |
| "hal_f1": 0.8293, | |
| "consistent_f1": 0.76938, | |
| "roc_auc": 0.88266, | |
| "roc_auc_mil": 0.8864, | |
| "selection_score": 0.84691, | |
| "stage": "stage2", | |
| "step": 1306, | |
| "weights": "ema" | |
| }, | |
| "val_history": [ | |
| { | |
| "accuracy": 0.70867, | |
| "macro_f1": 0.68435, | |
| "macro_f1_mil": 0.73864, | |
| "hal_f1": 0.77197, | |
| "consistent_f1": 0.59674, | |
| "roc_auc": 0.79905, | |
| "roc_auc_mil": 0.80168, | |
| "selection_score": 0.76037, | |
| "stage": "stage1", | |
| "step": 583, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.71709, | |
| "macro_f1": 0.69409, | |
| "macro_f1_mil": 0.72887, | |
| "hal_f1": 0.77797, | |
| "consistent_f1": 0.61021, | |
| "roc_auc": 0.80566, | |
| "roc_auc_mil": 0.80751, | |
| "selection_score": 0.76379, | |
| "stage": "stage1", | |
| "step": 1166, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.72411, | |
| "macro_f1": 0.7044, | |
| "macro_f1_mil": 0.73506, | |
| "hal_f1": 0.78073, | |
| "consistent_f1": 0.62807, | |
| "roc_auc": 0.80649, | |
| "roc_auc_mil": 0.80875, | |
| "selection_score": 0.76807, | |
| "stage": "stage1", | |
| "step": 1749, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.72467, | |
| "macro_f1": 0.705, | |
| "macro_f1_mil": 0.73506, | |
| "hal_f1": 0.78117, | |
| "consistent_f1": 0.62883, | |
| "roc_auc": 0.80651, | |
| "roc_auc_mil": 0.80879, | |
| "selection_score": 0.76822, | |
| "stage": "stage1", | |
| "step": 1750, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.78445, | |
| "macro_f1": 0.77792, | |
| "macro_f1_mil": 0.78577, | |
| "hal_f1": 0.816, | |
| "consistent_f1": 0.73984, | |
| "roc_auc": 0.8682, | |
| "roc_auc_mil": 0.87298, | |
| "selection_score": 0.83065, | |
| "stage": "stage2", | |
| "step": 653, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.79147, | |
| "macro_f1": 0.78704, | |
| "macro_f1_mil": 0.78547, | |
| "hal_f1": 0.81776, | |
| "consistent_f1": 0.75631, | |
| "roc_auc": 0.87326, | |
| "roc_auc_mil": 0.87644, | |
| "selection_score": 0.83498, | |
| "stage": "stage2", | |
| "step": 653, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.79568, | |
| "macro_f1": 0.78788, | |
| "macro_f1_mil": 0.80086, | |
| "hal_f1": 0.82854, | |
| "consistent_f1": 0.74722, | |
| "roc_auc": 0.88189, | |
| "roc_auc_mil": 0.88612, | |
| "selection_score": 0.84367, | |
| "stage": "stage2", | |
| "step": 1306, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.80382, | |
| "macro_f1": 0.79934, | |
| "macro_f1_mil": 0.80249, | |
| "hal_f1": 0.8293, | |
| "consistent_f1": 0.76938, | |
| "roc_auc": 0.88266, | |
| "roc_auc_mil": 0.8864, | |
| "selection_score": 0.84691, | |
| "stage": "stage2", | |
| "step": 1306, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.79905, | |
| "macro_f1": 0.7932, | |
| "macro_f1_mil": 0.79866, | |
| "hal_f1": 0.82797, | |
| "consistent_f1": 0.75843, | |
| "roc_auc": 0.88077, | |
| "roc_auc_mil": 0.88374, | |
| "selection_score": 0.84341, | |
| "stage": "stage2", | |
| "step": 1959, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.79905, | |
| "macro_f1": 0.79271, | |
| "macro_f1_mil": 0.80048, | |
| "hal_f1": 0.82895, | |
| "consistent_f1": 0.75646, | |
| "roc_auc": 0.88121, | |
| "roc_auc_mil": 0.88459, | |
| "selection_score": 0.84406, | |
| "stage": "stage2", | |
| "step": 1959, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.79848, | |
| "macro_f1": 0.79225, | |
| "macro_f1_mil": 0.79718, | |
| "hal_f1": 0.82823, | |
| "consistent_f1": 0.75628, | |
| "roc_auc": 0.87554, | |
| "roc_auc_mil": 0.87858, | |
| "selection_score": 0.84001, | |
| "stage": "stage2", | |
| "step": 2612, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.79877, | |
| "macro_f1": 0.79244, | |
| "macro_f1_mil": 0.79924, | |
| "hal_f1": 0.82867, | |
| "consistent_f1": 0.75621, | |
| "roc_auc": 0.87673, | |
| "roc_auc_mil": 0.87983, | |
| "selection_score": 0.84118, | |
| "stage": "stage2", | |
| "step": 2612, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.80045, | |
| "macro_f1": 0.79446, | |
| "macro_f1_mil": 0.79994, | |
| "hal_f1": 0.82954, | |
| "consistent_f1": 0.75939, | |
| "roc_auc": 0.87658, | |
| "roc_auc_mil": 0.87951, | |
| "selection_score": 0.84166, | |
| "stage": "stage2", | |
| "step": 2942, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.79961, | |
| "macro_f1": 0.79354, | |
| "macro_f1_mil": 0.79934, | |
| "hal_f1": 0.82894, | |
| "consistent_f1": 0.75813, | |
| "roc_auc": 0.87654, | |
| "roc_auc_mil": 0.87963, | |
| "selection_score": 0.84134, | |
| "stage": "stage2", | |
| "step": 2942, | |
| "weights": "ema" | |
| } | |
| ] | |
| } |