Skip to main content

⏳ tiktoken

tiktoken is a fast BPE tokeniser for use with OpenAI's models.

import tiktoken
enc = tiktoken.get_encoding("cl100k_base")
assert enc.decode(enc.encode("hello world")) == "hello world"

# To get the tokeniser corresponding to a specific model in the OpenAI API:
enc = tiktoken.encoding_for_model("gpt-4")

The open source version of tiktoken can be installed from PyPI:

pip install tiktoken

The tokeniser API is documented in tiktoken/core.py.

Example code using tiktoken can be found in the OpenAI Cookbook.

Performance

tiktoken is between 3-6x faster than a comparable open source tokeniser:

image

Performance measured on 1GB of text using the GPT-2 tokeniser, using GPT2TokenizerFast from tokenizers==0.13.2, transformers==4.24.0 and tiktoken==0.2.0.

Getting help

Please post questions in the issue tracker.

If you work at OpenAI, make sure to check the internal documentation or feel free to contact @shantanu.

Extending tiktoken

You may wish to extend tiktoken to support new encodings. There are two ways to do this.

Create your Encoding object exactly the way you want and simply pass it around.

cl100k_base = tiktoken.get_encoding("cl100k_base")

# In production, load the arguments directly instead of accessing private attributes
# See openai_public.py for examples of arguments for specific encodings
enc = tiktoken.Encoding(
    # If you're changing the set of special tokens, make sure to use a different name
    # It should be clear from the name what behaviour to expect.
    name="cl100k_im",
    pat_str=cl100k_base._pat_str,
    mergeable_ranks=cl100k_base._mergeable_ranks,
    special_tokens={
        **cl100k_base._special_tokens,
        "<|im_start|>": 100264,
        "<|im_end|>": 100265,
    }
)

Use the tiktoken_ext plugin mechanism to register your Encoding objects with tiktoken.

This is only useful if you need tiktoken.get_encoding to find your encoding, otherwise prefer option 1.

To do this, you'll need to create a namespace package under tiktoken_ext.

Layout your project like this, making sure to omit the tiktoken_ext/__init__.py file:

my_tiktoken_extension
├── tiktoken_ext
│   └── my_encodings.py
└── setup.py

my_encodings.py should be a module that contains a variable named ENCODING_CONSTRUCTORS. This is a dictionary from an encoding name to a function that takes no arguments and returns arguments that can be passed to tiktoken.Encoding to construct that encoding. For an example, see tiktoken_ext/openai_public.py. For precise details, see tiktoken/registry.py.

Your setup.py should look something like this:

from setuptools import setup, find_namespace_packages

setup(
    name="my_tiktoken_extension",
    packages=find_namespace_packages(include=['tiktoken_ext*']),
    install_requires=["tiktoken"],
    ...
)

Then simply pip install ./my_tiktoken_extension and you should be able to use your custom encodings! Make sure not to use an editable install.

Metadata

Release files for tiktoken 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tiktoken 0.3.3
File Size Uploaded Provenance Actions
tiktoken-0.3.3.tar.gz 25.3 kB Without provenance Details for tiktoken-0.3.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tiktoken 0.3.3
File Actions
tiktoken-0.3.3-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for tiktoken-0.3.3-cp311-cp311-win_amd64.whl
tiktoken-0.3.3-cp311-cp311-musllinux_1_1_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.1+ x86-64 Details for tiktoken-0.3.3-cp311-cp311-musllinux_1_1_x86_64.whl
tiktoken-0.3.3-cp311-cp311-musllinux_1_1_aarch64.whl CPython 3.11 CPython 3.11 Linux musl 1.1+ ARM64 Details for tiktoken-0.3.3-cp311-cp311-musllinux_1_1_aarch64.whl
tiktoken-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for tiktoken-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tiktoken-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for tiktoken-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
tiktoken-0.3.3-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for tiktoken-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
tiktoken-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for tiktoken-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl
tiktoken-0.3.3-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for tiktoken-0.3.3-cp310-cp310-win_amd64.whl
tiktoken-0.3.3-cp310-cp310-musllinux_1_1_x86_64.whl CPython 3.10 CPython 3.10 Linux musl 1.1+ x86-64 Details for tiktoken-0.3.3-cp310-cp310-musllinux_1_1_x86_64.whl
tiktoken-0.3.3-cp310-cp310-musllinux_1_1_aarch64.whl CPython 3.10 CPython 3.10 Linux musl 1.1+ ARM64 Details for tiktoken-0.3.3-cp310-cp310-musllinux_1_1_aarch64.whl
tiktoken-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for tiktoken-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tiktoken-0.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for tiktoken-0.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
tiktoken-0.3.3-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for tiktoken-0.3.3-cp310-cp310-macosx_11_0_arm64.whl
tiktoken-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for tiktoken-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl
tiktoken-0.3.3-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for tiktoken-0.3.3-cp39-cp39-win_amd64.whl
tiktoken-0.3.3-cp39-cp39-musllinux_1_1_x86_64.whl CPython 3.9 CPython 3.9 Linux musl 1.1+ x86-64 Details for tiktoken-0.3.3-cp39-cp39-musllinux_1_1_x86_64.whl
tiktoken-0.3.3-cp39-cp39-musllinux_1_1_aarch64.whl CPython 3.9 CPython 3.9 Linux musl 1.1+ ARM64 Details for tiktoken-0.3.3-cp39-cp39-musllinux_1_1_aarch64.whl
tiktoken-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for tiktoken-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tiktoken-0.3.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details for tiktoken-0.3.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
tiktoken-0.3.3-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for tiktoken-0.3.3-cp39-cp39-macosx_11_0_arm64.whl
tiktoken-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details for tiktoken-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl
tiktoken-0.3.3-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for tiktoken-0.3.3-cp38-cp38-win_amd64.whl
tiktoken-0.3.3-cp38-cp38-musllinux_1_1_x86_64.whl CPython 3.8 CPython 3.8 Linux musl 1.1+ x86-64 Details for tiktoken-0.3.3-cp38-cp38-musllinux_1_1_x86_64.whl
tiktoken-0.3.3-cp38-cp38-musllinux_1_1_aarch64.whl CPython 3.8 CPython 3.8 Linux musl 1.1+ ARM64 Details for tiktoken-0.3.3-cp38-cp38-musllinux_1_1_aarch64.whl
tiktoken-0.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for tiktoken-0.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tiktoken-0.3.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details for tiktoken-0.3.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
tiktoken-0.3.3-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details for tiktoken-0.3.3-cp38-cp38-macosx_11_0_arm64.whl
tiktoken-0.3.3-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for tiktoken-0.3.3-cp38-cp38-macosx_10_9_x86_64.whl

Total release size: 34.6 MB

Release files / tiktoken-0.3.3.tar.gz

Download URL tiktoken-0.3.3.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
97b58b7bfda945791ec855e53d166e8ec20c6378942b93851a6c919ddf9d0496
BLAKE2b-256 checksum
How to use checksums
8e3a20704b89b271cfebb1c981ef9f172fb18cb879b5c5cfc3b209083f71b229
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp311-cp311-win_amd64.whl

Download URL tiktoken-0.3.3-cp311-cp311-win_amd64.whl
Size 579.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
5dca434c8680b987eacde2dbc449e9ea4526574dbf9f3d8938665f638095be82
BLAKE2b-256 checksum
How to use checksums
168c63ae6e51c5db57d1c3a0d039eec9ba083d433dfad946098b2c80aed3e26d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp311-cp311-musllinux_1_1_x86_64.whl

Download URL tiktoken-0.3.3-cp311-cp311-musllinux_1_1_x86_64.whl
Size 1.7 MB
Tags CPython 3.11 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
2e948d167fc3b04483cbc33426766fd742e7cefe5346cd62b0cbd7279ef59539
BLAKE2b-256 checksum
How to use checksums
c41c15e8a21bf4256b622c3ff3ce41b01f2cae7d0d2e4ee15d19e1f1eb990884
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp311-cp311-musllinux_1_1_aarch64.whl

Download URL tiktoken-0.3.3-cp311-cp311-musllinux_1_1_aarch64.whl
Size 1.6 MB
Tags CPython 3.11 Linux musl 1.1+ ARM64
SHA-256 checksum
How to use checksums
4a0c1357f6191211c544f935d5aa3cb9d7abd118c8f3c7124196d5ecd029b4af
BLAKE2b-256 checksum
How to use checksums
b0dd573493be4608a803ae85ba51b3f0be3fc92a321a3c4ca2abc0c594e4bf94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6674e4e37ab225020135cd66a392589623d5164c6456ba28cc27505abed10d9e
BLAKE2b-256 checksum
How to use checksums
bac044066de4a112e26808e0bd1ce200020446e211e8ae1ba5f27eaec5a723da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
48c13186a479de16cfa2c72bb0631fa9c518350a5b7569e4d77590f7fee96be9
BLAKE2b-256 checksum
How to use checksums
a602dac0c35f81b025eff0b947aae4f22505aab852ac225f2418ff33bde521e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp311-cp311-macosx_11_0_arm64.whl

Download URL tiktoken-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
Size 706.4 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e3c0f2231aa3829a1a431a882201dc27858634fd9989898e0f7d991dbc6bcc9d
BLAKE2b-256 checksum
How to use checksums
d6a1e7b2bd5a447c9de9b4a842af0f13872ee844f584832542c6eceb53bf7c8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl

Download URL tiktoken-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl
Size 735.6 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
4db2c40f79f8f7a21a9fdbf1c6dee32dea77b0d7402355dc584a3083251d2e15
BLAKE2b-256 checksum
How to use checksums
e9b4c0dfa23742e72ac608e73932a8df2dde6730fc5398c0d594fd36c927891b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp310-cp310-win_amd64.whl

Download URL tiktoken-0.3.3-cp310-cp310-win_amd64.whl
Size 579.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
dc00772284c94e65045b984ed7e9f95d000034f6b2411df252011b069bd36217
BLAKE2b-256 checksum
How to use checksums
213024414483fbed84fc6386d627f19af80798ad116108e734b614f0377f0637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp310-cp310-musllinux_1_1_x86_64.whl

Download URL tiktoken-0.3.3-cp310-cp310-musllinux_1_1_x86_64.whl
Size 1.7 MB
Tags CPython 3.10 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
719c9e13432602dc496b24f13e3c3ad3ec0d2fbdb9aace84abfb95e9c3a425a4
BLAKE2b-256 checksum
How to use checksums
cf057740974b7fe89573ca752226a9a0b7483fa4c39dbf7f393522f3a0189bf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp310-cp310-musllinux_1_1_aarch64.whl

Download URL tiktoken-0.3.3-cp310-cp310-musllinux_1_1_aarch64.whl
Size 1.6 MB
Tags CPython 3.10 Linux musl 1.1+ ARM64
SHA-256 checksum
How to use checksums
bd3f72d0ba7312c25c1652292121a24c8f1711207b63c6d8dab21afe4be0bf04
BLAKE2b-256 checksum
How to use checksums
8b7502d1baa6247c2d7f7fbba54375e86c73a786729dbe258c2b74c639eeed90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
65970d77ea85ce6c7fce45131da9258cd58a802ffb29ead8f5552e331c025b2b
BLAKE2b-256 checksum
How to use checksums
1ab1b4115ac3c1275e652778659399d25af96db1fa7303bdbded16e04ee1807b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
3c84491965e139a905280ac28b74baaa13445b3678e07f96767089ad1ef5ee7b
BLAKE2b-256 checksum
How to use checksums
ed0bcc13d89497e3eac112a368b69db0cfbad303e33a70ed89dbd6cbf3ba85bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp310-cp310-macosx_11_0_arm64.whl

Download URL tiktoken-0.3.3-cp310-cp310-macosx_11_0_arm64.whl
Size 706.4 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3d7296c38392a943c2ccc0b61323086b8550cef08dcf6855de9949890dbc1fd3
BLAKE2b-256 checksum
How to use checksums
17ba2ec67844ecff98713642b984d67785d44b8912e287c436a3dcad9c6c8deb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl

Download URL tiktoken-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl
Size 735.6 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
d1f37fa75ba70c1bc7806641e8ccea1fba667d23e6341a1591ea333914c226a9
BLAKE2b-256 checksum
How to use checksums
8fd09b7b843cc68fbd7d8147d6e7891a4c3a1bd83dc5b31e37dc1347fdab0ca9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp39-cp39-win_amd64.whl

Download URL tiktoken-0.3.3-cp39-cp39-win_amd64.whl
Size 579.8 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
0b9a7a9a8b781a50ee9289e85e28771d7e113cc0c656eadfb6fc6d3a106ff9bb
BLAKE2b-256 checksum
How to use checksums
ea4a6d2a43e7af1f95e2edfb4a617cf500a96ee9cad1568e321b763b974becca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp39-cp39-musllinux_1_1_x86_64.whl

Download URL tiktoken-0.3.3-cp39-cp39-musllinux_1_1_x86_64.whl
Size 1.7 MB
Tags CPython 3.9 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
65fc0a449630bab28c30b4adec257442a4706d79cffc2337c1d9df3e91825cdd
BLAKE2b-256 checksum
How to use checksums
b84ddddefbb2b9d1bfae6fda13d29a76a4d7da95d595aff105fc86632bb62a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp39-cp39-musllinux_1_1_aarch64.whl

Download URL tiktoken-0.3.3-cp39-cp39-musllinux_1_1_aarch64.whl
Size 1.6 MB
Tags CPython 3.9 Linux musl 1.1+ ARM64
SHA-256 checksum
How to use checksums
a11674f0275fa75fb59941b703650998bd4acb295adbd16fc8af17051aaed19d
BLAKE2b-256 checksum
How to use checksums
4f81e1aec7c49648461b5993c2ce7b2716b079b58980f49cf202372bbb6ca339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3a43612b2a09f4787c050163a216bf51123851859e9ab128ad03d2729826cde9
BLAKE2b-256 checksum
How to use checksums
8230a51518365988dda949c358692999d1e9966b41dcb046182427635b314703
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.3.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
542686cbc9225540e3a10f472f82fa2e1bebafce2233a211dee8459e95821cfd
BLAKE2b-256 checksum
How to use checksums
93865d2e0b45b1bc767a3ae8655eeb2a17e5954eee698c7cd52e09fc69353373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp39-cp39-macosx_11_0_arm64.whl

Download URL tiktoken-0.3.3-cp39-cp39-macosx_11_0_arm64.whl
Size 706.8 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
19340d8ba4d6fd729b2e3a096a547ded85f71012843008f97475f9db484869ee
BLAKE2b-256 checksum
How to use checksums
bb5febe141f6e192d9b4d9f904b095e63c234810f93f43928bb4ce18ca25f148
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl

Download URL tiktoken-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl
Size 736.3 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
e59db6fca8d5ccea302fe2888917364446d6f4201a25272a1a1c44975c65406a
BLAKE2b-256 checksum
How to use checksums
c19f1ae00472c6a7a5e0ad94cf15b33b7bf60609d4882d974ea7ef0abb3f2857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp38-cp38-win_amd64.whl

Download URL tiktoken-0.3.3-cp38-cp38-win_amd64.whl
Size 579.6 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
94600798891f78db780e5aa9321456cf355e54a4719fbd554147a628de1f163f
BLAKE2b-256 checksum
How to use checksums
4d4eae9b67a0b28467430c146804c0762f9b9865da4e91a079142dfa76b3e6e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp38-cp38-musllinux_1_1_x86_64.whl

Download URL tiktoken-0.3.3-cp38-cp38-musllinux_1_1_x86_64.whl
Size 1.7 MB
Tags CPython 3.8 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
1ac369367b6f5e5bd80e8f9a7766ac2a9c65eda2aa856d5f3c556d924ff82986
BLAKE2b-256 checksum
How to use checksums
ac48f273b724f659207b4e84c5dd7d5ef220f5714f0cfbc5945dd0e1910bf8d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp38-cp38-musllinux_1_1_aarch64.whl

Download URL tiktoken-0.3.3-cp38-cp38-musllinux_1_1_aarch64.whl
Size 1.6 MB
Tags CPython 3.8 Linux musl 1.1+ ARM64
SHA-256 checksum
How to use checksums
03f64bde9b4eb8338bf49c8532bfb4c3578f6a9a6979fc176d939f9e6f68b408
BLAKE2b-256 checksum
How to use checksums
76fe84d4228176c8e08977eb3750df7ccf1b6ce821a11665482044572abed1e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
dd783564f80d4dc44ff0a64b13756ded8390ed2548549aefadbe156af9188307
BLAKE2b-256 checksum
How to use checksums
8c2286075db0dfde9feb72d47d64b9583fd50e2bcc3a116e9acd27738b11b192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.3.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
210f8602228e4c5d706deeb389da5a152b214966a5aa558eec87b57a1969ced5
BLAKE2b-256 checksum
How to use checksums
228aae44b33e2fae7dab82a1d167d2836b8c7e6002d5660e36c9b294e8df1a27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp38-cp38-macosx_11_0_arm64.whl

Download URL tiktoken-0.3.3-cp38-cp38-macosx_11_0_arm64.whl
Size 706.7 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
891012f29e159a989541ae47259234fb29ff88c22e1097567316e27ad33a3734
BLAKE2b-256 checksum
How to use checksums
ea00093ba3c68d7e5e20e3df9222c1456ae79c669af79b63f9a7e481335e55fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / tiktoken-0.3.3-cp38-cp38-macosx_10_9_x86_64.whl

Download URL tiktoken-0.3.3-cp38-cp38-macosx_10_9_x86_64.whl
Size 736.3 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
984758ebc07cd8c557345697c234f1f221bd730b388f4340dd08dffa50213a01
BLAKE2b-256 checksum
How to use checksums
05bd1e526343777747091527a5c2a4620c0fc8624dd7491d0a004e4600da1773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for tiktoken 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page