File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -2039,16 +2039,8 @@ std::string fs_get_cache_file(const std::string & filename) {
2039
2039
//
2040
2040
// Model utils
2041
2041
//
2042
- struct llama_init_result llama_init_default_params () {
2043
- struct llama_init_result result = {
2044
- /* .llama_model =*/ nullptr ,
2045
- /* .llama_context =*/ nullptr ,
2046
- };
2047
- return result;
2048
- }
2049
-
2050
2042
struct llama_init_result llama_init_from_gpt_params (gpt_params & params) {
2051
- auto iparams = llama_init_default_params () ;
2043
+ llama_init_result iparams;
2052
2044
auto mparams = llama_model_params_from_gpt_params (params);
2053
2045
2054
2046
llama_model * model = nullptr ;
Original file line number Diff line number Diff line change @@ -309,11 +309,10 @@ std::string fs_get_cache_file(const std::string & filename);
309
309
//
310
310
311
311
struct llama_init_result {
312
- struct llama_model * model;
313
- struct llama_context * context;
312
+ struct llama_model * model = nullptr ;
313
+ struct llama_context * context = nullptr ;
314
314
};
315
315
316
- struct llama_init_result llama_init_default_params ();
317
316
struct llama_init_result llama_init_from_gpt_params (gpt_params & params);
318
317
319
318
struct llama_model_params llama_model_params_from_gpt_params (const gpt_params & params);
You can’t perform that action at this time.
0 commit comments