Skip to main content

No project description provided

Project description

Gigatok

400x faster than HuggingFace, drop-in replacement.

Tokenize your text data at GB/s!

Install

pip install gigatok

How does Gigatok work?

Gigatok came from a few observations:

  • A majority of the time in current tokenizers is spent on pretokenization ->

Gigatok implements pretokenizers that run at >2GB/s/thread

Gigatok is faster than other libraries due to algorithmic and systems changes. One key benefit of using Gigatok is that it replaces the regex expression used by almost all tokenizers to do pre-tokenization with a custom implementation of the exact same method. This is a serious bottleneck for other implementations, and is a big part in this library's breakneck speeds. Additionally, Gigatok uses concurrent data structures to use multiprocessing in more places.

* All reference speeds in this section are measured on an M4 Pro CPU

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

gigatok-0.1.1.tar.gz (478.8 kB view details)

Uploaded Source

Built Distributions

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

gigatok-0.1.1-cp310-abi3-win_arm64.whl (909.6 kB view details)

Uploaded CPython 3.10+Windows ARM64

gigatok-0.1.1-cp310-abi3-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

gigatok-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

gigatok-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

gigatok-0.1.1-cp310-abi3-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

gigatok-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file gigatok-0.1.1.tar.gz.

File metadata

  • Download URL: gigatok-0.1.1.tar.gz
  • Upload date:
  • Size: 478.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gigatok-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fa3ced28934635cc02fa73eec833bb3c56025c62cebff7300ac9184f0f003a6a
MD5 5058ee08b66b3a1aec57edf45cbc3104
BLAKE2b-256 fe3ce4d9b99ba73ad0c8148f6109542330612a3f1ca64b07e7e2d23a26266474

See more details on using hashes here.

File details

Details for the file gigatok-0.1.1-cp310-abi3-win_arm64.whl.

File metadata

  • Download URL: gigatok-0.1.1-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 909.6 kB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gigatok-0.1.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a9acccf4bbc238146ea8814a18b5e9f6f3591d15e5f468e537a89b6bc086d155
MD5 4efe6d36769b0b165ffefbc2b8a41dfb
BLAKE2b-256 9cb1ac7c23c6ebc191f47756fc23a97b1a98eca3869740fcedae9d2798ee9d88

See more details on using hashes here.

File details

Details for the file gigatok-0.1.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: gigatok-0.1.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gigatok-0.1.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 189090073b1bad8a93479763d42a15c717cb4c675f96fe1b565500278e6265a5
MD5 6b7ef6039c69fd9d94d433271d308d69
BLAKE2b-256 94408344757d20986c8618649cf29ac72f31a7c877e7e3434d2f8b049bb6b360

See more details on using hashes here.

File details

Details for the file gigatok-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: gigatok-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gigatok-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34ee1c4152183102eea51fd06937be155cc71844d20f1b48b6bef9def18571f0
MD5 3bc0637cd93533fbc2defb14a227639c
BLAKE2b-256 4cdddd7c63b449f4078320286a0bed1bb3c9770cb9880392ed3b42176b1ce3f4

See more details on using hashes here.

File details

Details for the file gigatok-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

  • Download URL: gigatok-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gigatok-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 af1135f2b08d3d40dfff2c5e347e169de252ae80782841bc5c7654a424cdc344
MD5 930106539821bc24caa6cb63bf6b335a
BLAKE2b-256 9db0dddbe3bc335b41fcf7b8b664653e254e7798397566cecf3873eeb2efbebb

See more details on using hashes here.

File details

Details for the file gigatok-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: gigatok-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gigatok-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 478d22f57d594a65701d73ebec94ff384140c80b62fa2b13eab3e888f82d4b2c
MD5 646627b4d11a7811af79ea1f88c520fc
BLAKE2b-256 ce3973e1f0ddd23b27a8beb16b0c30aba6b796e7b5c63d178e1833e98cd78367

See more details on using hashes here.

File details

Details for the file gigatok-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: gigatok-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gigatok-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 623f9d956392444d399daa1899dd6b6ce0b64a44d40408309566ec9d70a49ce2
MD5 e31078a3d5d67e1500cfdcae38aa839a
BLAKE2b-256 f5da64e78e971af5f1acea8b1dd187ed8d50404199a4aeffb533bdbae90dcbaa

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