summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2024-01-22 12:11:01 +0100
committerGitHub <noreply@github.com>2024-01-22 13:11:01 +0200
commit152d9d05e097e35f1cac21262946d57faec7542a (patch)
tree2fa9457611ba29aee4d3fe8eb3f36dd7380da2a3 /examples
parent66d575c45c5a370d668f9c3283cdf348e2329fa2 (diff)
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 <daniel.bevenius@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/finetune/finetune.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/finetune/finetune.cpp b/examples/finetune/finetune.cpp
index 11fcbf44..b7e19c5f 100644
--- a/examples/finetune/finetune.cpp
+++ b/examples/finetune/finetune.cpp
@@ -1800,6 +1800,8 @@ int main(int argc, char ** argv) {
std::vector<size_t> train_samples_begin;
std::vector<size_t> train_samples_size;
printf("%s: tokenize training data from %s\n", __func__, params.common.fn_train_data);
+ printf("%s: sample-start: %s\n", __func__, params.common.sample_start.c_str());
+ printf("%s: include-sample-start: %s\n", __func__, params.common.include_sample_start ? "true" : "false");
tokenize_file(lctx,
params.common.fn_train_data,
params.common.sample_start,