MyGit

v1.1.0

huggingface/setfit

版本发布时间: 2024-09-19 17:28:57

huggingface/setfit最新发布版本:v1.1.0(2024-09-19 17:28:57)

This release introduces a new backend to finetune embedding models, based on the Sentence Transformers Trainer, tackles deprecations of other dependencies like transformers, deprecates Python 3.7 while adding support for new Python versions, and applies some other minor fixes. There shouldn't be any breaking changes.

Install this version with

pip install -U setfit

Defer the embedding model finetuning phase to Sentence Transformers (#554)

In SetFit v1.0, the old model.fit training from Sentence Transformers was replaced by a custom training loop that has some features the former was missing, such as loss logging, useful callbacks, etc. However, since then, Sentence Transformers v3 has released, which also added all of the features that were previously lacking. To simplify the training moving forward, the training is now (once again) deferred to Sentence Transformers.

Because both the old and new training approach are inspired by the transformers Trainer, there should not be any breaking changes. The primary notable change is that training now requires accelerate (as Sentence Transformers requires it), and we benefit from some of the Sentence Transformers training features, such as multi-GPU training.

Solve discrepancies with new versions of dependencies

To ensure compatibility with the latest versions of dependencies, the following issues have been addressed:

Python version support

Minor changes

Minor bug fixes

All Changes

New Contributors

Full Changelog: https://github.com/huggingface/setfit/compare/v1.0.3...v1.1.0

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-09-19发行的版本