Skip to content

Commit f5b8622

Browse files
committed
Copy usage output for control-vector params to server.cpp
1 parent f0722b1 commit f5b8622

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/server/server.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,12 @@ static void server_print_usage(const char * argv0, const gpt_params & params, co
22162216
printf(" set an alias for the model, will be added as `model` field in completion response\n");
22172217
printf(" --lora FNAME apply LoRA adapter (implies --no-mmap)\n");
22182218
printf(" --lora-base FNAME optional model to use as a base for the layers modified by the LoRA adapter\n");
2219+
printf(" --control-vector FNAME\n");
2220+
printf(" add a control vector\n");
2221+
printf(" --control-vector-scaled FNAME S\n");
2222+
printf(" add a control vector with user defined scaling S\n");
2223+
printf(" --control-vector-layer-range START END\n");
2224+
printf(" layer range to apply the control vector(s) to, start and end inclusive\n");
22192225
printf(" --host ip address to listen (default (default: %s)\n", sparams.hostname.c_str());
22202226
printf(" --port PORT port to listen (default (default: %d)\n", sparams.port);
22212227
printf(" --path PUBLIC_PATH path from which to serve static files (default: disabled)\n");

0 commit comments

Comments
 (0)