Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Revert oups (I though copilot hallucinated smt)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBoxing committed May 28, 2023
1 parent 7b06bb9 commit ec197c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/llm-base/src/vocabulary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ impl ModelVocabulary {
let mut vec = vec![];

for token in tokens {
if skip_special_tokens && token == 1 {
continue;
}

vec.append(&mut self.id_to_token[token as usize].to_vec());
}

Expand Down

0 comments on commit ec197c1

Please sign in to comment.