Skip to main content

A Byte Pair Encoding (BPE) tokenizer package for CPU and GPU.

Project description

BPE Tokenizer This package provides an implementation of Byte Pair Encoding (BPE) tokenizer, designed to be efficient and fast. It includes training on both CPU and GPU, along with encoding and decoding functionalities.

Features Train BPE tokenizer on CPU and GPU Encode and decode text using the trained tokenizer Save and load merges and vocabulary to/from JSON files Support for special tokens and customizable regex patterns Installation To install the package, use the following command:

pip install machinemind_bpe

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

machinemind_bpe-1.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

machinemind_bpe-1.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for machinemind_bpe-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2a95b90e70ade78e0bcba476b2b8e4a1a0c47515a8d0513bcd74bcfbfe56245c
MD5 f01d48476404ee047ea3439f4b4721ee
BLAKE2b-256 3ed562a19faf06cb52fbc70b2017f28a139113e98c26d28b250649dd4438053a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for machinemind_bpe-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ec305758c91ea882d01f9545203673742422efec1170751f8a73b1a9c5bab59
MD5 5be44f19f9573816a26b05cdb64ebdda
BLAKE2b-256 6c2258888443aaf5eb30c729e40057988953066fb3362af33b1079c87805baaa

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