Skip to content

Commit

Permalink
fix(llama.cpp): wrongly index for n_seq in warmup
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Nov 5, 2023
1 parent c7c67c2 commit 64e0abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/llama-cpp-bindings/src/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class TextInferenceEngineImpl : public TextInferenceEngine {
for (int i = 0; i < batch_.n_tokens; ++i) {
batch_.token[i] = 0;
batch_.pos[i] = i;
batch_.n_seq_id[0] = 1;
batch_.n_seq_id[i] = 1;
batch_.seq_id[i][0] = 0;
batch_.logits[i] = false;
}
Expand Down

0 comments on commit 64e0abb

Please sign in to comment.