Skip to content

Commit 152d9d0

Browse files
authored
finetune : print sample-start/include-sample-start (#5072)
This commit adds `--sample-start` and `--include-sample-start` to the output from the main function in finetune.cpp. The motivation for this is that even though these are set explicitly by the user via the command line, if one forgets to set them then it is useful to have their values printed out. Otherwise it is possible to go through the whole training process before realizing that the values are not what one expected. Signed-off-by: Daniel Bevenius <[email protected]>
1 parent 66d575c commit 152d9d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/finetune/finetune.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,6 +1800,8 @@ int main(int argc, char ** argv) {
18001800
std::vector<size_t> train_samples_begin;
18011801
std::vector<size_t> train_samples_size;
18021802
printf("%s: tokenize training data from %s\n", __func__, params.common.fn_train_data);
1803+
printf("%s: sample-start: %s\n", __func__, params.common.sample_start.c_str());
1804+
printf("%s: include-sample-start: %s\n", __func__, params.common.include_sample_start ? "true" : "false");
18031805
tokenize_file(lctx,
18041806
params.common.fn_train_data,
18051807
params.common.sample_start,

0 commit comments

Comments
 (0)