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.

How to use "Trust_remote_code" using InferenceClient

#11
by shubhangikat - opened

This the function in which I'm trying to access hugging face through Inference Client and how do I send "Trust_remote_code" so that I don't get the issue.
def hallucination(llm_response, ground_truth):
output_from_client = client.post(model = 'vectara/hallucination_evaluation_model',
json = {"text": llm_response, "text_pair": ground_truth})

raw_score = json.loads(output_from_client.decode('utf-8'))
hallucination_score = raw_score[0]['score']
return hallucination_score

@shubhangikat thanks for your inquiry. We are working on it now.

Sign up or log in to comment