Token Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
hallucination-detection
groundedness
faithfulness
span-detection
rag
guardrails
agent-forensics
observability
tamarillo
Run this model with HF Jobs
Run Tamarillo/groundedness-guard-base 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/groundedness-guard-base. 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/groundedness-guard-base 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/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 v2 (Apache-2.0, MIT RAGTruth + CORTEX-LS-SpanKD, parity-verified ONNX)
e3df8d4 verified Download training_summary.json from Tamarillo/groundedness-guard-base: direct link, hf CLI and curl.
- Browser
- Download file 4.91 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.91 kB
| { | |
| "method": "prod_tok_span_mil_ema_v5", | |
| "base_model": "jhu-clsp/mmBERT-base", | |
| "architecture": "ModernBertForTokenClassification", | |
| "id2label": { | |
| "0": "supported", | |
| "1": "hallucinated" | |
| }, | |
| "train_runtime_sec": 6101.4, | |
| "best_val_metrics": { | |
| "accuracy": 0.7905, | |
| "macro_f1": 0.788, | |
| "macro_f1_mil": 0.79432, | |
| "hal_f1": 0.81101, | |
| "consistent_f1": 0.765, | |
| "roc_auc": 0.8784, | |
| "roc_auc_mil": 0.88173, | |
| "selection_score": 0.84006, | |
| "stage": "stage2", | |
| "step": 1602, | |
| "weights": "ema" | |
| }, | |
| "val_history": [ | |
| { | |
| "accuracy": 0.70725, | |
| "macro_f1": 0.69071, | |
| "macro_f1_mil": 0.71968, | |
| "hal_f1": 0.76223, | |
| "consistent_f1": 0.61919, | |
| "roc_auc": 0.77995, | |
| "roc_auc_mil": 0.78276, | |
| "selection_score": 0.74708, | |
| "stage": "stage1", | |
| "step": 583, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.698, | |
| "macro_f1": 0.67349, | |
| "macro_f1_mil": 0.71888, | |
| "hal_f1": 0.76295, | |
| "consistent_f1": 0.58402, | |
| "roc_auc": 0.78845, | |
| "roc_auc_mil": 0.79116, | |
| "selection_score": 0.74768, | |
| "stage": "stage1", | |
| "step": 1166, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.7005, | |
| "macro_f1": 0.67905, | |
| "macro_f1_mil": 0.72253, | |
| "hal_f1": 0.76202, | |
| "consistent_f1": 0.59609, | |
| "roc_auc": 0.78614, | |
| "roc_auc_mil": 0.78858, | |
| "selection_score": 0.7484, | |
| "stage": "stage1", | |
| "step": 1749, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.7005, | |
| "macro_f1": 0.67905, | |
| "macro_f1_mil": 0.72253, | |
| "hal_f1": 0.76202, | |
| "consistent_f1": 0.59609, | |
| "roc_auc": 0.78618, | |
| "roc_auc_mil": 0.78861, | |
| "selection_score": 0.74842, | |
| "stage": "stage1", | |
| "step": 1750, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.78425, | |
| "macro_f1": 0.78186, | |
| "macro_f1_mil": 0.7783, | |
| "hal_f1": 0.80471, | |
| "consistent_f1": 0.75901, | |
| "roc_auc": 0.86342, | |
| "roc_auc_mil": 0.86651, | |
| "selection_score": 0.82676, | |
| "stage": "stage2", | |
| "step": 801, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.785, | |
| "macro_f1": 0.78272, | |
| "macro_f1_mil": 0.78704, | |
| "hal_f1": 0.80499, | |
| "consistent_f1": 0.76045, | |
| "roc_auc": 0.86774, | |
| "roc_auc_mil": 0.87183, | |
| "selection_score": 0.83158, | |
| "stage": "stage2", | |
| "step": 801, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.781, | |
| "macro_f1": 0.77684, | |
| "macro_f1_mil": 0.78476, | |
| "hal_f1": 0.8073, | |
| "consistent_f1": 0.74638, | |
| "roc_auc": 0.86972, | |
| "roc_auc_mil": 0.87278, | |
| "selection_score": 0.83055, | |
| "stage": "stage2", | |
| "step": 1602, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.7905, | |
| "macro_f1": 0.788, | |
| "macro_f1_mil": 0.79432, | |
| "hal_f1": 0.81101, | |
| "consistent_f1": 0.765, | |
| "roc_auc": 0.8784, | |
| "roc_auc_mil": 0.88173, | |
| "selection_score": 0.84006, | |
| "stage": "stage2", | |
| "step": 1602, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.782, | |
| "macro_f1": 0.77627, | |
| "macro_f1_mil": 0.79035, | |
| "hal_f1": 0.81207, | |
| "consistent_f1": 0.74048, | |
| "roc_auc": 0.87635, | |
| "roc_auc_mil": 0.88015, | |
| "selection_score": 0.83553, | |
| "stage": "stage2", | |
| "step": 2403, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.78575, | |
| "macro_f1": 0.78202, | |
| "macro_f1_mil": 0.79453, | |
| "hal_f1": 0.81052, | |
| "consistent_f1": 0.75352, | |
| "roc_auc": 0.87843, | |
| "roc_auc_mil": 0.88223, | |
| "selection_score": 0.83891, | |
| "stage": "stage2", | |
| "step": 2403, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.7875, | |
| "macro_f1": 0.78367, | |
| "macro_f1_mil": 0.78986, | |
| "hal_f1": 0.81244, | |
| "consistent_f1": 0.7549, | |
| "roc_auc": 0.87388, | |
| "roc_auc_mil": 0.87686, | |
| "selection_score": 0.8355, | |
| "stage": "stage2", | |
| "step": 3204, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.7865, | |
| "macro_f1": 0.78294, | |
| "macro_f1_mil": 0.79132, | |
| "hal_f1": 0.81073, | |
| "consistent_f1": 0.75516, | |
| "roc_auc": 0.87432, | |
| "roc_auc_mil": 0.87745, | |
| "selection_score": 0.83594, | |
| "stage": "stage2", | |
| "step": 3204, | |
| "weights": "ema" | |
| }, | |
| { | |
| "accuracy": 0.78625, | |
| "macro_f1": 0.78233, | |
| "macro_f1_mil": 0.78775, | |
| "hal_f1": 0.81155, | |
| "consistent_f1": 0.7531, | |
| "roc_auc": 0.87228, | |
| "roc_auc_mil": 0.87561, | |
| "selection_score": 0.83394, | |
| "stage": "stage2", | |
| "step": 3608, | |
| "weights": "raw" | |
| }, | |
| { | |
| "accuracy": 0.786, | |
| "macro_f1": 0.78221, | |
| "macro_f1_mil": 0.7881, | |
| "hal_f1": 0.81095, | |
| "consistent_f1": 0.75346, | |
| "roc_auc": 0.87285, | |
| "roc_auc_mil": 0.87613, | |
| "selection_score": 0.83429, | |
| "stage": "stage2", | |
| "step": 3608, | |
| "weights": "ema" | |
| } | |
| ] | |
| } |