Skip to content

Commit

Permalink
switch mithral scan to upcast every 16 elems instead of 128
Browse files Browse the repository at this point in the history
  • Loading branch information
dblalock committed Jan 29, 2020
1 parent 5ffc2a2 commit 764902b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/quantize/mithral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ void mithral_lut_sparse(const float* Q, int nrows, int ncols, int ncodebooks,
void mithral_scan(const uint8_t* codes, int64_t nblocks, int ncodebooks,
int noutputs, const uint8_t* luts, uint8_t* dists_out)
{
mithral_scan<128, 2>(codes, nblocks, ncodebooks, noutputs, luts, dists_out);
// mithral_scan<128, 2>(codes, nblocks, ncodebooks, noutputs, luts, dists_out);
mithral_scan<16, 2>(codes, nblocks, ncodebooks, noutputs, luts, dists_out);
// if (ncodebooks >= 4) {
// mithral_scan<128, 2>(codes, nblocks, ncodebooks, noutputs, luts, dists_out);
// } else {
Expand Down

0 comments on commit 764902b

Please sign in to comment.