-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tokenizer.cpp CLI tool have nicer command line arguments.
Tokenizer used to take arguments like this: tokenize MODEL_FILENAME PROMPT [--ids] And it would load the model, read the prompt, and then print a list of tokens it interpreted, or if --ids was given, just the integer values. This changeset makes the command line arguments more sophisticated: tokenize [--model MODEL_FILENAME] [--ids] [--stdin] [--prompt] [--file] [--no-bos] It will still recognize the old form just to not surprise people.
- Loading branch information
Showing
1 changed file
with
237 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters