1
0
Fork 0
mirror of https://gitlab.com/niansa/libjustlm.git synced 2025-03-06 20:49:17 +01:00

Removed now-dead allocation from mpt_model

This commit is contained in:
niansa 2023-05-16 23:56:37 +02:00
parent 8fbbf58622
commit e489f0f53c

View file

@ -85,16 +85,9 @@ struct mpt_model {
struct ggml_context * ctx;
std::map<std::string, struct ggml_tensor *> tensors;
size_t eval_buf_size = 256u*1024*1024;
void *eval_buf;
mpt_buffer buf;
mpt_model() {
eval_buf = malloc(eval_buf_size);
}
~mpt_model() {
free(eval_buf);
if (ctx) {
ggml_free(ctx);
}