https://github.com/ggerganov/llama.cpp/wiki/GGML-Tips-&-Tricks
If you follow this link, an error will appear after you modify it.
/media/harijizhang/793D8F946E3470B9/llama.cpp/llama.cpp: In function ‘int llama_decode_internal(llama_context&, llama_batch)’: /media/harijizhang/793D8F946E3470B9/llama.cpp/llama.cpp:7229:9: error: ‘n_past’ was not declared in this scope 7229 | if (n_past % 45 == 0) { | ^~~~~~ gmake[2]: *** [CMakeFiles/llama.dir/build.make:76:CMakeFiles/llama.dir/llama.cpp.o] 错误 1 gmake[1]: *** [CMakeFiles/Makefile2:732:CMakeFiles/llama.dir/all] 错误 2 gmake: *** [Makefile:146:all] 错误 2 The compilation failed because it is incompatible with the current llama.cpp