Skip to content

fix: norm underflow for float16 - #369

Merged
stephantul merged 1 commit into
mainfrom
fix-norm-underflow-float16
Sep 15, 2026
Merged

stephantul merged 1 commit into
mainfrom
fix-norm-underflow-float16

Conversation

@stephantul

Copy link
Copy Markdown
Contributor

Follow-up to a recent PR which was unfortunately run by some kind of machine.

This PR fixes underflow with all zero vectors for float16 vectors specifically. Int8 vectors were not hit by this, because these were cast to float32 anyway, but float16 zero vectors could legitimately underflow.

@stephantul
stephantul requested a review from Pringled September 15, 2026 13:01
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
model2vec/model.py 97.50% <100.00%> (+0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephantul
stephantul merged commit 088746e into main Sep 15, 2026
11 checks passed
@stephantul
stephantul deleted the fix-norm-underflow-float16 branch September 15, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant