Pulkitg64 commented on PR #15549:
URL: https://github.com/apache/lucene/pull/15549#issuecomment-3844771978
These are the results with different quantizations:
With qunatizations enabled, we are seeing similar performance as float32
which is bit surprising to me because I thought float16 would be slower because
in my code, I have to inflate the fp16 vector to fp32 while quantizing vector.
I will check and confirm if there is no mistake in benchmark runs.
| Encoding | recall | latency(ms) | netCPU | avgCpuCount | quantized |
visited | index(s) | index_docs/s | force_merge(s) | index_size(MB) |
vec_disk(MB) | vec_RAM(MB) |
|----------|---------|--------------|---------|--------------|------------|----------|-----------|---------------|-----------------|-----------------|---------------|-------------|
| float16 | 0.990 | 1.758 | 1.720 | 0.978 | no |
6822 | 17.03 | 5873.37 | 0.01 | 207.68 |
390.625 | 390.625 |
| float16 | 0.982 | 2.954 | 2.889 | 0.978 | 8 bits |
6851 | 19.5 | 5129.26 | 20.74 | 306.87 |
294.495 | 99.182 |
| float16 | 0.927 | 2.07 | 2.025 | 0.978 | 4 bits |
6934 | 19.75 | 5064.06 | 0.01 | 258.09 |
245.667 | 50.354 |
| float16 | 0.717 | 1.119 | 1.094 | 0.978 | 1 bit |
8165 | 18.76 | 5331.34 | 0.00 | 222.94 |
208.855 | 13.542 |
| float32 | 0.990 | 2.208 | 2.158 | 0.977 | no |
6874 | 18.72 | 5341.31 | 22.91 | 403.03 |
390.625 | 390.625 |
| float32 | 0.982 | 2.925 | 2.863 | 0.979 | 8 bits |
6866 | 19.59 | 5105.95 | 29.53 | 502.2 |
489.807 | 99.182 |
| float32 | 0.927 | 2.112 | 2.065 | 0.978 | 4 bits |
6968 | 19.17 | 5217.57 | 22.13 | 453.41 |
440.979 | 50.354 |
| float32 | 0.717 | 1.164 | 1.139 | 0.979 | 1 bit |
8191 | 18.68 | 5353.03 | 18.08 | 418.29 |
404.167 | 13.542 |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]