Commit 0fec31c
committed
test(quantization): correct the RaBitQ memory-savings expectation
384 dims pad to 512 for the FWHT rotation, so each vector costs 64 code
bytes plus 8 bytes of factors (21.3x vs FP32), and with 100 vectors the
fixed centroid/rotation state brings the total to ~17x. The old "> 20x
(~32x expected)" bound ignored padding and fixed cost and failed on every
platform; assert the achievable range instead.1 parent fb7da53 commit 0fec31c
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
575 | 581 | | |
576 | 582 | | |
577 | 583 | | |
| |||
0 commit comments