diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-03-19 18:37:02 +0200 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-03-19 18:37:02 +0200 |
commit | 9e1707218a24ff758c7b623594f8c0ce5e12eb6c (patch) | |
tree | 447133611f8c25f06d50174d29e415930d6ebeeb /utils.h | |
parent | 22213a17b56336bbea384a572a9484ce208c0333 (diff) |
Add "--instruct" argument for usage with Alpaca (#240)
Also start adding prompts in "./prompts"
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,14 +27,14 @@ struct gpt_params { int32_t n_batch = 8; // batch size for prompt processing - std::string model = "models/lamma-7B/ggml-model.bin"; // model path - std::string prompt; + std::string model = "models/lamma-7B/ggml-model.bin"; // model path + std::string prompt = ""; + std::string antiprompt = ""; // string upon seeing which more user input is prompted bool use_color = false; // use color to distinguish generations and inputs bool interactive = false; // interactive mode - bool interactive_start = false; // reverse prompt immediately - std::string antiprompt = ""; // string upon seeing which more user input is prompted + bool instruct = false; // instruction mode (used for Alpaca models) }; bool gpt_params_parse(int argc, char ** argv, gpt_params & params); |