Skip to content

3.0.0rc5

This is the fifth release candidate for version 3.0.0. The 3.0.0rc1 notes describe version 3 as a whole, and the migration guide covers version 2 names.

New features

Fixes

  • DynamicSoftMarginLoss keeps its histogram detached from autograd, so training across optimizer steps does not retain a previous batch's graph. Multi-step regressions cover this behavior (#731).
  • Unnormalized distances no longer overflow float16. With float16 or bfloat16 inputs and normalize_embeddings=False, a distance is computed and returned in float32, so its losses, anchor_batched_backward, and CustomKNN return float32 too. Squared distances and dot products could previously become inf. See calling a distance.
  • ManifoldLoss no longer returns NaN for large unnormalized similarities, and it now raises TypeError for a distance that is not a similarity. LpDistance previously made distant rows count as more similar.

Validation

  • MultiSimilarityMiner now has regressions using the matrix reported in #723. They validate label-correct pairs on CPU and current MPS hardware. The original macOS 14.4 report was not reproduced, so this establishes current behavior rather than a confirmed fix for that historical environment.