Run this model with HF Jobs

Run vectara/hallucination_evaluation_model 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:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/vectara/hallucination_evaluation_model. 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.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/vectara/hallucination_evaluation_model 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.

Finetune hallucination_evaluation_model checkpoint on custom data

#22
by hegdma - opened

I have a custom dataset consisting of a context, a summary, and a binary label (0 or 1) indicating whether the summary is hallucinated. I want to fine-tune this model using my data.

To do this, I loaded vectara model using AutoModelForSequenceClassification and the google/flan-t5-base tokenizer.

pair_dict = [{'text1': pair[0], 'text2': pair[1]} for pair in text_pairs]
inputs = tokenizer(
[prompt.format(**pair) for pair in pair_dict],
return_tensors='pt',
padding=True
).to(self.t5.device)
output = model(**inputs)

I compute the cross-entropy loss and run the standard backpropagation training loop. However, despite multiple epochs of training, the model weights do not seem to update, and the validation loss remains unchanged.

Has anyone tried similar approach and able to finetune this model ?

Hey, can you share the code for finetuning it. Thanks.

Sign up or log in to comment