Instructions to use sms1097/retrieval_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sms1097/retrieval_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sms1097/retrieval_model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sms1097/retrieval_model") model = AutoModelForSequenceClassification.from_pretrained("sms1097/retrieval_model") - Notebooks
- Google Colab
- Kaggle
File size: 332 Bytes
7a4de0b 7b40dd9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ---
license: mit
datasets:
- sms1097/self_rag_tokens_train_data
---
# Retrieval Model
This generates the `Retrieve` 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 just a query posed to the language model.
|