Skip to content

Commit

Permalink
Fix msvc compile issues (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhenzhong1 committed Oct 17, 2023
1 parent 40bfe3d commit 87b00d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ int main(int argc, char** argv) {
std::string prompt = build_prompt_glm2(prompts);
embd_inp = ::model_tokenize(ctx, prompt, false);
embd_inp.insert(embd_inp.begin(), {64790, 64792}); // special prefix
} else if (params.model_arch == MODEL_CHATGLM or params.model_arch == MODEL_BAICHUAN) {
} else if (params.model_arch == MODEL_CHATGLM || params.model_arch == MODEL_BAICHUAN) {
for (auto& i : params.ids) {
embd_inp.emplace_back(i);
}
Expand Down

0 comments on commit 87b00d8

Please sign in to comment.