toktier-fastokens
This distribution is a pinned build of fastokens 0.3.1 carrying the toktier
patch set 1. It keeps the upstream import name fastokens, so install either
this distribution or the upstream one, not both. The toktier project
publishes it for its own explicit experimental adapter; it is not affiliated
with or endorsed by the upstream project. Reports about the id divergences
the patch set addresses have been submitted to the upstream project.
It provides the same import name as upstream:
import fastokens
so it is a drop-in for code written against fastokens 0.3.1.
Install only one of the two
Both distributions install a top-level fastokens package. Installing this
one beside upstream fastokens in the same environment leaves whichever was
installed last in place, silently, with two sets of metadata pointing at the
same files; uninstalling either of them then removes the shared files. To
keep only the pinned build, reinstall rather than uninstall one of the two:
pip uninstall -y fastokens toktier-fastokens
pip install "toktier[fastokens]"
or, to keep upstream instead:
pip uninstall -y fastokens toktier-fastokens
pip install fastokens
If other code needs the upstream distribution, use a separate environment; the two cannot coexist under one import name.
What the patches change
Five patches close cases where the engine returned a token-id list that
differs from the reference tokenizer for the same input, with no error
raised, or refused an input the reference accepts; a sixth adds a notice
line to each modified source file. CHANGES-toktier.md lists them one by
one, NOTICE states which files each one touches, and PATCHES/ carries the
patches verbatim.
Applying patches 0001 to 0005 in order to upstream commit
fe854299553524f2156a22036a2cb4d1f2ef4d97 (tag v0.3.1) reproduces the
source tree the 0.3.1.1 wheel comes from: git tree hash
aa1924284ec4abaedcc8ed5823ee17e7959c55c5.
Rebuilding
packaging/fastokens-pinned/build_pinned.sh in the toktier repository
rebuilds this distribution from a clean upstream checkout with a pinned Rust
toolchain and a pinned maturin. It checks the patch digests and the resulting
tree hash before it builds.
Licensing
Upstream fastokens is Apache-2.0; the upstream LICENSE text is included
verbatim, as is the upstream NOTICES.txt (also reproduced inside NOTICE,
which carries the statement of modification required by section 4(b)). The
license texts of the compiled dependency closure are collected in
THIRD_PARTY_LICENSES-fastokens.txt.
What toktier reports about it
toktier recognises the wheels it publishes by the content digest of the
installed fastokens/ package and reports what it knows as
engine_assurance next to the adapter's admission word. When the installed
bytes are a published wheel, that reads certified_pinned and the readings
toktier took on that wheel apply; the upstream distribution reads
upstream_build, and a wheel built elsewhere, from this sdist or otherwise,
reads unrecognized_build, because the readings are about specific bytes.
The adapter itself remains an explicit experimental route in toktier and is
never selected automatically. See the toktier documentation for the full list
of states.
Metadata
Release files for toktier-fastokens 0.3.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toktier_fastokens-0.3.1.2.tar.gz | 833.9 kB | Without provenance | Details for toktier_fastokens-0.3.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toktier_fastokens-0.3.1.2-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details for toktier_fastokens-0.3.1.2-cp39-abi3-manylinux_2_28_x86_64.whl |
Total release size: 4.4 MB
Release files / toktier_fastokens-0.3.1.2.tar.gz
| Download URL | toktier_fastokens-0.3.1.2.tar.gz |
|---|---|
| Size | 833.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b0d1ffd43023750bc7956bd8d50c6c818dcafdc1abd1b782cdf5ce28519fb30
|
|
BLAKE2b-256 checksum How to use checksums |
c04edac6438c9419940311a26cc85db14904e529cdd2d0e72791e3ef4d0c76f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / toktier_fastokens-0.3.1.2-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | toktier_fastokens-0.3.1.2-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ad10936dd941ebd505efa37943b683aef9abd32ccd45fd9aa3661a8d4a640b48
|
|
BLAKE2b-256 checksum How to use checksums |
6063090a8cf6376f9fb6edf798163579ab114b64b2f30f96b8152b0df2f16f54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for toktier-fastokens 0.3.1.2
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.