Spaces:
Sleeping
Sleeping
extern "C" { | |
void *llama2_init(char *model_path, char *tokenizer_path); | |
void llama2_free(void *ctx); | |
int llama2_generate(void *ctx, char *prompt, int steps, float temperature, float topp, int seed); | |
char *llama2_get_last(void *ctx); | |
void llama2_tokenize(void *ctx, char *text, int8_t bos, int8_t eos, int *tokens, int *n_tokens); | |
} | |