Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed Jun 20, 2024
1 parent 28e79e3 commit 48ad56a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/models/basellm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,11 +783,12 @@ auto st = std::chrono::system_clock::now();
*pastKeyValue1, generationConfigs[0], tokensManager, logits[0])};
st += curLen;
}
} else {
ret = std::vector <int> {model->Forward(inputIds,
} else {
ret = std::vector <int> {model->Forward(inputIds,
attentionMasks[0] == nullptr ? Data() : *attentionMasks[0],
*positionIds[0],
*pastKeyValue1, generationConfigs[0], tokensManager, logits[0])};
}
}
/*
PrintProfiler();
Expand Down

0 comments on commit 48ad56a

Please sign in to comment.