Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( QuantizationError = promauto.NewGaugeVec(prometheus.GaugeOpts{ Name: "longbow_quantization_error_mse", Help: "Mean Squared Error of current quantization bit-depth", }, []string{"dataset", "bits"}) CompressionRatio = promauto.NewGaugeVec(prometheus.GaugeOpts{ Name: "longbow_compression_ratio", Help: "Compression ratio achieved by Turboquant V2", }, []string{"dataset"}) )
Functions ¶
This section is empty.
Types ¶
type BitWidthPredictor ¶
type BitWidthPredictor struct {
// contains filtered or unexported fields
}
BitWidthPredictor estimates the optimal bit-depth for a vector dataset
func NewBitWidthPredictor ¶
func NewBitWidthPredictor(sampleSize int) *BitWidthPredictor
func (*BitWidthPredictor) Predict ¶
func (p *BitWidthPredictor) Predict(vectors [][]float32) int
Predict determines if a vector batch should use 1, 2, 4, or 8 bits based on the variance of a randomly projected sample.
Click to show internal directories.
Click to hide internal directories.