@@ -246,7 +246,7 @@ struct train_context {
246
246
struct ctrl_params {
247
247
/* default meta parameters */
248
248
int n_completions = INT_MAX;
249
- int n_pca_batch = 5 ;
249
+ int n_pca_batch = 20 ;
250
250
int n_pca_iterations = 1000 ;
251
251
252
252
/* default filepaths */
@@ -294,6 +294,7 @@ static std::string to_string(const T & val) {
294
294
}
295
295
296
296
static void print_usage (const char * executable) {
297
+ struct ctrl_params defaults;
297
298
printf (" \n " );
298
299
printf (" usage: %s [options] -m <model> [gpt-opts]" , executable);
299
300
printf (" \n " );
@@ -302,19 +303,19 @@ static void print_usage(const char * executable) {
302
303
printf (" options:\n " );
303
304
printf (" -h, --help show this help message and exit\n " );
304
305
printf (" -o, --outfile output file\n " );
305
- printf (" default: 'control_vector.gguf' \n " );
306
+ printf (" default: %s \n " , defaults. outfile . c_str () );
306
307
printf (" -pf, --positive-file positive prompts file, one prompt per line\n " );
307
- printf (" default: 'examples/control-vector-generator/positive.txt' \n " );
308
+ printf (" default: %s \n " , defaults. positive_prompts_file . c_str () );
308
309
printf (" -nf, --negative-file negative prompts file, one prompt per line\n " );
309
- printf (" default: 'examples/control-vector-generator/negative.txt' \n " );
310
+ printf (" default: %s \n " , defaults. negative_prompts_file . c_str () );
310
311
printf (" -cf, --completions-file completions file\n " );
311
- printf (" default: 'examples/control-vector-generator/completions.txt' \n " );
312
+ printf (" default: %s \n " , defaults. completions_file . c_str () );
312
313
printf (" -nc, --num-completions N number of lines of completions file to use\n " );
313
- printf (" default: 64 \n " );
314
- printf (" --batch-pca N batch size used for PCA\n " );
315
- printf (" default: 5 \n " );
314
+ printf (" default: use all lines \n " );
315
+ printf (" --batch-pca N batch size used for PCA. Larger batch runs faster, but uses more memory \n " );
316
+ printf (" default: %d \n " , defaults. n_pca_batch );
316
317
printf (" --iter-pca N number of iterations used for PCA\n " );
317
- printf (" default: 1000 \n " );
318
+ printf (" default: %d \n " , defaults. n_pca_iterations );
318
319
printf (" \n " );
319
320
printf (" gpt-opts:\n " );
320
321
printf (" other options from main\n " );
0 commit comments