Skip to content

A web app to compare pre-built or self-built tokenizers

License

Notifications You must be signed in to change notification settings

art-test-stack/tokenizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stargazers MIT License LinkedIn


Logo

Tokenizer

This project does not have as purpose to be used to develop tokenizers. I just aim to develop this framework by myself to get a better understanding of how tokenizers work, by implementing in different ways, and comparing to performing ones, such as Tiktoken.
Explore the docs »

Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

Built With

Backend Frontend
Server PythonFastAPI TypeScriptNextJS
Libraries/Frameworks TqdmRegex React
Tokenizers HuggingFaceTiktoken

Getting Started

Installation

  1. Clone the repo
    git clone git@github.com:art-test-stack/tokenizer.git
  2. Run the Python server
  • Create a virtual environment

    For example I use virtualenv:

virtualenv -p python 3.10 venv
  • Install pip packages
pip install -r requirements.txt
  • Run the server
uvicorn main:app --reload --host 0.0.0.0 --port 8000
  1. Run the web app in another shell
npm run start

Roadmap

  • [ ]

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Arthur Testard - testardarthur@gmail.com

Project Link: https://github.com/art-test-stack/tokenizer

(back to top)