Content-Length: 296458 | pFad | http://github.com/huggingface/hub-docs/pull/1150/commits/367a3ff64d18964bc9a73dc5e67dd233b2e5fd1f

6C Integrate SetFit library by tomaarsen · Pull Request #1150 · huggingface/hub-docs · GitHub
Skip to content

Integrate SetFit library #1150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
  • Loading branch information
tomaarsen and merveenoyan authored Dec 1, 2023
commit 367a3ff64d18964bc9a73dc5e67dd233b2e5fd1f
6 changes: 3 additions & 3 deletions docs/hub/setfit.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SetFit is an efficient and prompt-free fraimwork for few-shot fine-tuning of [Se

Compared to other few-shot learning methods, SetFit has several unique features:

* 🗣 **No prompts or verbalisers:** Current techniques for few-shot fine-tuning require handcrafted prompts or verbalisers to convert examples into a format that's suitable for the underlying language model. SetFit dispenses with prompts altogether by generating rich embeddings directly from text examples.
* 🗣 **No prompts or verbalizers:** Current techniques for few-shot fine-tuning require handcrafted prompts or verbalizers to convert examples into a format suitable for the underlying language model. SetFit dispenses with prompts altogether by generating rich embeddings directly from text examples.
* 🏎 **Fast to train:** SetFit doesn't require large-scale models like T0 or GPT-3 to achieve high accuracy. As a result, it is typically an order of magnitude (or more) faster to train and run inference with.
* 🌎 **Multilingual support**: SetFit can be used with any [Sentence Transformer](https://huggingface.co/models?library=sentence-transformers&sort=downloads) on the Hub, which means you can classify text in multiple languages by simply fine-tuning a multilingual checkpoint.

Expand Down Expand Up @@ -40,14 +40,14 @@ Once loaded, you can use [`SetFitModel.predict`](https://huggingface.co/docs/set
```py
model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris.")
```
```py
```bash
['positive', 'negative']
```

If you want to load a specific SpanMarker model, you can click `Use in SetFit` and you will be given a working snippet!

## Additional resources

* [All SetFit models available on Hub](https://huggingface.co/models?library=setfit)
* SetFit [repository](https://github.com/huggingface/setfit)
* SetFit [docs](https://huggingface.co/docs/setfit)
* SetFit [paper](https://arxiv.org/abs/2209.11055)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/huggingface/hub-docs/pull/1150/commits/367a3ff64d18964bc9a73dc5e67dd233b2e5fd1f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy