Text Classification
sentence-transformers
PyTorch
Safetensors
setfit
mpnet
text-embeddings-inference
Run this model with HF Jobs
Run vgarg/setfit_zero_shot_test 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/vgarg/setfit_zero_shot_test. 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/vgarg/setfit_zero_shot_test 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 vgarg/setfit_zero_shot_test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use vgarg/setfit_zero_shot_test with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("vgarg/setfit_zero_shot_test") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use vgarg/setfit_zero_shot_test with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("vgarg/setfit_zero_shot_test") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Add SetFit model
Browse filesFiles changed (2)
- model_head.pkl+2-2
- pytorch_model.bin+1-1
123version https://git-lfs.github.com/spec/v1oid sha256:558770e95a552facfd632d40384d56803caab2a2f2e9e22464b0a0fe4659c63csize 37783123version https://git-lfs.github.com/spec/v1oid sha256:a3888c878a8e42e0db88be4cc98bbbbb58b49aabe3579e4b8887e6ab860bb415size 43951
123version https://git-lfs.github.com/spec/v1oid sha256:8980a301411c4d16c3a785ffc7936d3ec5f01794312584c679be68c54b0d8a0asize 438012518123version https://git-lfs.github.com/spec/v1oid sha256:2b904b9c82753f43ae6df5de76cba775d9bd6909f561caa4739308ed16ccb35esize 438012518
model_head.pkl+2-2
pytorch_model.bin+1-1