summaryrefslogtreecommitdiffstats
path: root/llm.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2026-08-16 11:42:16 +0800
committerSadeep Madurange <sadeep@asciimx.com>2026-08-16 11:42:16 +0800
commit01b9c204777c3f7e541241180bac0d3d93721af0 (patch)
treef8b6898d41d6f94da7a29960b9a436c7562b4d96 /llm.h
parentfe4e5958572a029c6f2d2831aa7cfd8a8671ce21 (diff)
downloadlex-01b9c204777c3f7e541241180bac0d3d93721af0.tar.gz
Optimize KV cache and compute buffers, bench results from Pi5.
Diffstat (limited to 'llm.h')
-rw-r--r--llm.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/llm.h b/llm.h
index 5bec282..dfe5c39 100644
--- a/llm.h
+++ b/llm.h
@@ -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 */