How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="mathislucka/deberta-base-hallucination-eval-v2")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("mathislucka/deberta-base-hallucination-eval-v2")
model = AutoModelForSequenceClassification.from_pretrained("mathislucka/deberta-base-hallucination-eval-v2")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Inference

from transformers import pipeline

pipe = pipeline(model="mathislucka/deberta-base-hallucination-eval-v2", task="text-classification", function_to_apply="none")

prediction = pipe(<statement> + "[SEP]" + <evidence>)
Downloads last month
5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support