mirror of https://github.com/google/gemma.cpp.git
Make gemma_test slightly more allowing on MultiTurn.
PiperOrigin-RevId: 668097277
This commit is contained in:
parent
2308514e5a
commit
3c17911875
|
|
@ -185,7 +185,10 @@ TEST_F(GemmaTest, Multiturn) {
|
||||||
dialog.clear();
|
dialog.clear();
|
||||||
model->Generate(runtime_config, tokens, abs_pos, s_env->MutableKVCache(),
|
model->Generate(runtime_config, tokens, abs_pos, s_env->MutableKVCache(),
|
||||||
timing_info);
|
timing_info);
|
||||||
EXPECT_TRUE(dialog.find("turquoise") != std::string::npos); // NOLINT
|
fprintf(stderr, "decoded: %s\n", dialog.c_str());
|
||||||
|
bool remembered_turquoise = dialog.find("turquoise") != std::string::npos;
|
||||||
|
bool remembered_car = dialog.find("car") != std::string::npos;
|
||||||
|
EXPECT_TRUE(remembered_turquoise || remembered_car);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char kJingleBells[] = R"(
|
static const char kJingleBells[] = R"(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue