4ビット浮動小数点FP4
かつて浮動小数点数は32ビットで格納されていたが、その後64ビットが標準となった。C言語ではfloatが32ビット、doubleが倍精度を指すが、Pythonでは単にfloatが倍精度を意味する。現在では4ビット浮動小数点FP4のようなより小さなフォーマットも登場している。
かつて浮動小数点数は32ビットで格納されていたが、その後64ビットが標準となった。C言語ではfloatが32ビット、doubleが倍精度を指すが、Pythonでは単にfloatが倍精度を意味する。現在では4ビット浮動小数点FP4のようなより小さなフォーマットも登場している。
FP4 is a 4-bit floating point format that uses 1 sign bit, 2 exponent bits, and 1 mantissa bit. It has limited precision and dynamic range, making it suitable for specialized applications like AI inference where memory bandwidth is constrained.
USearch introduces FP8 (8-bit floating point) support for vector search and KV-caching, enabling more efficient memory usage and faster computations. The implementation allows for reduced storage requirements while maintaining search accuracy through quantization techniques.