Skip to content

Commit 09ec314

Browse files
authored
Fix visual bug in quantization (#92)
It didn't calculate the compression ratio properly because of a copy/paste error :(
1 parent 5b41cd7 commit 09ec314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rwkv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ bool rwkv_quantize_model_file(const char * in_path, const char * out_path, const
12641264

12651265
RWKV_ASSERT_FALSE_MSG(RWKV_ERROR_FILE_WRITE, rwkv_fwrite_tensor(out_file, tensor), "Failed to write tensor %s", name_str);
12661266
orig_total_size += orig_size;
1267-
new_total_size += orig_size;
1267+
new_total_size += new_size;
12681268
}
12691269

12701270
RWKV_MSG("original size = %8.2f MB\n", orig_total_size / 1024.0 / 1024.0);

0 commit comments

Comments
 (0)