setfit icon indicating copy to clipboard operation
setfit copied to clipboard

Efficient few-shot learning with Sentence Transformers

Results 150 setfit issues
Sort by recently updated
recently updated
newest added

Tried to follow https://huggingface.co/docs/setfit/main/en/quickstart#end-to-end This notebook is just a copypaste from quickstart: https://colab.research.google.com/drive/1N9HPmqhaqBm_rL13nTuV3wC7rdIJseve#scrollTo=0NybX59O5o98 The train fails with ``` /usr/local/lib/python3.10/dist-packages/transformers/utils/notebook.py in on_train_begin(self, args, state, control, **kwargs) 293 294 def on_train_begin(self, args,...

`DatasetFilter` has been deprecated since version `0.21.0` and will be removed in next version of `huggingface_hub` (0.24.0). This PR updates the code to get rid of `DatasetFilter` and use plain...

**Fixes #512 and #535** Following the deprecation of `evaluation_strategy` to `eval_strategy`: [Hugging Face Transformers PR #30190](https://github.com/huggingface/transformers/pull/30190). Already covered in other repos: * trl: https://github.com/huggingface/trl/pull/1771 * peft: https://github.com/huggingface/peft/pull/1664

Hi, I took the following example and enabled the training part in the code: https://github.com/huggingface/setfit/blob/main/notebooks/setfit-onnx-optimum.ipynb But example gives an error: ``` Traceback (most recent call last): File "/teamspace/studios/this_studio/setfit_test/setfit-onnx-optimum-example.py", line 205,...

Can someone please provide a guide, how to deploy the SetFit model on Amazon SageMaker. I think HuggingFace doesn't support this. I have tried following the script but it's not...

Hello, Is there a way of inputting directly a custom pair sampling? My model takes too much time when doing "oversampling", so I am using "undersampling", however I have specific...

Trying to run the example given in the [README](https://github.com/huggingface/setfit?tab=readme-ov-file) gives an AttributeError -- `'TrainingArguments' object has no attribute 'eval_strategy'`. However, there is no attribute 'eval_strategy' mentioned in the code.

I have been struggling with this for two days, any help would be appreciated. Python 3.10 ``` from setfit import SetFitModel from huggingface_hub import login access_token_read = "cccxxxccc" # Authenticate...

Add imports to load dataset and train model

I'm experimenting with a simple model right now and I'm confused about whether or not I should expect the sentence transformer model to change during the training process. ```python #...