Skip to content

Commit

Permalink
Merge branch 'master' into concedo
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Apr 7, 2023
2 parents f322a58 + cc9cee8 commit 43949f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ int main(int argc, char ** argv) {
}

// end of text token
if (embd.back() == llama_token_eos()) {
if (!embd.empty() && embd.back() == llama_token_eos()) {
if (params.instruct) {
is_interacting = true;
} else {
Expand Down

0 comments on commit 43949f7

Please sign in to comment.