mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-02-07 00:43:14 +01:00
Remove trailing space
This commit is contained in:
parent
80f1faac87
commit
2257f9f691
1
ggml.c
1
ggml.c
@ -920,7 +920,6 @@ void quantize_upgrade(enum ggml_type type, void* data, size_t * size, bool shuff
|
|||||||
block_q8_0_old *blk = (block_q8_0_old *)data;
|
block_q8_0_old *blk = (block_q8_0_old *)data;
|
||||||
block_q8_0 *new_blk = (block_q8_0 *)data;
|
block_q8_0 *new_blk = (block_q8_0 *)data;
|
||||||
block_q8_0 new_blk_buf;
|
block_q8_0 new_blk_buf;
|
||||||
|
|
||||||
*size = nb * sizeof(block_q8_0);
|
*size = nb * sizeof(block_q8_0);
|
||||||
|
|
||||||
for (size_t i = 0; i < nb ; i++) {
|
for (size_t i = 0; i < nb ; i++) {
|
||||||
|
@ -2110,9 +2110,7 @@ static void llama_model_quantize_internal(const std::string & fname_inp, const s
|
|||||||
|
|
||||||
if (model_loader->file_loaders.at(0)->file_version < LLAMA_FILE_VERSION_GGJT_V3 && quantize) {
|
if (model_loader->file_loaders.at(0)->file_version < LLAMA_FILE_VERSION_GGJT_V3 && quantize) {
|
||||||
if ((quantized_type == tensor.type) &&
|
if ((quantized_type == tensor.type) &&
|
||||||
(tensor.type == GGML_TYPE_Q4_0 || tensor.type == GGML_TYPE_Q4_1
|
(tensor.type == GGML_TYPE_Q4_0 || tensor.type == GGML_TYPE_Q4_1 || tensor.type == GGML_TYPE_Q5_0 || tensor.type == GGML_TYPE_Q5_1 || tensor.type == GGML_TYPE_Q8_0)) {
|
||||||
|| tensor.type == GGML_TYPE_Q5_0 || tensor.type == GGML_TYPE_Q5_1
|
|
||||||
|| tensor.type == GGML_TYPE_Q8_0)) {
|
|
||||||
// convet
|
// convet
|
||||||
new_type = tensor.type;
|
new_type = tensor.type;
|
||||||
new_data = tensor.data;
|
new_data = tensor.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user