Run this model with HF Jobs
Run claritylab/MARS-Encoder 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/claritylab/MARS-Encoder. 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/claritylab/MARS-Encoder 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.
Instructions to use claritylab/MARS-Encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use claritylab/MARS-Encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="claritylab/MARS-Encoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("claritylab/MARS-Encoder") model = AutoModelForSequenceClassification.from_pretrained("claritylab/MARS-Encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download README.md from claritylab/MARS-Encoder: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/claritylab/MARS-Encoder/resolve/main/README.md
- Command line
-
hf download hf://claritylab/MARS-Encoder/README.md
-
curl -L -o README.md https://huggingface.co/claritylab/MARS-Encoder/resolve/main/README.md
license: cc
MARS Encoder for Multi-Agent Response Selection
This model was trained using SentenceTransformers Cross-Encoder class and is the model used in the paper One Agent To Rule Them All: Towards Multi-agent Conversational AI.
Training Data
This model was trained on the BBAI dataset. The model will predict a score between 0 and 1 ranking the correctness of a response to a user question from a conversational agent.
Usage and Performance
Pre-trained models can be used like this:
from sentence_transformers import CrossEncoder
model = CrossEncoder('csclarke/MARS-Encoder')
scores = model.predict([('question 1', 'response 1'), ('question 1', 'response 2')])
The model will predict scores for the pairs ('question 1', 'response 1') and ('question 1', 'response 2').
You can use this model also without sentence_transformers and by just using Transformers AutoModel class