fever/fever
Updated • 2.27k • 47
How to use NiviG/hallucination-detector with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="NiviG/hallucination-detector") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("NiviG/hallucination-detector")
model = AutoModelForSequenceClassification.from_pretrained("NiviG/hallucination-detector", device_map="auto")This is a fine-tuned version of Microsoft's DeBERTa-v3-base trained on 25,000+ examples of the FEVER NLI dataset.
It is designed to evaluate whether an AI-generated statement (Claim) is supported, contradicted, or unresolvable based on a provided context paragraph (Evidence).