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
Commit ·
95b6f74
1
Parent(s): 04a5f96
updated readme
Browse files10 unmodified lines11121314151617181920212210 unmodified lines## Usage and PerformancePre-trained models can be used like this:```from sentence_transformers import CrossEncodermodel = 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`` class10 unmodified lines11121314151617181920212210 unmodified lines## Usage and PerformancePre-trained models can be used like this:```pythonfrom sentence_transformers import CrossEncodermodel = 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
README.md+2-2