Skip to content

how to use GGML-Tips-&-Tricks in new code? #4819

@hariji814

Description

@hariji814

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions