Skip to content

Commit 229cd05

Browse files
authored
removes the implicit cast
1 parent 443f5cb commit 229cd05

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/llama.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2907,10 +2907,10 @@ struct llama_model {
29072907
// for quantize-stats only
29082908
std::vector<std::pair<std::string, struct ggml_tensor *>> tensors_by_name;
29092909

2910-
uint64_t n_bytes = 0;
2911-
uint64_t n_elements = 0;
2910+
int64_t n_elements = 0;
2911+
size_t n_bytes = 0;
29122912

2913-
int64_t t_load_us = 0;
2913+
int64_t t_load_us = 0;
29142914
int64_t t_start_us = 0;
29152915

29162916
// keep track of loaded lora adapters
@@ -19958,11 +19958,11 @@ int32_t llama_model_desc(const struct llama_model * model, char * buf, size_t bu
1995819958
llama_model_ftype_name(model->ftype).c_str());
1995919959
}
1996019960

19961-
uint64_t llama_model_size(const struct llama_model *model) {
19961+
size_t llama_model_size(const struct llama_model *model) {
1996219962
return model->n_bytes;
1996319963
}
1996419964

19965-
uint64_t llama_model_n_params(const struct llama_model *model) {
19965+
int64_t llama_model_n_params(const struct llama_model *model) {
1996619966
return model->n_elements;
1996719967
}
1996819968

0 commit comments

Comments
 (0)