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.

What is BPE anyway?

Language models don't see text like you and I, instead they see a sequence of numbers (known as tokens). Byte pair encoding (BPE) is a way of converting text into tokens. It has a couple desirable properties:

  1. It's reversible and lossless, so you can convert tokens back into the original text
  2. It works on arbitrary text, even text that is not in the tokeniser's training data
  3. It compresses the text: the token sequence is shorter than the bytes corresponding to the original text. On average, in practice, each token corresponds to about 4 bytes.
  4. It attempts to let the model see common subwords. For instance, "ing" is a common subword in English, so BPE encodings will often split "encoding" into tokens like "encod" and "ing" (instead of e.g. "enc" and "oding"). Because the model will then see the "ing" token again and again in different contexts, it helps models generalise and better understand grammar.

tiktoken contains an educational submodule that is friendlier if you want to learn more about the details of BPE, including code that helps visualise the BPE procedure:

from tiktoken._educational import *

# Train a BPE tokeniser on a small amount of text
enc = train_simple_encoding()

# Visualise how the GPT-4 encoder encodes text
enc = SimpleBytePairEncoding.from_tiktoken("cl100k_base")
enc.encode("hello world aaaaaaaaaaaa")

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.7.0

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.7.0
File Size Uploaded
tiktoken-0.7.0.tar.gz 33.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for tiktoken 0.7.0
File
tiktoken-0.7.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
tiktoken-0.7.0-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details
tiktoken-0.7.0-cp312-cp312-musllinux_1_2_aarch64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ ARM64 Details
tiktoken-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
tiktoken-0.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details
tiktoken-0.7.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
tiktoken-0.7.0-cp312-cp312-macosx_10_9_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.9+ x86-64 Details
tiktoken-0.7.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
tiktoken-0.7.0-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details
tiktoken-0.7.0-cp311-cp311-musllinux_1_2_aarch64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ ARM64 Details
tiktoken-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
tiktoken-0.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
tiktoken-0.7.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
tiktoken-0.7.0-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details
tiktoken-0.7.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
tiktoken-0.7.0-cp310-cp310-musllinux_1_2_x86_64.whl CPython 3.10 CPython 3.10 Linux musl 1.2+ x86-64 Details
tiktoken-0.7.0-cp310-cp310-musllinux_1_2_aarch64.whl CPython 3.10 CPython 3.10 Linux musl 1.2+ ARM64 Details
tiktoken-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
tiktoken-0.7.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
tiktoken-0.7.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
tiktoken-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details
tiktoken-0.7.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
tiktoken-0.7.0-cp39-cp39-musllinux_1_2_x86_64.whl CPython 3.9 CPython 3.9 Linux musl 1.2+ x86-64 Details
tiktoken-0.7.0-cp39-cp39-musllinux_1_2_aarch64.whl CPython 3.9 CPython 3.9 Linux musl 1.2+ ARM64 Details
tiktoken-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
tiktoken-0.7.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details
tiktoken-0.7.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details
tiktoken-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details
tiktoken-0.7.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
tiktoken-0.7.0-cp38-cp38-musllinux_1_2_x86_64.whl CPython 3.8 CPython 3.8 Linux musl 1.2+ x86-64 Details
tiktoken-0.7.0-cp38-cp38-musllinux_1_2_aarch64.whl CPython 3.8 CPython 3.8 Linux musl 1.2+ ARM64 Details
tiktoken-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
tiktoken-0.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details
tiktoken-0.7.0-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details
tiktoken-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details

Total release size: 35.2 MB

Release files / tiktoken-0.7.0.tar.gz

Download URL tiktoken-0.7.0.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1077266e949c24e0291f6c350433c6f0971365ece2b173a23bc3b9f9defef6b6
BLAKE2b-256 checksum
How to use checksums
c44aabaec53e93e3ef37224a4dd9e2fc6bb871e7a538c2b6b9d2a6397271daf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp312-cp312-win_amd64.whl

Download URL tiktoken-0.7.0-cp312-cp312-win_amd64.whl
Size 799.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
0bc603c30b9e371e7c4c7935aba02af5994a909fc3c0fe66e7004070858d3f8f
BLAKE2b-256 checksum
How to use checksums
bf4b48ca098cb580c099b5058bf62c4cb5e90ca6130fa43ef4df27088536245b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL tiktoken-0.7.0-cp312-cp312-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
8c46d7af7b8c6987fac9b9f61041b452afe92eb087d29c9ce54951280f899a97
BLAKE2b-256 checksum
How to use checksums
a51fc93517dc6d3b2c9e988b8e24f87a8b2d4a4ab28920a3a3f3ea338397ae0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp312-cp312-musllinux_1_2_aarch64.whl

Download URL tiktoken-0.7.0-cp312-cp312-musllinux_1_2_aarch64.whl
Size 1.1 MB
Tags CPython 3.12 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
d427614c3e074004efa2f2411e16c826f9df427d3c70a54725cae860f09e4bf4
BLAKE2b-256 checksum
How to use checksums
6d8751a133a3d5307cf7ae3754249b0faaa91d3414b85c3d36f80b54d6817aa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d20b5c6af30e621b4aca094ee61777a44118f52d886dbe4f02b70dfe05c15350
BLAKE2b-256 checksum
How to use checksums
50811842a22f15586072280364c2ab1e40835adaf64e42fe80e52aff921ee021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.0 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
03c6c40ff1db0f48a7b4d2dafeae73a5607aacb472fa11f125e7baf9dce73704
BLAKE2b-256 checksum
How to use checksums
e67bc949e4954441a879a67626963dff69096e3c774758b9f2bb0853f7b4e1e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL tiktoken-0.7.0-cp312-cp312-macosx_11_0_arm64.whl
Size 906.7 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
09ed925bccaa8043e34c519fbb2f99110bd07c6fd67714793c21ac298e449410
BLAKE2b-256 checksum
How to use checksums
b63009ced367d280072d7a3e21f34263dfbbf6378661e7a0f6414e7c18971083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp312-cp312-macosx_10_9_x86_64.whl

Download URL tiktoken-0.7.0-cp312-cp312-macosx_10_9_x86_64.whl
Size 960.4 kB
Tags CPython 3.12 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
71c55d066388c55a9c00f61d2c456a6086673ab7dec22dd739c23f77195b1908
BLAKE2b-256 checksum
How to use checksums
1d464cdda4186ce900608f522da34acf442363346688c71b938a90a52d7b84cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp311-cp311-win_amd64.whl
Size 799.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
959d993749b083acc57a317cbc643fb85c014d055b2119b739487288f4e5d1cb
BLAKE2b-256 checksum
How to use checksums
b110c04b4ff592a5f46b28ebf4c2353f735c02ae7f0ce1b165d00748ced6467e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL tiktoken-0.7.0-cp311-cp311-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
20295d21419bfcca092644f7e2f2138ff947a6eb8cfc732c09cc7d76988d4a89
BLAKE2b-256 checksum
How to use checksums
2e80f4c9e255ff236e6a69ce44b927629cefc1b63d3a00e2d1c9ed540c9492d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp311-cp311-musllinux_1_2_aarch64.whl

Download URL tiktoken-0.7.0-cp311-cp311-musllinux_1_2_aarch64.whl
Size 1.1 MB
Tags CPython 3.11 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
1063c5748be36344c7e18c7913c53e2cca116764c2080177e57d62c7ad4576d1
BLAKE2b-256 checksum
How to use checksums
2a40c66ff3a21af6d62a7e0ff428d12002c4e0389f776d3ff96dcaa0bb354eee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
86b6e7dc2e7ad1b3757e8a24597415bafcfb454cebf9a33a01f2e6ba2e663992
BLAKE2b-256 checksum
How to use checksums
61b4b80d1fe33015e782074e96bbbf4108ccd283b8deea86fb43c15d18b7c351
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.0 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
811229fde1652fedcca7c6dfe76724d0908775b353556d8a71ed74d866f73f7b
BLAKE2b-256 checksum
How to use checksums
ea9bf36db825b1e9904c3a2646439cb9923fc1e09208e2e071c6d9dd64ead131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp311-cp311-macosx_11_0_arm64.whl
Size 907.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
084cec29713bc9d4189a937f8a35dbdfa785bd1235a34c1124fe2323821ee93f
BLAKE2b-256 checksum
How to use checksums
30efe07dbfcb2f85c84abaa1b035a9279575a8da0236305491dc22ae099327f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp311-cp311-macosx_10_9_x86_64.whl
Size 961.5 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
10c7674f81e6e350fcbed7c09a65bca9356eaab27fb2dac65a1e440f2bcfe30f
BLAKE2b-256 checksum
How to use checksums
22eb57492b2568eea1d546da5cc1ae7559d924275280db80ba07e6f9b89a914b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp310-cp310-win_amd64.whl
Size 798.9 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
21a20c3bd1dd3e55b91c1331bf25f4af522c525e771691adbc9a69336fa7f702
BLAKE2b-256 checksum
How to use checksums
ec1fa5d72755118e9e1b62cdf3ef9138eb83d49088f3cb37a9540025c81c0e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp310-cp310-musllinux_1_2_x86_64.whl

Download URL tiktoken-0.7.0-cp310-cp310-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
8e58c7eb29d2ab35a7a8929cbeea60216a4ccdf42efa8974d8e176d50c9a3df5
BLAKE2b-256 checksum
How to use checksums
f26c83ca40527d072739f0704b9f59b325786c444ca63672a77cb69adc8181f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp310-cp310-musllinux_1_2_aarch64.whl

Download URL tiktoken-0.7.0-cp310-cp310-musllinux_1_2_aarch64.whl
Size 1.1 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
13c94efacdd3de9aff824a788353aa5749c0faee1fbe3816df365ea450b82311
BLAKE2b-256 checksum
How to use checksums
724061d6354cb64a563fce475a2907039be9fe809ca5f801213856353b01a35b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5d4511c52caacf3c4981d1ae2df85908bd31853f33d30b345c8b6830763f769c
BLAKE2b-256 checksum
How to use checksums
e78c7d1007557b343d5cf18349802e94d3a14397121e9105b4661f8cd753f9bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.0 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
79383a6e2c654c6040e5f8506f3750db9ddd71b550c724e673203b4f6b4b4590
BLAKE2b-256 checksum
How to use checksums
b9abf9c7675747f259d133d66065106cf732a7c2bef6043062fbca8e011f7f4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp310-cp310-macosx_11_0_arm64.whl
Size 906.8 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e54be9a2cd2f6d6ffa3517b064983fb695c9a9d8aa7d574d1ef3c3f931a99225
BLAKE2b-256 checksum
How to use checksums
f80cd4125348dedd1f8f38e3f85245e7fc38858ffc77c9b7edfb762a8191ba0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 961.5 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
485f3cc6aba7c6b6ce388ba634fbba656d9ee27f766216f45146beb4ac18b25f
BLAKE2b-256 checksum
How to use checksums
961028d59d43d72a0ebd4211371d0bf10c935cdecbb62b812ae04c58bfc37d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp39-cp39-win_amd64.whl
Size 798.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
2bcb28ddf79ffa424f171dfeef9a4daff61a94c631ca6813f43967cb263b83b9
BLAKE2b-256 checksum
How to use checksums
76652d12a268f0692fb0b7f4fb981301c4813729b5e00d8631c0465e396ebbe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp39-cp39-musllinux_1_2_x86_64.whl

Download URL tiktoken-0.7.0-cp39-cp39-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
d6d73ea93e91d5ca771256dfc9d1d29f5a554b83821a1dc0891987636e0ae226
BLAKE2b-256 checksum
How to use checksums
d622cfd01b2c56beb165d3485f247a5838efdb0772c9fdba3ef6ca6e27dd02ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp39-cp39-musllinux_1_2_aarch64.whl

Download URL tiktoken-0.7.0-cp39-cp39-musllinux_1_2_aarch64.whl
Size 1.1 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
8a81bac94769cab437dd3ab0b8a4bc4e0f9cf6835bcaa88de71f39af1791727a
BLAKE2b-256 checksum
How to use checksums
c2ee031d60260581d2e277eacb8cf0a503726ef924f96c0702dea030aa7b7bef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e215292e99cb41fbc96988ef62ea63bb0ce1e15f2c147a61acc319f8b4cbe5bf
BLAKE2b-256 checksum
How to use checksums
d195f5df043cbde71a0a9c1c9e6038e8cd9e40526e6f9b9f72d7574ea374eb35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.0 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
2ee92776fdbb3efa02a83f968c19d4997a55c8e9ce7be821ceee04a1d1ee149c
BLAKE2b-256 checksum
How to use checksums
381af2a8928e6088e47073ddf6869ea733f54d21320f3ceec4aaf3440572a816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp39-cp39-macosx_11_0_arm64.whl
Size 907.9 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8d57f29171255f74c0aeacd0651e29aa47dff6f070cb9f35ebc14c82278f3b25
BLAKE2b-256 checksum
How to use checksums
659084a85b7122853188c343bcf2321f9cec7424ed5cfaedac36a0ada03e9351
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl
Size 961.8 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
cabc6dc77460df44ec5b879e68692c63551ae4fae7460dd4ff17181df75f1db7
BLAKE2b-256 checksum
How to use checksums
ca318382f774468d8e014c6a9b0cbce7463928a3e1d7cb32e3d7e6b10f83f215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp38-cp38-win_amd64.whl
Size 798.9 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
131b8aeb043a8f112aad9f46011dced25d62629091e51d9dc1adbf4a1cc6aa98
BLAKE2b-256 checksum
How to use checksums
252693a0008eb770141cad7733b7abc1315c64ec86ec60a3578d275eb10d42cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp38-cp38-musllinux_1_2_x86_64.whl

Download URL tiktoken-0.7.0-cp38-cp38-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags CPython 3.8 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
c72baaeaefa03ff9ba9688624143c858d1f6b755bb85d456d59e529e17234769
BLAKE2b-256 checksum
How to use checksums
fe6dc3a72b0f7edfec7502277d2b482fb0ce6744901963040a331cabe072706e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / tiktoken-0.7.0-cp38-cp38-musllinux_1_2_aarch64.whl

Download URL tiktoken-0.7.0-cp38-cp38-musllinux_1_2_aarch64.whl
Size 1.1 MB
Tags CPython 3.8 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
fffdcb319b614cf14f04d02a52e26b1d1ae14a570f90e9b55461a72672f7b13d
BLAKE2b-256 checksum
How to use checksums
0ba991adbd2c639ab769539ec7a9e848bbaba85d3405826b098329a244fa3c20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
54031f95c6939f6b78122c0aa03a93273a96365103793a22e1793ee86da31685
BLAKE2b-256 checksum
How to use checksums
77bae4149aa0724a5268ab10014a028668c6ef8834862f955ef0c6758240f6d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.0 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
861f9ee616766d736be4147abac500732b505bf7013cfaf019b85892637f235e
BLAKE2b-256 checksum
How to use checksums
1e4339ab47b3915f1172ec3857f3c0d361281e08b6de251fec81ce5cfd762fe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp38-cp38-macosx_11_0_arm64.whl
Size 906.8 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8f5f6afb52fb8a7ea1c811e435e4188f2bef81b5e0f7a8635cc79b0eef0193d6
BLAKE2b-256 checksum
How to use checksums
e6049a2b978beea18ef8916319e51f6d079c804062df80c63f0392202e5ddf10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

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

Download URL tiktoken-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 962.0 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
2398fecd38c921bcd68418675a6d155fad5f5e14c2e92fcf5fe566fa5485a858
BLAKE2b-256 checksum
How to use checksums
37f3f2beec797daae3b03d75d4dd8925e9425f3939d8de903e412dc3fa7a9636
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2
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