From 67c77799e025a8425c23a6a0599c007f46ded590 Mon Sep 17 00:00:00 2001 From: Ron Evans Date: Tue, 2 May 2023 22:39:51 +0200 Subject: examples : add llama_init_from_gpt_params() common function (#1290) Signed-off-by: deadprogram --- examples/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/common.h') diff --git a/examples/common.h b/examples/common.h index 627696e3..138d0ded 100644 --- a/examples/common.h +++ b/examples/common.h @@ -77,6 +77,12 @@ std::string gpt_random_prompt(std::mt19937 & rng); std::vector 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 // -- cgit v1.2.3