Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ungated version of mistral tokenizer #718

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading