Skip to content

Commit

Permalink
Cosmetic change.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Sep 30, 2023
1 parent b037d17 commit fea103c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions candle-core/src/quantized/k_quants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,6 @@ impl GgmlType for BlockQ3K {
let d_all = block.d.to_f32();
let mut m = 1;
let mut is = 0;
let mut dl;

// Dequantize both 128 long blocks
// 32 qs values per 128 long block
Expand All @@ -1096,7 +1095,7 @@ impl GgmlType for BlockQ3K {
for (scale_index, scale_scoped_y) in
shift_scoped_y.chunks_exact_mut(16).enumerate()
{
dl = d_all * (scales[is] as f32 - 32.0);
let dl = d_all * (scales[is] as f32 - 32.0);
for (i, inner_y) in scale_scoped_y.iter_mut().enumerate() {
let new_y = dl
* (((qs[i + 16 * scale_index] >> shift) & 3) as i8
Expand Down

0 comments on commit fea103c

Please sign in to comment.