Skip to main content

⏳ tiktoken

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

import tiktoken
enc = tiktoken.get_encoding("gpt2")
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("text-davinci-003")

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

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.1
File Size Uploaded Provenance
tiktoken-0.3.1.tar.gz 24.8 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for tiktoken 0.3.1
File
tiktoken-0.3.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
tiktoken-0.3.1-cp311-cp311-musllinux_1_1_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.1+ x86-64 Details
tiktoken-0.3.1-cp311-cp311-musllinux_1_1_aarch64.whl CPython 3.11 CPython 3.11 Linux musl 1.1+ ARM64 Details
tiktoken-0.3.1-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.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
tiktoken-0.3.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
tiktoken-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details
tiktoken-0.3.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
tiktoken-0.3.1-cp310-cp310-musllinux_1_1_x86_64.whl CPython 3.10 CPython 3.10 Linux musl 1.1+ x86-64 Details
tiktoken-0.3.1-cp310-cp310-musllinux_1_1_aarch64.whl CPython 3.10 CPython 3.10 Linux musl 1.1+ ARM64 Details
tiktoken-0.3.1-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.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
tiktoken-0.3.1-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
tiktoken-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details
tiktoken-0.3.1-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
tiktoken-0.3.1-cp39-cp39-musllinux_1_1_x86_64.whl CPython 3.9 CPython 3.9 Linux musl 1.1+ x86-64 Details
tiktoken-0.3.1-cp39-cp39-musllinux_1_1_aarch64.whl CPython 3.9 CPython 3.9 Linux musl 1.1+ ARM64 Details
tiktoken-0.3.1-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.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details
tiktoken-0.3.1-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details
tiktoken-0.3.1-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details
tiktoken-0.3.1-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
tiktoken-0.3.1-cp38-cp38-musllinux_1_1_x86_64.whl CPython 3.8 CPython 3.8 Linux musl 1.1+ x86-64 Details
tiktoken-0.3.1-cp38-cp38-musllinux_1_1_aarch64.whl CPython 3.8 CPython 3.8 Linux musl 1.1+ ARM64 Details
tiktoken-0.3.1-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.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details
tiktoken-0.3.1-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details
tiktoken-0.3.1-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details

Total release size: 34.5 MB

Release files / tiktoken-0.3.1.tar.gz

Download URL tiktoken-0.3.1.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8295912429374f5f3c6c6bf053a091ce1de8c1792a62e3b30d4ad36f47fa8b52
BLAKE2b-256 checksum
How to use checksums
fbd9c38fee002c5979f29c182aee8e28c31538eabf40022e304f97ff82324199
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.1-cp311-cp311-win_amd64.whl

Download URL tiktoken-0.3.1-cp311-cp311-win_amd64.whl
Size 581.1 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
3257c88c9c85f7059a6186d0850b3339265b4a9ff6e2d8fa4515757252037382
BLAKE2b-256 checksum
How to use checksums
80652264ffeb6573a7b4ffe624b0c45d6c42a7d0509ea5583d03b91b1fc27366
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.1-cp311-cp311-musllinux_1_1_x86_64.whl

Download URL tiktoken-0.3.1-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
fe665728520092af0c260ef0f03d0e1472f29927bd8393da57c2299d9580e268
BLAKE2b-256 checksum
How to use checksums
2664f3bd2a3f351177f7c9574b1030813f19ada46a7b75d465bde9095ef9b0de
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.1-cp311-cp311-musllinux_1_1_aarch64.whl

Download URL tiktoken-0.3.1-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
9743aed9aae72a8d4e3d899186e87e469ddc2a1670549664e8317b095fd3e024
BLAKE2b-256 checksum
How to use checksums
bf360fa6480ccb88599036efc769a82f53edf383ea0a9b4e8ef59fb35ac896c1
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.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.3.1-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
5c1ed9584b30fe64157b72f0537688f3562506fb20d6aa1d6f90264b6f1f5981
BLAKE2b-256 checksum
How to use checksums
7547e9f9fd399c5b0ea2de3b7a473cd093fff4fa16bcc5d278f4b57de0fcbf7f
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.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.3.1-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
34055fa17e63eccced1b1859bad34bcb6b892e8d3e2c2a8b9a24b7ff4023018e
BLAKE2b-256 checksum
How to use checksums
3749a46db540a04c6b08a24914ebb7b70570d62e7d7ae519dd0f861e86a06b42
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.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL tiktoken-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Size 701.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6b7f58463026fe9196ab54fe8a34beb7f839f0bdccdb0b7e707959b5d65cbe50
BLAKE2b-256 checksum
How to use checksums
59a5c3a9990527aa7b7e60a89308bfe01d917f043037e43b199ca4d520008ce9
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.1-cp311-cp311-macosx_10_9_x86_64.whl

Download URL tiktoken-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl
Size 735.0 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
3ce64d0f826a424278429383dbba9484a82492a3aa1a805b3b9ff30a018de119
BLAKE2b-256 checksum
How to use checksums
cad0de22fa41c1d654057e6dae917ffcb80448b5cc3247da547d2e158ea28cc4
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.1-cp310-cp310-win_amd64.whl

Download URL tiktoken-0.3.1-cp310-cp310-win_amd64.whl
Size 581.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
f15441c393b362ccfa6bece920ec9ca826d216ba3c4166ce065518b4dedff452
BLAKE2b-256 checksum
How to use checksums
24a4f9ac1e8528219d86f771fa216d322f34d0972d6371753d203fa643d1e295
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.1-cp310-cp310-musllinux_1_1_x86_64.whl

Download URL tiktoken-0.3.1-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
44bd6878bc3605a907c6be8e46e2b999806cd97edd2dbb96643a6d338df0bac0
BLAKE2b-256 checksum
How to use checksums
6cc5c8df1d58a5b4f035bf523a500bb3024f19348a69106c8286e90706bc5c21
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.1-cp310-cp310-musllinux_1_1_aarch64.whl

Download URL tiktoken-0.3.1-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
c6d3140a92bfb8fc0e003cad1e608363bcddc0a781d3d580535570276e0f911a
BLAKE2b-256 checksum
How to use checksums
9803ea51b5dabfb205995577f5dc43cc7319128c04a0875cc669230e9509d5e5
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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.3.1-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
0c0eb4fe2e583def3f9090a645fe21e52068f0fbccb05070abf2f376f399ce6d
BLAKE2b-256 checksum
How to use checksums
625c9cc9ec3b0fcc761f6523483344657630bc2f49d8f265b748ecabc4c351e9
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.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.3.1-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
7b3409670824ff7e7cf8b54a2320634fdd8f3d9d9f3ea46ae58c68de82f9c093
BLAKE2b-256 checksum
How to use checksums
a487d224a05390a2e04288e1183c2ddcada3eb77e2e738235d14f0b125e8f9ef
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.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL tiktoken-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Size 701.0 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e4448b7e09781a85ca767c995078011c96554b50c6260a2325c07d500577f748
BLAKE2b-256 checksum
How to use checksums
db0a062542ce55059cf4ff51cf34cc136938ef85d51ef385350e5f67a8eb4d1a
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.1-cp310-cp310-macosx_10_9_x86_64.whl

Download URL tiktoken-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl
Size 735.0 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
064048f506e747b636e2d70b66658743de32645d53287290734eb2b6ec43e6b5
BLAKE2b-256 checksum
How to use checksums
c96bb3a54bd5f8b377d1932cfb1b42399ca6f8f439152976a072c784c8c1b742
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.1-cp39-cp39-win_amd64.whl

Download URL tiktoken-0.3.1-cp39-cp39-win_amd64.whl
Size 581.4 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
aa43c67f8caf9626473f7dbe1656b52859b17a541ea2e0749a1a355f14af5216
BLAKE2b-256 checksum
How to use checksums
37ff7a0855b570ef15736304ba2005124224c72289697778db2f6d61ef006197
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.1-cp39-cp39-musllinux_1_1_x86_64.whl

Download URL tiktoken-0.3.1-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
d8e034e8905eb188326df645523ca582bdaa616442d37562051a52f3a3a79382
BLAKE2b-256 checksum
How to use checksums
19d3fa238f1e726b9b91b73b504a773b321ca8e48516362f6f6cc1be70d17ce7
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.1-cp39-cp39-musllinux_1_1_aarch64.whl

Download URL tiktoken-0.3.1-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
7e213c1a95766c751de74322c19776fcf4161cde76013c899b3c918be966a13c
BLAKE2b-256 checksum
How to use checksums
f54cd4d791b25d352ffe16839ef7a85f08d3a8abed61401022133d7177cec79e
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.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.3.1-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
3bb375d4d6fa058320889ff894aac9bcd0bfbd9a2c61bf4a5a7407116ba1f862
BLAKE2b-256 checksum
How to use checksums
69253a2ecd8b78e807aba0fb9f9f31379d324d083645496f481640d5b0c34f91
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.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.3.1-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
bb28347e3a3544d5cdf1fb29f8b1b075eb06ca8aeab32f5684cf63ab6ace7ab8
BLAKE2b-256 checksum
How to use checksums
076a58871c8ada1f92069425b39b8ac3a21561e40a928f9355e44b1a5757918a
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.1-cp39-cp39-macosx_11_0_arm64.whl

Download URL tiktoken-0.3.1-cp39-cp39-macosx_11_0_arm64.whl
Size 701.6 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c643192f46d3f47e44758b0ea096918f95c0bc8676e1f62fa20b2a2ccd4d5a93
BLAKE2b-256 checksum
How to use checksums
979a995d1b2f6f9c27d5f4fb8e6e8435215d35b62d98c3b2a9c65e312425ddd9
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.1-cp39-cp39-macosx_10_9_x86_64.whl

Download URL tiktoken-0.3.1-cp39-cp39-macosx_10_9_x86_64.whl
Size 735.3 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
a77180b4dbee3ffac8e7e6ba4dd97414bc4e5233c5d063098c5a91b699f03f2e
BLAKE2b-256 checksum
How to use checksums
03e217a24f8dc880c8130b247d746c402f50d4a66d46ad5e2c5cb77ed0b94826
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.1-cp38-cp38-win_amd64.whl

Download URL tiktoken-0.3.1-cp38-cp38-win_amd64.whl
Size 581.0 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
f1442d512fd4e33ca14547fbd4764f540f978bbb075e13294e1c82a69ac73012
BLAKE2b-256 checksum
How to use checksums
594e111cef75f3e88d64172c0e72dcdcee275af4d83b8200cea6ae5e5b4a8b7b
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.1-cp38-cp38-musllinux_1_1_x86_64.whl

Download URL tiktoken-0.3.1-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
22a78094ea77a7054c0fb2c6e54dd714e4860a2ef69d724bdde186f6fe6a0d6b
BLAKE2b-256 checksum
How to use checksums
e8297411bfbbb1ecad0038babac9ec33cee56099c6e66172441253513b346e27
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.1-cp38-cp38-musllinux_1_1_aarch64.whl

Download URL tiktoken-0.3.1-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
8f128eff76bcf2ff7d2eeb7bf326d1ff8476fce3f123f14faa275fa730bc707a
BLAKE2b-256 checksum
How to use checksums
88d1ff883d778d79eaf3320654cf87645e39fd0cc28da0b060db6d23b1655b48
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.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tiktoken-0.3.1-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
14fff699c21def38ba6e5a96f60991813fbe370b7074b503f4746c20b04e3906
BLAKE2b-256 checksum
How to use checksums
50d46a25681f8ab72f0cb033ea0b66b5da5dc4725f6f65cbaf8e8b741b3f17ce
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.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tiktoken-0.3.1-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
7dcfec6d3ac4eea3f85e54194ceccb8ee16c909fecefe94e2185cf3efaecae30
BLAKE2b-256 checksum
How to use checksums
d3d3e7f52798cb22aa9bf0a59f56059a7c338208939977ee7c31a7f63cc6afc0
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.1-cp38-cp38-macosx_11_0_arm64.whl

Download URL tiktoken-0.3.1-cp38-cp38-macosx_11_0_arm64.whl
Size 701.3 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a730a2177929ba32b56e63cfd613a983447cb9399936e596a3397adb06f186b8
BLAKE2b-256 checksum
How to use checksums
bf474daa5b58575c9800b08ed9d5c2bd19ae42f3848f072d7c7be29a51bacbff
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.1-cp38-cp38-macosx_10_9_x86_64.whl

Download URL tiktoken-0.3.1-cp38-cp38-macosx_10_9_x86_64.whl
Size 734.7 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
f35121008e535a1cc212336a8865c7696641dbef7a995b45c3b8cd6ad52d12cf
BLAKE2b-256 checksum
How to use checksums
7eae3a037435f004e48ea0a2a90bb1513c3b719ea74a6d5ffee707bd8151b270
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.1

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.

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