Downloads · 30 days
62
0% of all-time downloads
McGill-NLP/roberta-large-faithcritic
roberta-large-faithcritic is a text classification model from McGill-NLP. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Model Description: roberta-large-faithcritic is the RoBERTa large model fine-tuned on FaithCritic, a derivative of the FaithDial dataset. The objective is to predict whether an utterance is faithful or not, given the…
Downloads · 30 days
62
0% of all-time downloads
All-time downloads
62.6K
Public
Repo size
2.8 GB
Likes
1
Public
Click a slice to open those files.
.bin1.4 GB · 100%
From the Hugging Face model README
Model Description: roberta-large-faithcritic is the RoBERTa large model fine-tuned on FaithCritic, a derivative of the FaithDial dataset. The objective is to predict whether an utterance is faithful or not, given the source knowledge.
The hyperparameters are provided in hparams.yml. To know more about how to train a critic model, visit our repo.
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("McGill-NLP/roberta-large-faithcritic")
model = AutoModel.from_pretrained("McGill-NLP/roberta-large-faithcritic")
knowledge = "A cardigan is a type of knitted garment (sweater) that has an open front."
response = "The old version is the regular one, knitted garment that has open front and buttons!"
input = tokenizer(knowledge, response)
output = model(**input)
@article{dziri2022faithdial,
title={FaithDial: A Faithful Benchmark for Information-Seeking Dialogue},
author={Dziri, Nouha and Kamalloo, Ehsan and Milton, Sivan and Zaiane, Osmar and Yu, Mo and Ponti, Edoardo and Reddy, Siva},
journal={arXiv preprint, arXiv:2204.10757},
year={2022},
url={https://arxiv.org/abs/2204.10757}
}