Skip to content

Commit

Permalink
Fix T5 model load bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kylo5aby committed Aug 12, 2024
1 parent c21a896 commit 75febe2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,9 @@ struct server_context {
n_ctx = llama_n_ctx(ctx);

add_bos_token = llama_should_add_bos_token(model);
GGML_ASSERT(llama_add_eos_token(model) != 1);
if (!llama_model_has_encoder(model)) {
GGML_ASSERT(llama_add_eos_token(model) != 1);
}

return true;
}
Expand Down

0 comments on commit 75febe2

Please sign in to comment.