Skip to content

Commit 846593c

Browse files
authored
DiskBBQ - Panama support for 4 bits symmetric quantization (#137510)
1 parent ebca69f commit 846593c

File tree

4 files changed

+442
-34
lines changed

4 files changed

+442
-34
lines changed

libs/simdvec/src/main21/java/org/elasticsearch/simdvec/internal/vectorization/MSBitToInt4ESNextOSQVectorsScorer.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import jdk.incubator.vector.LongVector;
1515
import jdk.incubator.vector.ShortVector;
1616
import jdk.incubator.vector.VectorOperators;
17-
import jdk.incubator.vector.VectorSpecies;
1817

1918
import org.apache.lucene.index.VectorSimilarityFunction;
2019
import org.apache.lucene.store.IndexInput;
@@ -31,23 +30,6 @@
3130
/** Panamized scorer for quantized vectors stored as a {@link MemorySegment}. */
3231
final class MSBitToInt4ESNextOSQVectorsScorer extends MemorySegmentESNextOSQVectorsScorer.MemorySegmentScorer {
3332

34-
private static final int BULK_SIZE = MemorySegmentESNextOSQVectorsScorer.BULK_SIZE;
35-
private static final float FOUR_BIT_SCALE = 1f / ((1 << 4) - 1);
36-
37-
private static final VectorSpecies<Integer> INT_SPECIES_128 = IntVector.SPECIES_128;
38-
39-
private static final VectorSpecies<Long> LONG_SPECIES_128 = LongVector.SPECIES_128;
40-
private static final VectorSpecies<Long> LONG_SPECIES_256 = LongVector.SPECIES_256;
41-
42-
private static final VectorSpecies<Byte> BYTE_SPECIES_128 = ByteVector.SPECIES_128;
43-
private static final VectorSpecies<Byte> BYTE_SPECIES_256 = ByteVector.SPECIES_256;
44-
45-
private static final VectorSpecies<Short> SHORT_SPECIES_128 = ShortVector.SPECIES_128;
46-
private static final VectorSpecies<Short> SHORT_SPECIES_256 = ShortVector.SPECIES_256;
47-
48-
private static final VectorSpecies<Float> FLOAT_SPECIES_128 = FloatVector.SPECIES_128;
49-
private static final VectorSpecies<Float> FLOAT_SPECIES_256 = FloatVector.SPECIES_256;
50-
5133
MSBitToInt4ESNextOSQVectorsScorer(IndexInput in, int dimensions, int dataLength, MemorySegment memorySegment) {
5234
super(in, dimensions, dataLength, memorySegment);
5335
}

0 commit comments

Comments
 (0)