Skip to content

Commit

Permalink
llama-cli : skip llama_add_eos_token assertion check in encoder-decod…
Browse files Browse the repository at this point in the history
…er models
  • Loading branch information
sszymczy committed Jun 20, 2024
1 parent 9267a13 commit 968b25e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ int main(int argc, char ** argv) {
}

const bool add_bos = llama_should_add_bos_token(model);
if (!llama_model_has_encoder(model)) {
GGML_ASSERT(llama_add_eos_token(model) != 1);
}
LOG("add_bos: %d\n", add_bos);

std::vector<llama_token> embd_inp;
Expand Down

0 comments on commit 968b25e

Please sign in to comment.