Skip to content

Commit

Permalink
fixup! Small refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
sftse authored Dec 28, 2024
1 parent 0557a1d commit 0963525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokenizers/src/models/bpe/trainer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ impl BpeTrainer {

// Also include anything from the provided initial alphabet
for c in &self.initial_alphabet {
*alphabet.entry(*c).or_default() += usize::MAX;
*alphabet.entry(*c).or_default() = usize::MAX;
}

let mut kept = alphabet.iter().collect::<Vec<_>>();
Expand Down

0 comments on commit 0963525

Please sign in to comment.