diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2026-08-16 11:42:16 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2026-08-16 11:42:16 +0800 |
| commit | 01b9c204777c3f7e541241180bac0d3d93721af0 (patch) | |
| tree | f8b6898d41d6f94da7a29960b9a436c7562b4d96 /llm.h | |
| parent | fe4e5958572a029c6f2d2831aa7cfd8a8671ce21 (diff) | |
| download | lex-01b9c204777c3f7e541241180bac0d3d93721af0.tar.gz | |
Optimize KV cache and compute buffers, bench results from Pi5.
Diffstat (limited to 'llm.h')
| -rw-r--r-- | llm.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -3,11 +3,9 @@ #include "llama.h" -struct llama_model *llm_init(const char *model_path); - -void llm_process_request(struct llama_model *model, - const char *user_prompt, FILE *out); - -void llm_free(struct llama_model *model); +struct llm_ctx; +struct llm_ctx *llm_init(const char *model_path); +void llm_run(struct llm_ctx *ctx, const char *prompt, FILE *out); +void llm_free(struct llm_ctx *ctx); #endif /* LLM_H */ |
