Skip to content

Commit

Permalink
Fix visual bug in quantization (#92)
Browse files Browse the repository at this point in the history
It didn't calculate the compression ratio properly because of a
copy/paste error :(
  • Loading branch information
LoganDark committed Jun 7, 2023
1 parent 5b41cd7 commit 09ec314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rwkv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ bool rwkv_quantize_model_file(const char * in_path, const char * out_path, const

RWKV_ASSERT_FALSE_MSG(RWKV_ERROR_FILE_WRITE, rwkv_fwrite_tensor(out_file, tensor), "Failed to write tensor %s", name_str);
orig_total_size += orig_size;
new_total_size += orig_size;
new_total_size += new_size;
}

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

0 comments on commit 09ec314

Please sign in to comment.