Skip to main content

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

Project description

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

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

tiktoken-0.7.0.tar.gz (33.4 kB view details)

Uploaded Source

Built Distributions

tiktoken-0.7.0-cp312-cp312-win_amd64.whl (799.3 kB view details)

Uploaded CPython 3.12 Windows x86-64

tiktoken-0.7.0-cp312-cp312-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

tiktoken-0.7.0-cp312-cp312-musllinux_1_2_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ ARM64

tiktoken-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

tiktoken-0.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

tiktoken-0.7.0-cp312-cp312-macosx_11_0_arm64.whl (906.7 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

tiktoken-0.7.0-cp312-cp312-macosx_10_9_x86_64.whl (960.4 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

tiktoken-0.7.0-cp311-cp311-win_amd64.whl (799.0 kB view details)

Uploaded CPython 3.11 Windows x86-64

tiktoken-0.7.0-cp311-cp311-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

tiktoken-0.7.0-cp311-cp311-musllinux_1_2_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ ARM64

tiktoken-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

tiktoken-0.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

tiktoken-0.7.0-cp311-cp311-macosx_11_0_arm64.whl (907.0 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

tiktoken-0.7.0-cp311-cp311-macosx_10_9_x86_64.whl (961.5 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

tiktoken-0.7.0-cp310-cp310-win_amd64.whl (798.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

tiktoken-0.7.0-cp310-cp310-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

tiktoken-0.7.0-cp310-cp310-musllinux_1_2_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ ARM64

tiktoken-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

tiktoken-0.7.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

tiktoken-0.7.0-cp310-cp310-macosx_11_0_arm64.whl (906.8 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

tiktoken-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl (961.5 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

tiktoken-0.7.0-cp39-cp39-win_amd64.whl (798.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

tiktoken-0.7.0-cp39-cp39-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

tiktoken-0.7.0-cp39-cp39-musllinux_1_2_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ ARM64

tiktoken-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

tiktoken-0.7.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

tiktoken-0.7.0-cp39-cp39-macosx_11_0_arm64.whl (907.9 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

tiktoken-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl (961.8 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

tiktoken-0.7.0-cp38-cp38-win_amd64.whl (798.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

tiktoken-0.7.0-cp38-cp38-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8 musllinux: musl 1.2+ x86-64

tiktoken-0.7.0-cp38-cp38-musllinux_1_2_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.8 musllinux: musl 1.2+ ARM64

tiktoken-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

tiktoken-0.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

tiktoken-0.7.0-cp38-cp38-macosx_11_0_arm64.whl (906.8 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

tiktoken-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl (962.0 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file tiktoken-0.7.0.tar.gz.

File metadata

  • Download URL: tiktoken-0.7.0.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tiktoken-0.7.0.tar.gz
Algorithm Hash digest
SHA256 1077266e949c24e0291f6c350433c6f0971365ece2b173a23bc3b9f9defef6b6
MD5 62b4a9f1953826e61f8e09eb4a51965a
BLAKE2b-256 c44aabaec53e93e3ef37224a4dd9e2fc6bb871e7a538c2b6b9d2a6397271daf4

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: tiktoken-0.7.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 799.3 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tiktoken-0.7.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0bc603c30b9e371e7c4c7935aba02af5994a909fc3c0fe66e7004070858d3f8f
MD5 8152fdf53190ab918c818609f9888a78
BLAKE2b-256 bf4b48ca098cb580c099b5058bf62c4cb5e90ca6130fa43ef4df27088536245b

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8c46d7af7b8c6987fac9b9f61041b452afe92eb087d29c9ce54951280f899a97
MD5 0f052d3d31fe1a0876e56a7723829886
BLAKE2b-256 a51fc93517dc6d3b2c9e988b8e24f87a8b2d4a4ab28920a3a3f3ea338397ae0c

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp312-cp312-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d427614c3e074004efa2f2411e16c826f9df427d3c70a54725cae860f09e4bf4
MD5 5f2038ad201386be3d7041b7c4766a18
BLAKE2b-256 6d8751a133a3d5307cf7ae3754249b0faaa91d3414b85c3d36f80b54d6817aa6

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d20b5c6af30e621b4aca094ee61777a44118f52d886dbe4f02b70dfe05c15350
MD5 2e07d5fa91247fda5f173ecc3df8c2c6
BLAKE2b-256 50811842a22f15586072280364c2ab1e40835adaf64e42fe80e52aff921ee021

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 03c6c40ff1db0f48a7b4d2dafeae73a5607aacb472fa11f125e7baf9dce73704
MD5 f704c47e557093c064a13bd8920267f2
BLAKE2b-256 e67bc949e4954441a879a67626963dff69096e3c774758b9f2bb0853f7b4e1e7

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09ed925bccaa8043e34c519fbb2f99110bd07c6fd67714793c21ac298e449410
MD5 370e8a53940d75289d3858e2a5d8ed71
BLAKE2b-256 b63009ced367d280072d7a3e21f34263dfbbf6378661e7a0f6414e7c18971083

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 71c55d066388c55a9c00f61d2c456a6086673ab7dec22dd739c23f77195b1908
MD5 a29b99be0806cc2b56dba8bd3d268337
BLAKE2b-256 1d464cdda4186ce900608f522da34acf442363346688c71b938a90a52d7b84cc

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: tiktoken-0.7.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 799.0 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tiktoken-0.7.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 959d993749b083acc57a317cbc643fb85c014d055b2119b739487288f4e5d1cb
MD5 a505f101ed57d63200ca31d598a435a2
BLAKE2b-256 b110c04b4ff592a5f46b28ebf4c2353f735c02ae7f0ce1b165d00748ced6467e

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 20295d21419bfcca092644f7e2f2138ff947a6eb8cfc732c09cc7d76988d4a89
MD5 cf3676e2e2f3da2cffd90222d2625285
BLAKE2b-256 2e80f4c9e255ff236e6a69ce44b927629cefc1b63d3a00e2d1c9ed540c9492d2

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 1063c5748be36344c7e18c7913c53e2cca116764c2080177e57d62c7ad4576d1
MD5 8df2442a1732826d35946d8f15f6e659
BLAKE2b-256 2a40c66ff3a21af6d62a7e0ff428d12002c4e0389f776d3ff96dcaa0bb354eee

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86b6e7dc2e7ad1b3757e8a24597415bafcfb454cebf9a33a01f2e6ba2e663992
MD5 0a826d287a75e42fbf7a653ec577f9ce
BLAKE2b-256 61b4b80d1fe33015e782074e96bbbf4108ccd283b8deea86fb43c15d18b7c351

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 811229fde1652fedcca7c6dfe76724d0908775b353556d8a71ed74d866f73f7b
MD5 730f133cf92ed99cd11418f774ea8dbb
BLAKE2b-256 ea9bf36db825b1e9904c3a2646439cb9923fc1e09208e2e071c6d9dd64ead131

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 084cec29713bc9d4189a937f8a35dbdfa785bd1235a34c1124fe2323821ee93f
MD5 9d89ef51fe559919d99d81a1bf7044a9
BLAKE2b-256 30efe07dbfcb2f85c84abaa1b035a9279575a8da0236305491dc22ae099327f7

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 10c7674f81e6e350fcbed7c09a65bca9356eaab27fb2dac65a1e440f2bcfe30f
MD5 5748f00f8ea4c44b7e0b3ab7670ecc20
BLAKE2b-256 22eb57492b2568eea1d546da5cc1ae7559d924275280db80ba07e6f9b89a914b

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: tiktoken-0.7.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 798.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tiktoken-0.7.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 21a20c3bd1dd3e55b91c1331bf25f4af522c525e771691adbc9a69336fa7f702
MD5 af7dd442b50aa644484fe47b770cc4bc
BLAKE2b-256 ec1fa5d72755118e9e1b62cdf3ef9138eb83d49088f3cb37a9540025c81c0e75

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8e58c7eb29d2ab35a7a8929cbeea60216a4ccdf42efa8974d8e176d50c9a3df5
MD5 f355552a2d98bd1dae9caf2dd46d26d2
BLAKE2b-256 f26c83ca40527d072739f0704b9f59b325786c444ca63672a77cb69adc8181f7

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp310-cp310-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp310-cp310-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 13c94efacdd3de9aff824a788353aa5749c0faee1fbe3816df365ea450b82311
MD5 6d0378fd95c6fd7c4def430d2599a9aa
BLAKE2b-256 724061d6354cb64a563fce475a2907039be9fe809ca5f801213856353b01a35b

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d4511c52caacf3c4981d1ae2df85908bd31853f33d30b345c8b6830763f769c
MD5 9beccdf72ea0b0e22c91e43e0da2391d
BLAKE2b-256 e78c7d1007557b343d5cf18349802e94d3a14397121e9105b4661f8cd753f9bf

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 79383a6e2c654c6040e5f8506f3750db9ddd71b550c724e673203b4f6b4b4590
MD5 03d219a4f53dbaf974b458cd06a9fab9
BLAKE2b-256 b9abf9c7675747f259d133d66065106cf732a7c2bef6043062fbca8e011f7f4d

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e54be9a2cd2f6d6ffa3517b064983fb695c9a9d8aa7d574d1ef3c3f931a99225
MD5 8332d3960950853fb42fa51fdfc130f3
BLAKE2b-256 f80cd4125348dedd1f8f38e3f85245e7fc38858ffc77c9b7edfb762a8191ba0b

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 485f3cc6aba7c6b6ce388ba634fbba656d9ee27f766216f45146beb4ac18b25f
MD5 6be4032cb86d0a0c6835fe966a5aface
BLAKE2b-256 961028d59d43d72a0ebd4211371d0bf10c935cdecbb62b812ae04c58bfc37d96

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: tiktoken-0.7.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 798.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tiktoken-0.7.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2bcb28ddf79ffa424f171dfeef9a4daff61a94c631ca6813f43967cb263b83b9
MD5 ec2f674cece5408ca899d291f29e5a4b
BLAKE2b-256 76652d12a268f0692fb0b7f4fb981301c4813729b5e00d8631c0465e396ebbe5

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d6d73ea93e91d5ca771256dfc9d1d29f5a554b83821a1dc0891987636e0ae226
MD5 43a7e3cbe799421c3518b03040dc48c5
BLAKE2b-256 d622cfd01b2c56beb165d3485f247a5838efdb0772c9fdba3ef6ca6e27dd02ff

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp39-cp39-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp39-cp39-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8a81bac94769cab437dd3ab0b8a4bc4e0f9cf6835bcaa88de71f39af1791727a
MD5 a9c64535014b56ef203979a1ce503f7c
BLAKE2b-256 c2ee031d60260581d2e277eacb8cf0a503726ef924f96c0702dea030aa7b7bef

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e215292e99cb41fbc96988ef62ea63bb0ce1e15f2c147a61acc319f8b4cbe5bf
MD5 13594f79f3b82811d888a808b44317b4
BLAKE2b-256 d195f5df043cbde71a0a9c1c9e6038e8cd9e40526e6f9b9f72d7574ea374eb35

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2ee92776fdbb3efa02a83f968c19d4997a55c8e9ce7be821ceee04a1d1ee149c
MD5 29d2ce29e426d8ddbde67315dac5d99f
BLAKE2b-256 381af2a8928e6088e47073ddf6869ea733f54d21320f3ceec4aaf3440572a816

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d57f29171255f74c0aeacd0651e29aa47dff6f070cb9f35ebc14c82278f3b25
MD5 4bad1ebb426f23639797a680e23b3669
BLAKE2b-256 659084a85b7122853188c343bcf2321f9cec7424ed5cfaedac36a0ada03e9351

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cabc6dc77460df44ec5b879e68692c63551ae4fae7460dd4ff17181df75f1db7
MD5 839c48f3d8ccacfca4f538732aef5642
BLAKE2b-256 ca318382f774468d8e014c6a9b0cbce7463928a3e1d7cb32e3d7e6b10f83f215

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: tiktoken-0.7.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 798.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tiktoken-0.7.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 131b8aeb043a8f112aad9f46011dced25d62629091e51d9dc1adbf4a1cc6aa98
MD5 1b79881dacd0be7e0407d815fdd1350e
BLAKE2b-256 252693a0008eb770141cad7733b7abc1315c64ec86ec60a3578d275eb10d42cf

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp38-cp38-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp38-cp38-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c72baaeaefa03ff9ba9688624143c858d1f6b755bb85d456d59e529e17234769
MD5 815393ef244101248d406b67717915b5
BLAKE2b-256 fe6dc3a72b0f7edfec7502277d2b482fb0ce6744901963040a331cabe072706e

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp38-cp38-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp38-cp38-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 fffdcb319b614cf14f04d02a52e26b1d1ae14a570f90e9b55461a72672f7b13d
MD5 d902e09179eb69b4e42f0d06c56eb859
BLAKE2b-256 0ba991adbd2c639ab769539ec7a9e848bbaba85d3405826b098329a244fa3c20

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54031f95c6939f6b78122c0aa03a93273a96365103793a22e1793ee86da31685
MD5 157eb760952acf551802a3d5c4dcc63e
BLAKE2b-256 77bae4149aa0724a5268ab10014a028668c6ef8834862f955ef0c6758240f6d1

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 861f9ee616766d736be4147abac500732b505bf7013cfaf019b85892637f235e
MD5 37bce220eaf8372e46b144720e4eb595
BLAKE2b-256 1e4339ab47b3915f1172ec3857f3c0d361281e08b6de251fec81ce5cfd762fe1

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f5f6afb52fb8a7ea1c811e435e4188f2bef81b5e0f7a8635cc79b0eef0193d6
MD5 3b30c6b7ae4ca01d2a344ef123565cc0
BLAKE2b-256 e6049a2b978beea18ef8916319e51f6d079c804062df80c63f0392202e5ddf10

See more details on using hashes here.

Provenance

File details

Details for the file tiktoken-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tiktoken-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2398fecd38c921bcd68418675a6d155fad5f5e14c2e92fcf5fe566fa5485a858
MD5 83c6d9d259eb4a8b1b226cc9ef74aab0
BLAKE2b-256 37f3f2beec797daae3b03d75d4dd8925e9425f3939d8de903e412dc3fa7a9636

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page