Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
hallucination-detection
groundedness
faithfulness
fact-checking
rag
llm-evaluation
guardrails
nli
mmbert
text-embeddings-inference
Instructions to use Horizon-Labs/hallucination-guard-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Horizon-Labs/hallucination-guard-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Horizon-Labs/hallucination-guard-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Horizon-Labs/hallucination-guard-base") model = AutoModelForSequenceClassification.from_pretrained("Horizon-Labs/hallucination-guard-base", device_map="auto") - Transformers.js
How to use Horizon-Labs/hallucination-guard-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Horizon-Labs/hallucination-guard-base'); - Notebooks
- Google Colab
- Kaggle
Download eval/this_model.json from Horizon-Labs/hallucination-guard-base: direct link, hf CLI and curl.
- Browser
- Download file 2.02 kB
-
https://huggingface.co/Horizon-Labs/hallucination-guard-base/resolve/main/eval/this_model.json
- Command line
-
hf download hf://Horizon-Labs/hallucination-guard-base/eval/this_model.json
-
curl -L -o this_model.json https://huggingface.co/Horizon-Labs/hallucination-guard-base/resolve/main/eval/this_model.json
2.02 kB
| { | |
| "halueval_ar": { | |
| "bacc": 0.71, | |
| "auc": 0.763496875, | |
| "n": 800 | |
| }, | |
| "halueval_de": { | |
| "bacc": 0.72375, | |
| "auc": 0.766396875, | |
| "n": 800 | |
| }, | |
| "halueval_en": { | |
| "bacc": 0.72, | |
| "auc": 0.767096875, | |
| "n": 800 | |
| }, | |
| "halueval_es": { | |
| "bacc": 0.71375, | |
| "auc": 0.778721875, | |
| "n": 800 | |
| }, | |
| "halueval_hi": { | |
| "bacc": 0.74, | |
| "auc": 0.7769343750000001, | |
| "n": 800 | |
| }, | |
| "halueval_ja": { | |
| "bacc": 0.75125, | |
| "auc": 0.78535, | |
| "n": 800 | |
| }, | |
| "halueval_zh": { | |
| "bacc": 0.7375, | |
| "auc": 0.77255625, | |
| "n": 800 | |
| }, | |
| "_meta": { | |
| "seconds": 138.51281690597534 | |
| }, | |
| "ragtruth_test": { | |
| "bacc": 0.8287046237413884, | |
| "auc": 0.8994306231783255, | |
| "n": 2000 | |
| }, | |
| "halueval_qa": { | |
| "bacc": 0.782, | |
| "auc": 0.8223324999999999, | |
| "n": 2000 | |
| }, | |
| "halueval_dialogue": { | |
| "bacc": 0.6355, | |
| "auc": 0.749847, | |
| "n": 2000 | |
| }, | |
| "halueval_summarization": { | |
| "bacc": 0.5589999999999999, | |
| "auc": 0.585622, | |
| "n": 2000 | |
| }, | |
| "aggrefact_aggrefact_cnn": { | |
| "bacc": 0.6176068914801975, | |
| "auc": 0.7011240676541654, | |
| "n": 558 | |
| }, | |
| "aggrefact_aggrefact_xsum": { | |
| "bacc": 0.622325043377675, | |
| "auc": 0.7331148383779963, | |
| "n": 558 | |
| }, | |
| "aggrefact_claimverify": { | |
| "bacc": 0.7372587877332052, | |
| "auc": 0.7803842381295539, | |
| "n": 1000 | |
| }, | |
| "aggrefact_expertqa": { | |
| "bacc": 0.5932202322476636, | |
| "auc": 0.620859467492884, | |
| "n": 1000 | |
| }, | |
| "aggrefact_factcheck_gpt": { | |
| "bacc": 0.6739743256136699, | |
| "auc": 0.8440725561627201, | |
| "n": 1000 | |
| }, | |
| "aggrefact_lfqa": { | |
| "bacc": 0.8125459896983076, | |
| "auc": 0.8862988326978394, | |
| "n": 1000 | |
| }, | |
| "aggrefact_ragtruth": { | |
| "bacc": 0.8146780689977234, | |
| "auc": 0.8747519117389527, | |
| "n": 1000 | |
| }, | |
| "aggrefact_reveal": { | |
| "bacc": 0.834427310783568, | |
| "auc": 0.9326831525699605, | |
| "n": 1000 | |
| }, | |
| "aggrefact_tofueval_medias": { | |
| "bacc": 0.7072768869112585, | |
| "auc": 0.7475285450423977, | |
| "n": 726 | |
| }, | |
| "aggrefact_tofueval_meetb": { | |
| "bacc": 0.7363987138263666, | |
| "auc": 0.7743997856377277, | |
| "n": 772 | |
| }, | |
| "aggrefact_wice": { | |
| "bacc": 0.7316081263449685, | |
| "auc": 0.8592296750191487, | |
| "n": 358 | |
| } | |
| } |