Skip to content

Commit

Permalink
[frontend] Fix tokenizeDeepSeekR1 in TextContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
xlinsist committed Feb 25, 2025
1 parent ed1ee24 commit 277c4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/Interfaces/buddy/LLM/TextContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,11 @@ void Text<T, N>::tokenizeDeepSeekR1(const std::string &vocab, size_t length) {
const int userToken = 151644;
const int assistantToken = 151645;
const int thinkToken = 151648;


tokenCnt = 0;
this->aligned[tokenCnt++] = bos;
this->aligned[tokenCnt++] = bos;
this->aligned[tokenCnt++] = userToken;
tokenCnt = 2;

// Load Vocab
loadVocab(vocab);
Expand Down

0 comments on commit 277c4b8

Please sign in to comment.