Skip to content

Commit 1f6d693

Browse files
authored
fix bug for hard_gate_moe proto parse (bytedance#426)
1 parent db48d4e commit 1f6d693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightseq/inference/proto/moe_weight.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ void MoeWeight<OpType_>::proto_get_model_config(const Moe &moe,
106106
std::vector<int> langs2gate_langs;
107107
std::vector<int> langs2gate_gates;
108108
for (int lang : moe.lang2gate().langs()) {
109-
langs2gate_langs.push_back(id);
109+
langs2gate_langs.push_back(lang);
110110
}
111111
for (int gate : moe.lang2gate().gates()) {
112-
langs2gate_gates.push_back(id);
112+
langs2gate_gates.push_back(gate);
113113
}
114114

115115
for (int i = 0; i < langs2gate_langs.size(); i++) {

0 commit comments

Comments
 (0)