注册并分享邀请链接,可获得视频播放与邀请奖励。

Elastic (@elastic) “CPUs don't have vector search instructions. You borrow from neural nets and vide” — TopicDigg

Elastic 的个人资料封面
Elastic 的头像
Elastic
@elastic
加入 October 2009
0 正在关注    0 粉丝
CPUs don't have vector search instructions. You borrow from neural nets and video codecs instead. Elasticsearch's simdvec engine reformulates vector math to fit whatever the CPU already runs fast. Four recent examples: - int7 quantization: fit unsigned-only multiply-accumulate by trading 1 bit of precision. ~6x faster. - int8 bias rewrite: algebraic shift + precomputed correction. ~20% bulk gain. - bf16 Euclidean distance as 3 dot products instead of a float32 conversion. Up to 2.4x. - Binary dot product via popcount: AND the bits, count the 1s. ~4x over scalar. A compiler can't make these calls. Each one requires reformulating the problem to fit an instruction the hardware was never designed to use this way.
显示更多
0
8
54
10
转发到社区