Skip to content

Commit

Permalink
Merge pull request ztxz16#424 from hadoop2xu/fix-minicpm
Browse files Browse the repository at this point in the history
fix minicpm
  • Loading branch information
ztxz16 authored Mar 1, 2024
2 parents 3728911 + 0e94794 commit 8f77cba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models/minicpm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ namespace fastllm {
this->user_role = "### Instruction:\n";
this->bot_role = "\n\n### Response:";
*/
this->history_sep = "</s>";
this->history_sep = "";
this->pre_prompt = "";
this->user_role = "";
this->bot_role = "";

block_cnt = 32;
rotary_dim = 128;
block_cnt = 40;
rotary_dim = 64;

sin.resize(max_positions);
cos.resize(max_positions);
Expand Down Expand Up @@ -1074,7 +1074,7 @@ namespace fastllm {
context->Init(this->block_cnt);

context->currentTokens = inputTokens;
//context->currentTokens.insert(context->currentTokens.begin(), this->bos_token_id);
context->currentTokens.insert(context->currentTokens.begin(), this->bos_token_id);
context->generationConfig = generationConfig;
context->tokens = LastTokensUnit(generationConfig.last_n);
dictLocker.unlock();
Expand Down

0 comments on commit 8f77cba

Please sign in to comment.