Skip to main content

Library for manipulating the existing tokenizer.

Project description

Tokenizer-Changer

Python script for manipulating the existing tokenizer.

The solution was tested on Llama3-8B tokenizer.

Installation

Installation from PyPI:

pip install tokenizerchanger

Requirements

  • Python 3.9+
  • tokenizers>=0.21.0
  • transformers>=4.47.0
  • tqdm>=4.66.4

Docs

https://tokenizer-changer.readthedocs.io/en/latest/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tokenizerchanger-1.0.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tokenizerchanger-1.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file tokenizerchanger-1.0.1.tar.gz.

File metadata

  • Download URL: tokenizerchanger-1.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for tokenizerchanger-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2c949ea4710b44aaea964043dc581b611f518cb0c28d336992a87c98fd9e724c
MD5 de52b70d00313f2cf78f801410c57bf1
BLAKE2b-256 35481ba8497bdeedb20da845f3bad53b24d4084d5b6218bb62baa73bbd40eba9

See more details on using hashes here.

File details

Details for the file tokenizerchanger-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tokenizerchanger-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06093bb8f43cb58b39ec412912dcccfc8279787435b0d8f39035da86fa20e572
MD5 6b5d22767cd8647bec03ca65a7d8c05c
BLAKE2b-256 3a79730c88cd270d16025c2f028a9c992e875cdd6f7784859ae250581c66ffd4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page