FrugalScore: Learning Cheaper, Lighter and Faster Evaluation Metricsfor Automatic Text Generation
Paper โข 2110.08559 โข Published
Run moussaKam/frugalscore_tiny_roberta_bert-score 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:
Use HF Jobs to fine-tune https://huggingface.co/moussaKam/frugalscore_tiny_roberta_bert-score. 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.
Use HF Jobs to run batch inference with https://huggingface.co/moussaKam/frugalscore_tiny_roberta_bert-score 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.
How to use moussaKam/frugalscore_tiny_roberta_bert-score with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="moussaKam/frugalscore_tiny_roberta_bert-score") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("moussaKam/frugalscore_tiny_roberta_bert-score")
model = AutoModelForSequenceClassification.from_pretrained("moussaKam/frugalscore_tiny_roberta_bert-score", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("moussaKam/frugalscore_tiny_roberta_bert-score")
model = AutoModelForSequenceClassification.from_pretrained("moussaKam/frugalscore_tiny_roberta_bert-score", device_map="auto")YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
FrugalScore is an approach to learn a fixed, low cost version of any expensive NLG metric, while retaining most of its original performance
Paper: https://arxiv.org/abs/2110.08559?context=cs
Project github: https://github.com/moussaKam/FrugalScore
The pretrained checkpoints presented in the paper :
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="moussaKam/frugalscore_tiny_roberta_bert-score")