Skip to content

Commit

Permalink
Being compatible with Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mayong committed Jul 5, 2023
1 parent e7f05ad commit 1764d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ struct bert_ctx * bert_load_from_file(const char *fname)
new_bert->mem_per_input = 1.1 * (new_bert->mem_per_token * N); // add 10% to account for ggml object overhead

}
printf("%s: mem_per_token %d KB, mem_per_input %lld MB\n", __func__, new_bert->mem_per_token / (1 << 10), new_bert->mem_per_input / (1 << 20));
printf("%s: mem_per_token %zd KB, mem_per_input %lld MB\n", __func__, new_bert->mem_per_token / (1 << 10), new_bert->mem_per_input / (1 << 20));

return new_bert;
}
Expand Down

0 comments on commit 1764d47

Please sign in to comment.