Skip to content

Commit 5339b85

Browse files
committed
llama : refactor llama_model_loader (WIP)
wip : remove ggml_ctx from llama_model_loader wip : merge gguf_file_loader in llama_model_loader
1 parent 23248d7 commit 5339b85

File tree

3 files changed

+208
-249
lines changed

3 files changed

+208
-249
lines changed

ggml.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19065,14 +19065,6 @@ enum gguf_type gguf_get_arr_type(struct gguf_context * ctx, int i) {
1906519065
return ctx->kv[i].value.arr.type;
1906619066
}
1906719067

19068-
int32_t gguf_get_arr_i32(struct gguf_context * ctx, int key_id, int i) {
19069-
return ((int32_t *) ctx->kv[key_id].value.arr.data)[i];
19070-
}
19071-
19072-
float gguf_get_arr_f32(struct gguf_context * ctx, int key_id, int i) {
19073-
return ((float *) ctx->kv[key_id].value.arr.data)[i];
19074-
}
19075-
1907619068
const void * gguf_get_arr_data(struct gguf_context * ctx, int i) {
1907719069
return ctx->kv[i].value.arr.data;
1907819070
}

ggml.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,6 @@ extern "C" {
14991499
struct ggml_context * ctx,
15001500
struct ggml_tensor * tensor);
15011501

1502-
15031502
GGML_API void ggml_build_forward_expand(struct ggml_cgraph * cgraph, struct ggml_tensor * tensor);
15041503

15051504
GGML_API struct ggml_cgraph ggml_build_forward (struct ggml_tensor * tensor);

0 commit comments

Comments
 (0)