File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ struct lora_merge_ctx {
148
148
149
149
ctx_out = gguf_init_empty ();
150
150
struct ggml_init_params params = {
151
- /* .mem_size =*/ gguf_get_n_tensors (base_model.ctx_gguf )*ggml_tensor_overhead (),
151
+ /* .mem_size =*/ static_cast < size_t >( gguf_get_n_tensors (base_model.ctx_gguf )*ggml_tensor_overhead () ),
152
152
/* .mem_buffer =*/ NULL ,
153
153
/* .no_alloc =*/ true ,
154
154
};
Original file line number Diff line number Diff line change @@ -2315,7 +2315,7 @@ struct clip_model_loader {
2315
2315
2316
2316
// create data context
2317
2317
struct ggml_init_params params = {
2318
- /* .mem_size =*/ (gguf_get_n_tensors (ctx_gguf.get ()) + 1 ) * ggml_tensor_overhead (),
2318
+ /* .mem_size =*/ static_cast < size_t > (gguf_get_n_tensors (ctx_gguf.get ()) + 1 ) * ggml_tensor_overhead (),
2319
2319
/* .mem_buffer =*/ NULL ,
2320
2320
/* .no_alloc =*/ true ,
2321
2321
};
You can’t perform that action at this time.
0 commit comments