move i2 to quantize
This commit is contained in:
parent
ca09085593
commit
dbee0a86c1
3 changed files with 48 additions and 150 deletions
6
ggml.c
6
ggml.c
|
@ -21750,7 +21750,11 @@ size_t ggml_quantize_chunk(
|
|||
assert(false);
|
||||
}
|
||||
|
||||
GGML_ASSERT(result == nrows * row_size);
|
||||
if (type == GGML_TYPE_I2) {
|
||||
result = nrows * row_size / 4 + 32;
|
||||
} else {
|
||||
GGML_ASSERT(result == nrows * row_size);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue