Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed Apr 23, 2024
1 parent 7c82d24 commit 36f2c02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/basellm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ namespace fastllm {
for (int i = 0; i < block_cnt; i++) {
pastKeyValues.push_back(std::make_pair(Data(DataType::FLOAT32),
Data(DataType::FLOAT32)));
pastKeyValues.back().first.SetKVCache();
pastKeyValues.back().second.SetKVCache();
}

std::vector <std::map <std::string, int> > params;
Expand Down

0 comments on commit 36f2c02

Please sign in to comment.