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="sms1097/relevant_model")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("sms1097/relevant_model")
model = AutoModelForSequenceClassification.from_pretrained("sms1097/relevant_model", device_map="auto")
Quick Links

Relevant Model

This generates the is_relevant token as descirbed in Self-RAG.

We are testing to see if a retrieved document is relevant to the user input of our language model.

The expected input to the model is:

Instruction:\n{instruction}\nContext:\n{doc}
Downloads last month
11
Safetensors
Model size
67M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train sms1097/relevant_model

Collection including sms1097/relevant_model