File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Original file line number Diff line number Diff line change @@ -1220,16 +1220,23 @@ bool gpt_params_parse_ex(int argc, char ** argv, gpt_params & params) {
1220
1220
throw std::invalid_argument (" error: unknown argument: " + arg);
1221
1221
}
1222
1222
}
1223
+
1223
1224
if (invalid_param) {
1224
1225
throw std::invalid_argument (" error: invalid parameter for argument: " + arg);
1225
1226
}
1227
+
1226
1228
if (params.prompt_cache_all &&
1227
1229
(params.interactive || params.interactive_first ||
1228
1230
params.instruct )) {
1229
1231
1230
1232
throw std::invalid_argument (" error: --prompt-cache-all not supported in interactive mode yet\n " );
1231
1233
}
1232
1234
1235
+ // short-hand to avoid specifying --hf-file -> default it to --model
1236
+ if (!params.hf_repo .empty () && params.hf_file .empty ()) {
1237
+ params.hf_file = params.model ;
1238
+ }
1239
+
1233
1240
if (params.escape ) {
1234
1241
process_escapes (params.prompt );
1235
1242
process_escapes (params.input_prefix );
You can’t perform that action at this time.
0 commit comments