mirror of https://github.com/google/gemma.cpp.git
fix prefill feedback off-by-1, update fetch commit hash
This commit is contained in:
parent
4aa8d0584e
commit
72247614bb
|
|
@ -33,7 +33,7 @@ if (BUILD_MODE STREQUAL "local")
|
|||
# Relative path to gemma.cpp from examples/hello_world/build/
|
||||
FetchContent_Declare(gemma SOURCE_DIR ../../..)
|
||||
else()
|
||||
FetchContent_Declare(gemma GIT_REPOSITORY https://github.com/google/gemma.cpp.git GIT_TAG 8c7b2cf61b9794b806de091685dc6739dd3db837)
|
||||
FetchContent_Declare(gemma GIT_REPOSITORY https://github.com/google/gemma.cpp.git GIT_TAG a9aa63fd2ea6b786ed0706d619588bfe2d43370e)
|
||||
endif()
|
||||
FetchContent_MakeAvailable(gemma)
|
||||
|
||||
|
|
|
|||
2
run.cc
2
run.cc
|
|
@ -119,7 +119,7 @@ void ReplGemma(gcpp::Gemma& model, gcpp::KVCache& kv_cache,
|
|||
verbosity](int token, float) {
|
||||
++abs_pos;
|
||||
++current_pos;
|
||||
if (current_pos <= prompt_size) {
|
||||
if (current_pos < prompt_size) {
|
||||
std::cerr << "." << std::flush;
|
||||
} else if (token == gcpp::EOS_ID) {
|
||||
if (!args.multiturn) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue