Skip to content

Conversation

b00f
Copy link
Contributor

@b00f b00f commented Aug 6, 2025

This PR adds CLI with two subcommands:

  1. Tokenize: To tokenize a text using a given model
  2. Train: To train a new tokenize model

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! we probably need to update the CI build release to make sure it exposes the bin as well!

vocab_size,
output,
} => {
use tokenizers::models::bpe::{BpeTrainer, BPE};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably want to add all flavors here no? Unigram etc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what do you mean, could you please explain more?

@sftse sftse mentioned this pull request Aug 29, 2025
@Narsil
Copy link
Collaborator

Narsil commented Sep 4, 2025

If it's that small, and adds new dependencies, I feel like it should be it's own crate. tokenizers is a library, it shouldn't be a CLI as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants