Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed May 10, 2024
1 parent 4e09375 commit 4c20922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ namespace fastllm {
Data middle;
Cat(qBias, kBias, -1, middle);
Cat(middle, vBias, -1, weight.weight[mergeQkvBiasName]);
weight.weight[mergeQkvBiasName].name = mergeQkvBiasName;
} else {
weight.weight[mergeQkvBiasName] = Data();
}
weight.weight[mergeQkvBiasName].name = mergeQkvBiasName;

weight.weight[mergeQkvWeightName] = Data(q.dataType, {q.dims[0] + k.dims[0] + v.dims[0], q.dims[1]});
Data &mergeQKV = weight.weight[mergeQkvWeightName];
Expand Down
2 changes: 1 addition & 1 deletion src/models/moe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ namespace fastllm {
Data middle;
Cat(qBias, kBias, -1, middle);
Cat(middle, vBias, -1, weight.weight[mergeQkvBiasName]);
weight.weight[mergeQkvBiasName].name = mergeQkvBiasName;
} else {
weight.weight[mergeQkvBiasName] = Data();
}
weight.weight[mergeQkvBiasName].name = mergeQkvBiasName;

weight.weight[mergeQkvWeightName] = Data(q.dataType, {q.dims[0] + k.dims[0] + v.dims[0], q.dims[1]});
Data &mergeQKV = weight.weight[mergeQkvWeightName];
Expand Down

0 comments on commit 4c20922

Please sign in to comment.