@@ -128,13 +128,13 @@ static void common_params_handle_model_default(common_params & params) {
128128            }
129129            params.hf_file  = params.model ;
130130        } else  if  (params.model .empty ()) {
131-             params.model  = fs_get_cache_file (string_split (params.hf_file , ' /'  ).back ());
131+             params.model  = fs_get_cache_file (string_split<std::string> (params.hf_file , ' /'  ).back ());
132132        }
133133    } else  if  (!params.model_url .empty ()) {
134134        if  (params.model .empty ()) {
135-             auto  f = string_split (params.model_url , ' #'  ).front ();
136-             f = string_split (f, ' ?'  ).front ();
137-             params.model  = fs_get_cache_file (string_split (f, ' /'  ).back ());
135+             auto  f = string_split<std::string> (params.model_url , ' #'  ).front ();
136+             f = string_split<std::string> (f, ' ?'  ).front ();
137+             params.model  = fs_get_cache_file (string_split<std::string> (f, ' /'  ).back ());
138138        }
139139    } else  if  (params.model .empty ()) {
140140        params.model  = DEFAULT_MODEL_PATH;
@@ -879,7 +879,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
879879        {" --samplers"  }, " SAMPLERS"  ,
880880        string_format (" samplers that will be used for generation in the order, separated by \' ;\'\n (default: %s)"  , sampler_type_names.c_str ()),
881881        [](common_params & params, const  std::string & value) {
882-             const  auto  sampler_names = string_split (value, ' ;'  );
882+             const  auto  sampler_names = string_split<std::string> (value, ' ;'  );
883883            params.sparams .samplers  = common_sampler_types_from_names (sampler_names, true );
884884        }
885885    ).set_sparam ());
0 commit comments