FS FT // few-shot fine-tuning

sbagency
Dec 7, 2023

--

https://github.com/huggingface/setfit

SetFit doesn’t require large-scale models like T0, Llama or GPT-4 to achieve high accuracy. As a result, it is typically an order of magnitude (or more) faster to train and run inference with.

https://www.linkedin.com/posts/tomaarsen_github-huggingfacesetfit-efficient-few-shot-activity-7138197836424192002-I6gc
https://huggingface.co/tomaarsen/setfit-all-MiniLM-L6-v2-sst2-32-shot
from setfit import SetFitModel

# Download from 🤗 Hub
model = SetFitModel.from_pretrained("tomaarsen/setfit-all-MiniLM-L6-v2-sst2-8-shot")
# Run inference
preds = model("a fast , funny , highly enjoyable movie . ")
# https://huggingface.co/tomaarsen/setfit-all-MiniLM-L6-v2-sst2-32-shot?text=That%27s+really+awesome%21

--

--

sbagency
sbagency

Written by sbagency

Tech/biz consulting, analytics, research for founders, startups, corps and govs.

No responses yet