examples : add llama_init_from_gpt_params() common function (#1290)
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
0e6cbff1b7
commit
67c77799e0
5 changed files with 51 additions and 76 deletions
|
@ -77,6 +77,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
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue