Skip to content

Commit 5d1a0a6

Browse files
authored
Increase unit vector delta for bfloat16 tests (elastic#136602)
1 parent b9229eb commit 5d1a0a6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,6 @@ tests:
618618
- class: org.elasticsearch.xpack.remotecluster.CrossClusterEsqlRCS2UnavailableRemotesIT
619619
method: testEsqlRcs2UnavailableRemoteScenarios
620620
issue: https://github.com/elastic/elasticsearch/issues/136493
621-
- class: org.elasticsearch.index.codec.vectors.es93.ES93HnswBinaryQuantizedBFloat16VectorsFormatTests
622-
method: testFloatVectorScorerIteration
623-
issue: https://github.com/elastic/elasticsearch/issues/136566
624621

625622
# Examples:
626623
#

server/src/main/java/org/elasticsearch/index/codec/vectors/BQVectorUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/** Utility class for vector quantization calculations */
2828
public class BQVectorUtils {
2929
// NOTE: this is currently > 1e-4f due to bfloat16
30-
private static final float EPSILON = 1e-2f;
30+
private static final float EPSILON = 0.02f;
3131

3232
public static double sqrtNewtonRaphson(double x, double curr, double prev) {
3333
return (curr == prev) ? curr : sqrtNewtonRaphson(x, 0.5 * (curr + x / curr), curr);

0 commit comments

Comments
 (0)