mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-16 11:59:42 +00:00
Fix GPT2 not loading due to graph too small
This commit is contained in:
parent
eb42c73953
commit
a6eb9b8010
8 changed files with 21 additions and 19 deletions
|
@ -455,7 +455,7 @@ bool gpt2_eval(
|
|||
|
||||
|
||||
struct ggml_context * ctx0 = ggml_init(params);
|
||||
struct ggml_cgraph * gf = ggml_new_graph(ctx0);
|
||||
struct ggml_cgraph * gf = ggml_new_graph_custom(ctx0, 8192, false);
|
||||
|
||||
struct ggml_tensor * embd = ggml_new_tensor_1d(ctx0, GGML_TYPE_I32, N);
|
||||
memcpy(embd->data, embd_inp.data(), N*ggml_element_size(embd));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue