summaryrefslogtreecommitdiff
path: root/examples/common.h
diff options
context:
space:
mode:
authorRon Evans <ron@hybridgroup.com>2023-05-02 22:39:51 +0200
committerGitHub <noreply@github.com>2023-05-02 23:39:51 +0300
commit67c77799e025a8425c23a6a0599c007f46ded590 (patch)
tree4619ab8a7e1ac62079f1f5f912c0022d2c019d13 /examples/common.h
parent0e6cbff1b7509628c588e661166f6e187137734d (diff)
examples : add llama_init_from_gpt_params() common function (#1290)
Signed-off-by: deadprogram <ron@hybridgroup.com>
Diffstat (limited to 'examples/common.h')
-rw-r--r--examples/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/common.h b/examples/common.h
index 627696e3..138d0ded 100644
--- a/examples/common.h
+++ b/examples/common.h
@@ -78,6 +78,12 @@ std::string gpt_random_prompt(std::mt19937 & rng);
std::vector<llama_token> llama_tokenize(struct llama_context * ctx, const std::string & text, bool add_bos);
//
+// Model utils
+//
+
+struct llama_context * llama_init_from_gpt_params(const gpt_params & params);
+
+//
// Console utils
//