milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
30.03k stars 2.88k forks source link

[Bug]: [GOSDK] The bf16 vectors output by the query is slightly different from the inserted vectors #33848

Closed ThreadDao closed 3 months ago

ThreadDao commented 4 months ago

Is there an existing issue for this?

Environment

- Milvus version: master-20240613-512ea6be-amd64
- Deployment mode(standalone or cluster): cluster
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2): go-sdk v2
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

The dim of bf16 field is 128. A bf16 vector type is slice []byte. The len of a inserted vector is 256 (128dim * 2, fp16 has 16bits 2 bytes). But the query output vector len is 128

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

ThreadDao commented 4 months ago

/assign @congqixia

yanliang567 commented 4 months ago

/unassign

congqixia commented 3 months ago

/assign @ThreadDao shall be fixed in #33684, could you please verify?

ThreadDao commented 3 months ago

@congqixia not fixed yet

congqixia commented 3 months ago

@congqixia not fixed yet

there is still some problem in bf16, tested with fp16 missing bf16 path

adetunjii commented 3 months ago

Hi @congqixia has this issue been resolved? It looks like you've fixed it, yet the issue remains open

congqixia commented 3 months ago

@adetunjii i think this issue is under verification by @ThreadDao

ThreadDao commented 3 months ago

@adetunjii @congqixia fixed.