Skip to content

Commit

Permalink
llama : refactor llama_model_loader (WIP)
Browse files Browse the repository at this point in the history
wip : remove ggml_ctx from llama_model_loader

wip : merge gguf_file_loader in llama_model_loader
  • Loading branch information
ggerganov committed Aug 16, 2023
1 parent 23248d7 commit 5339b85
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 249 deletions.
8 changes: 0 additions & 8 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -19065,14 +19065,6 @@ enum gguf_type gguf_get_arr_type(struct gguf_context * ctx, int i) {
return ctx->kv[i].value.arr.type;
}

int32_t gguf_get_arr_i32(struct gguf_context * ctx, int key_id, int i) {
return ((int32_t *) ctx->kv[key_id].value.arr.data)[i];
}

float gguf_get_arr_f32(struct gguf_context * ctx, int key_id, int i) {
return ((float *) ctx->kv[key_id].value.arr.data)[i];
}

const void * gguf_get_arr_data(struct gguf_context * ctx, int i) {
return ctx->kv[i].value.arr.data;
}
Expand Down
1 change: 0 additions & 1 deletion ggml.h
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,6 @@ extern "C" {
struct ggml_context * ctx,
struct ggml_tensor * tensor);


GGML_API void ggml_build_forward_expand(struct ggml_cgraph * cgraph, struct ggml_tensor * tensor);

GGML_API struct ggml_cgraph ggml_build_forward (struct ggml_tensor * tensor);
Expand Down
Loading

0 comments on commit 5339b85

Please sign in to comment.