Skip to content

Conversation

@Pringled
Copy link
Member

This PR adds support for quantization and dimensionality reduction to from_sentence_transformers. To reduce code duplication, a private helper method is added (_load_model).

@Pringled Pringled requested a review from stephantul April 23, 2025 15:07
@codecov
Copy link

codecov bot commented Apr 23, 2025

Codecov Report

Attention: Patch coverage is 65.00000% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
model2vec/hf_utils.py 20.00% 4 Missing ⚠️
model2vec/model.py 40.00% 3 Missing ⚠️
Files with missing lines Coverage Δ
model2vec/quantization.py 96.55% <100.00%> (+1.81%) ⬆️
model2vec/model.py 94.00% <40.00%> (-0.91%) ⬇️
model2vec/hf_utils.py 75.00% <20.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Pringled and others added 2 commits April 23, 2025 17:09
* feat: remove flag argument

* fix typing

* add future anns
@Pringled Pringled merged commit 79900e7 into main Apr 24, 2025
5 of 6 checks passed
@Pringled Pringled deleted the add-quantization-for-from-sentence-transformers branch April 24, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants