Buckets:
| <meta charset="utf-8" /><meta name="hf:doc:metadata" content="{"title":"SetFit","local":"setfit","sections":[],"depth":1}"> | |
| <link href="/docs/setfit/v1.1.2/en/_app/immutable/assets/0.e3b0c442.css" rel="modulepreload"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/entry/start.b7a9b643.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/chunks/scheduler.c59d9fbb.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/chunks/singletons.ee757831.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/chunks/paths.54781efa.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/entry/app.17e9af47.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/chunks/index.a47918e3.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/nodes/0.400211f3.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/chunks/each.e59479a4.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/nodes/15.a106b1b8.js"> | |
| <link rel="modulepreload" href="/docs/setfit/v1.1.2/en/_app/immutable/chunks/index.0513ac52.js"><!-- HEAD_svelte-u9bgzb_START --><meta name="hf:doc:metadata" content="{"title":"SetFit","local":"setfit","sections":[],"depth":1}"><!-- HEAD_svelte-u9bgzb_END --> <p></p> <h1 class="relative group"><a id="setfit" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#setfit"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>SetFit</span></h1> <p data-svelte-h="svelte-r2lb90">π€ SetFit is an efficient and prompt-free framework for few-shot fine-tuning of <a href="https://sbert.net/" rel="nofollow">Sentence Transformers</a>. It achieves high accuracy with little labeled data - for instance, with only 8 labeled examples per class on the Customer Reviews sentiment dataset, π€ SetFit is competitive with fine-tuning RoBERTa Large on the full training set of 3k examples!</p> <p data-svelte-h="svelte-shg4rg">Compared to other few-shot learning methods, SetFit has several unique features:</p> <ul data-svelte-h="svelte-17igggb"><li>π£ <strong>No prompts or verbalizers:</strong> 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.</li> <li>π <strong>Fast to train:</strong> 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.</li> <li>π <strong>Multilingual support</strong>: SetFit can be used with any <a href="https://huggingface.co/models?library=sentence-transformers&sort=downloads" rel="nofollow">Sentence Transformer</a> on the Hub, which means you can classify text in multiple languages by simply fine-tuning a multilingual checkpoint.</li></ul> <div class="mt-10" data-svelte-h="svelte-9yz7o6"><div class="w-full flex flex-col space-y-4 md:space-y-0 md:grid md:grid-cols-2 md:gap-y-4 md:gap-x-5"><a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./tutorials/overview"><div class="w-full text-center bg-gradient-to-br from-blue-400 to-blue-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Tutorials</div> <p class="text-gray-700">Learn the basics and become familiar with loading pretrained Sentence Transformers and fine-tuning them on data. Start here if you are using π€ SetFit for the first time!</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./how_to/overview"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">How-to guides</div> <p class="text-gray-700">Practical guides to help you achieve a specific goal. Take a look at these guides to learn how to use π€ SetFit to solve real-world problems.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./conceptual_guides/setfit"><div class="w-full text-center bg-gradient-to-br from-pink-400 to-pink-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Conceptual guides</div> <p class="text-gray-700">High-level explanations for building a better understanding about important topics such as few-shot and contrastive learning.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./reference/main"><div class="w-full text-center bg-gradient-to-br from-purple-400 to-purple-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Reference</div> <p class="text-gray-700">Technical descriptions of how π€ SetFit classes and methods work.</p></a></div></div> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/setfit/blob/main/docs/source/en/index.mdx" target="_blank"><span data-svelte-h="svelte-1kd6by1"><</span> <span data-svelte-h="svelte-x0xyl0">></span> <span data-svelte-h="svelte-1dajgef"><span class="underline ml-1.5">Update</span> on GitHub</span></a> <p></p> | |
| <script> | |
| { | |
| __sveltekit_1u7xim2 = { | |
| assets: "/docs/setfit/v1.1.2/en", | |
| base: "/docs/setfit/v1.1.2/en", | |
| env: {} | |
| }; | |
| const element = document.currentScript.parentElement; | |
| const data = [null,null]; | |
| Promise.all([ | |
| import("/docs/setfit/v1.1.2/en/_app/immutable/entry/start.b7a9b643.js"), | |
| import("/docs/setfit/v1.1.2/en/_app/immutable/entry/app.17e9af47.js") | |
| ]).then(([kit, app]) => { | |
| kit.start(app, element, { | |
| node_ids: [0, 15], | |
| data, | |
| form: null, | |
| error: null | |
| }); | |
| }); | |
| } | |
| </script> | |
Xet Storage Details
- Size:
- 6.95 kB
- Xet hash:
- 899bae9cd55643e8f538249b7fd5fbb2f517e7ec81dd207ed026857b3d94cca9
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.