Skip to content

bug in k_quants.c #3636

Closed
Closed
@shlevi-microsoft

Description

@shlevi-microsoft

There is a bug in k_quants.c.

the loop index j is incremented by k in each iteration, which means that each iteration processes a block of k elements. starting at column j. However, the loop condition is j < nb. This condition may not be correct, because nb is calculated as k / QK_K, which is the number of blocks in the matrix, not the number of elements.

j < nb should be change to j < n
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions