Skip to content

Commit

Permalink
Use ungated version of mistral tokenizer (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Apr 20, 2024
1 parent 992f643 commit 1a9964f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tokenizers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2986,7 +2986,7 @@ export class PreTrainedTokenizer extends Callable {
* ```javascript
* import { AutoTokenizer } from "@xenova/transformers";
*
* const tokenizer = await AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1");
* const tokenizer = await AutoTokenizer.from_pretrained("Xenova/mistral-tokenizer-v1");
*
* const chat = [
* { "role": "user", "content": "Hello, how are you?" },
Expand Down
2 changes: 1 addition & 1 deletion tests/generate_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
'basic',
],

'mistralai/Mistral-7B-Instruct-v0.1': [
'Xenova/mistral-tokenizer-v1': [
'basic',
],

Expand Down
2 changes: 1 addition & 1 deletion tests/tokenizers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ describe('Extra decoding tests', () => {

describe('Chat templates', () => {
it('should generate a chat template', async () => {
const tokenizer = await AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1");
const tokenizer = await AutoTokenizer.from_pretrained("Xenova/mistral-tokenizer-v1");

const chat = [
{ "role": "user", "content": "Hello, how are you?" },
Expand Down

0 comments on commit 1a9964f

Please sign in to comment.