Skip to content

Commit

Permalink
Update tokenizers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Jan 12, 2024
1 parent 935274f commit 2df14fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenizers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2463,7 +2463,7 @@ export class PreTrainedTokenizer extends Callable {
this.sep_token = this.getToken('sep_token');
this.sep_token_id = this.model.tokens_to_ids.get(this.sep_token);

this.unk_token = this.getToken(tokenizerConfig, 'unk_token');
this.unk_token = this.getToken('unk_token');
this.unk_token_id = this.model.tokens_to_ids.get(this.unk_token);

this.model_max_length = tokenizerConfig.model_max_length;
Expand Down

0 comments on commit 2df14fc

Please sign in to comment.