-
Last example I saw was #589 (comment) and it appears the codebase has changed so much that it appears it no longer resides in llama.cpp/src/llama-context.cpp Lines 1045 to 1048 in 982e347 Uncommenting that code throws the following error as well /opt/llama.cpp/src/llama-context.cpp: In member function ‘int llama_context::decode(const llama_batch&)’:
/opt/llama.cpp/src/llama-context.cpp:1046:13: error: ‘n_past’ was not declared in this scope
1046 | if (n_past%100 == 0) {
| ^~~~~~
/opt/llama.cpp/src/llama-context.cpp:1047:33: error: ‘gf’ was not declared in this scope
1047 | ggml_graph_dump_dot(gf, NULL, "llama.dot");
| Do we have an updated example for generating the dot file? I'm trying to visualise the cgraph |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Ouch, this is the risk of keeping commented out code. :) This returns the graph result, llama.cpp/src/llama-context.cpp Line 1012 in 982e347 Unsure what |
Beta Was this translation helpful? Give feedback.
Unfortunate. I poked around further and did this patch since I'm testing our IBM Granite model: