Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed May 31, 2024
1 parent 1d373ba commit 3b76e7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/basellm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ namespace fastllm {
this->kv.push_back(std::make_pair(Data(dataType), Data(dataType)));
}
for (int i = 0; i < kv->size(); i++) {
(*kv)[i].first.ToDevice(DataDevice::CPU);
(*kv)[i].second.ToDevice(DataDevice::CPU);

this->kv[i].first.CopyFrom((*kv)[i].first);
this->kv[i].second.CopyFrom((*kv)[i].second);
}
Expand Down

0 comments on commit 3b76e7a

Please sign in to comment.