@@ -1489,7 +1489,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
14891489 [](common_params & params, int value) {
14901490 params.n_chunks = value;
14911491 }
1492- ).set_examples ({LLAMA_EXAMPLE_IMATRIX, LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_RETRIEVAL}));
1492+ ).set_examples ({LLAMA_EXAMPLE_IMATRIX, LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE, LLAMA_EXAMPLE_RETRIEVAL}));
14931493 add_opt (common_arg (
14941494 {" -fa" , " --flash-attn" },
14951495 string_format (" enable Flash Attention (default: %s)" , params.flash_attn ? " enabled" : " disabled" ),
@@ -1551,7 +1551,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
15511551 }
15521552 params.in_files .push_back (value);
15531553 }
1554- ).set_examples ({LLAMA_EXAMPLE_IMATRIX}));
1554+ ).set_examples ({LLAMA_EXAMPLE_IMATRIX, LLAMA_EXAMPLE_FINETUNE }));
15551555 add_opt (common_arg (
15561556 {" -bf" , " --binary-file" }, " FNAME" ,
15571557 " binary file containing the prompt (default: none)" ,
@@ -2637,9 +2637,9 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
26372637 {" -o" , " --output" , " --output-file" }, " FNAME" ,
26382638 string_format (" output file (default: '%s')" , params.out_file .c_str ()),
26392639 [](common_params & params, const std::string & value) {
2640- params.out_file = value;
2640+ params.out_file = value;
26412641 }
2642- ).set_examples ({LLAMA_EXAMPLE_IMATRIX, LLAMA_EXAMPLE_CVECTOR_GENERATOR, LLAMA_EXAMPLE_EXPORT_LORA, LLAMA_EXAMPLE_TTS}));
2642+ ).set_examples ({LLAMA_EXAMPLE_IMATRIX, LLAMA_EXAMPLE_CVECTOR_GENERATOR, LLAMA_EXAMPLE_EXPORT_LORA, LLAMA_EXAMPLE_TTS, LLAMA_EXAMPLE_FINETUNE }));
26432643 add_opt (common_arg (
26442644 {" -ofreq" , " --output-frequency" }, " N" ,
26452645 string_format (" output the imatrix every N iterations (default: %d)" , params.n_out_freq ),
@@ -3511,5 +3511,45 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
35113511 ).set_examples ({ LLAMA_EXAMPLE_DIFFUSION }));
35123512
35133513
3514+ add_opt (common_arg (
3515+ {" --dataset-format" }, " " ,
3516+ string_format (" type of input data (e.g., 'text', 'parquet') (default: %s)" , params.dataset_format .c_str ()),
3517+ [](common_params & params, const std::string & format) {
3518+ params.dataset_format = format; // TODO ENUM CLASS
3519+ }
3520+ ).set_examples ({LLAMA_EXAMPLE_FINETUNE}));
3521+
3522+ add_opt (common_arg (
3523+ {" --max-seq-len" }, " " ,
3524+ string_format (" max sequence length (default: %d)" , params.max_seq_len ),
3525+ [](common_params & params, int32_t max_seq_len) {
3526+ params.max_seq_len = max_seq_len;
3527+ }
3528+ ).set_examples ({LLAMA_EXAMPLE_FINETUNE}));
3529+
3530+ add_opt (common_arg (
3531+ {" --pre-tokenized" },
3532+ string_format (" input file contains pre-tokenized data (space-separated token IDs)" ),
3533+ [](common_params & params) {
3534+ params.pre_tokenized = true ;
3535+ }
3536+ ).set_examples ({LLAMA_EXAMPLE_FINETUNE}));
3537+
3538+ add_opt (common_arg (
3539+ {" --preview" },
3540+ string_format (" read and print metadata and first sequence from the output GGUF file (enables preview)" ),
3541+ [](common_params & params) {
3542+ params.do_preview = true ;
3543+ }
3544+ ).set_examples ({LLAMA_EXAMPLE_FINETUNE}));
3545+
3546+ add_opt (common_arg (
3547+ {" --dataset-column" }, " <name>" ,
3548+ string_format (" column name for data in dataset files" ),
3549+ [](common_params & params, const std::string &dataset_column) {
3550+ params.dataset_column = dataset_column;
3551+ }
3552+ ).set_examples ({LLAMA_EXAMPLE_FINETUNE}));
3553+
35143554 return ctx_arg;
35153555}
0 commit comments