File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ llama_context::llama_context(
181
181
/* .type_v =*/ params.type_v ,
182
182
};
183
183
184
- memory.reset (model.create_memory (cparams, params_mem ));
184
+ memory.reset (model.create_memory (params_mem, cparams ));
185
185
}
186
186
187
187
// init backends
Original file line number Diff line number Diff line change @@ -12815,7 +12815,7 @@ struct llm_build_bailingmoe : public llm_graph_context {
12815
12815
}
12816
12816
};
12817
12817
12818
- llama_memory_i * llama_model::create_memory(llama_cparams & cparams, const llama_memory_params & params ) const {
12818
+ llama_memory_i * llama_model::create_memory(const llama_memory_params & params, llama_cparams & cparams ) const {
12819
12819
llama_memory_i * res;
12820
12820
12821
12821
const bool offload = cparams.offload_kqv;
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ struct llama_model {
397
397
398
398
// note: can mutate `cparams`
399
399
// TODO: move this to new llm_arch_model_i interface
400
- llama_memory_i * create_memory (llama_cparams & cparams, const llama_memory_params & params ) const ;
400
+ llama_memory_i * create_memory (const llama_memory_params & params, llama_cparams & cparams ) const ;
401
401
402
402
// TODO: move this to new llm_arch_model_i interface
403
403
llm_graph_result_ptr build_graph (
You can’t perform that action at this time.
0 commit comments