aboutsummaryrefslogtreecommitdiff
path: root/utils.cpp
diff options
context:
space:
mode:
authorLuciano <lucianostrika44@gmail.com>2023-03-24 08:05:13 -0700
committerGitHub <noreply@github.com>2023-03-24 17:05:13 +0200
commit8d4a855c241ecb0f3ddc03447fe56002ebf27a37 (patch)
tree4de329fb2849fb6128d05237850b8ceb7519bf36 /utils.cpp
parentb6b268d4415fd3b3e53f22b6619b724d4928f713 (diff)
Add embedding mode with arg flag. Currently working (#282)
* working but ugly * add arg flag, not working on embedding mode * typo * Working! Thanks to @nullhook * make params argument instead of hardcoded boolean. remove useless time check * start doing the instructions but not finished. This probably doesnt compile * Embeddings extraction support --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'utils.cpp')
-rw-r--r--utils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.cpp b/utils.cpp
index 45c9cab..0df89af 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -117,6 +117,10 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
params.model = argv[i];
} else if (arg == "-i" || arg == "--interactive") {
params.interactive = true;
+ } else if (arg == "--embedding") {
+ params.embedding = true;
+ } else if (arg == "--interactive-start") {
+ params.interactive = true;
} else if (arg == "--interactive-first") {
params.interactive_start = true;
} else if (arg == "-ins" || arg == "--instruct") {