@@ -70,8 +70,8 @@ struct SDParams {
7070 std::string clip_g_path;
7171 std::string clip_vision_path;
7272 std::string t5xxl_path;
73- std::string qwen2vl_path ;
74- std::string qwen2vl_vision_path ;
73+ std::string llm_path ;
74+ std::string llm_vision_path ;
7575 std::string diffusion_model_path;
7676 std::string high_noise_diffusion_model_path;
7777 std::string vae_path;
@@ -174,8 +174,8 @@ void print_params(SDParams params) {
174174 printf (" clip_g_path: %s\n " , params.clip_g_path .c_str ());
175175 printf (" clip_vision_path: %s\n " , params.clip_vision_path .c_str ());
176176 printf (" t5xxl_path: %s\n " , params.t5xxl_path .c_str ());
177- printf (" qwen2vl_path : %s\n " , params.qwen2vl_path .c_str ());
178- printf (" qwen2vl_vision_path : %s\n " , params.qwen2vl_vision_path .c_str ());
177+ printf (" llm_path : %s\n " , params.llm_path .c_str ());
178+ printf (" llm_vision_path : %s\n " , params.llm_vision_path .c_str ());
179179 printf (" diffusion_model_path: %s\n " , params.diffusion_model_path .c_str ());
180180 printf (" high_noise_diffusion_model_path: %s\n " , params.high_noise_diffusion_model_path .c_str ());
181181 printf (" vae_path: %s\n " , params.vae_path .c_str ());
@@ -532,14 +532,22 @@ void parse_args(int argc, const char** argv, SDParams& params) {
532532 " --t5xxl" ,
533533 " path to the t5xxl text encoder" ,
534534 ¶ms.t5xxl_path },
535+ {" " ,
536+ " --llm" ,
537+ " path to the llm text encoder. For example: (qwenvl2.5 for qwen-image, mistral-small3.2 for flux2, ...)" ,
538+ ¶ms.llm_path },
539+ {" " ,
540+ " --llm_vision" ,
541+ " path to the llm vit" ,
542+ ¶ms.llm_vision_path },
535543 {" " ,
536544 " --qwen2vl" ,
537- " path to the qwen2vl text encoder " ,
538- ¶ms.qwen2vl_path },
545+ " alias of --llm. Deprecated. " ,
546+ ¶ms.llm_path },
539547 {" " ,
540548 " --qwen2vl_vision" ,
541- " path to the qwen2vl vit " ,
542- ¶ms.qwen2vl_vision_path },
549+ " alias of --llm_vision. Deprecated. " ,
550+ ¶ms.llm_vision_path },
543551 {" " ,
544552 " --diffusion-model" ,
545553 " path to the standalone diffusion model" ,
@@ -1230,7 +1238,7 @@ void parse_args(int argc, const char** argv, SDParams& params) {
12301238 on_relative_tile_size_arg},
12311239 {" " ,
12321240 " --preview" ,
1233- std::string (" preview method. must be one of the following [" ) + previews_str[0 ] + " , " + previews_str[1 ] + " , " + previews_str[2 ] + " , " + previews_str[3 ] + " ] (default is " + previews_str[PREVIEW_NONE] + " )\n " ,
1241+ std::string (" preview method. must be one of the following [" ) + previews_str[0 ] + " , " + previews_str[1 ] + " , " + previews_str[2 ] + " , " + previews_str[3 ] + " ] (default is " + previews_str[PREVIEW_NONE] + " )" ,
12341242 on_preview_arg},
12351243 {" " ,
12361244 " --easycache" ,
@@ -1428,7 +1436,7 @@ std::string get_image_params(SDParams params, int64_t seed) {
14281436 parameter_string += " " + std::string (sd_scheduler_name (params.sample_params .scheduler ));
14291437 }
14301438 parameter_string += " , " ;
1431- for (const auto & te : {params.clip_l_path , params.clip_g_path , params.t5xxl_path , params.qwen2vl_path , params.qwen2vl_vision_path }) {
1439+ for (const auto & te : {params.clip_l_path , params.clip_g_path , params.t5xxl_path , params.llm_path , params.llm_vision_path }) {
14321440 if (!te.empty ()) {
14331441 parameter_string += " TE: " + sd_basename (te) + " , " ;
14341442 }
@@ -1845,8 +1853,8 @@ int main(int argc, const char* argv[]) {
18451853 params.clip_g_path .c_str (),
18461854 params.clip_vision_path .c_str (),
18471855 params.t5xxl_path .c_str (),
1848- params.qwen2vl_path .c_str (),
1849- params.qwen2vl_vision_path .c_str (),
1856+ params.llm_path .c_str (),
1857+ params.llm_vision_path .c_str (),
18501858 params.diffusion_model_path .c_str (),
18511859 params.high_noise_diffusion_model_path .c_str (),
18521860 params.vae_path .c_str (),
0 commit comments