Skip to content

An additional option to view the actual tokenized text #4

@oostopitre

Description

@oostopitre

Hi Simon - thanks for the nifty tooling. So useful when debugging with these models.

Would like do a feature request to add an option to view the actual tokenized text (bytes produced).
It would be quick to do it from ttok with the other functionality it provides for quick exploration at the command line.
Would also be easy to compare the differences in tokenization from different model variants easily.

Example:

echo -n "this tool is much fineness!" | ttok --bytes
# [b'this', b' tool', b' is', b' much', b' fin', b'eness', b'!']

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions