Skip to content

docs: file Limitations as tracked issues and link them from the README - #9

Merged
Mirdula18 merged 1 commit into
mainfrom
docs/limitations-issues
Jul 31, 2026
Merged

docs: file Limitations as tracked issues and link them from the README#9
Mirdula18 merged 1 commit into
mainfrom
docs/limitations-issues

Conversation

@Mirdula18

Copy link
Copy Markdown
Owner

Follow-up to #1, which merged while this was being written.

Files each README limitation as a tracked issue (#2-#8) and links them from
the README, so the summary and the detail cannot drift apart.

Also corrects a false claim in the pre-tokenization bullet. It said the
translated regexes were "semantically equivalent to the originals for
virtually all practical text". Differential testing against the installed
tiktoken_ext/openai_public.py shows the GPT-4 pattern diverges on the most
common construct in prose:

input upstream cl100k ours
"hello world" ['hello', ' world'] ['hello', ' ', 'world']
"foo_bar" ['foo', '_bar'] ['foo', '_', 'bar']

Corpus scale, first 200 KB each: english 41,751 upstream pre-tokens vs 70,557
ours (+69%), python +43%, tamil +20%. Since pre-tokens are the unit BPE
trains and encodes over, this understates every compression number in the
results table.

Tracked in #2 with a one-class fix verified to match upstream 100% across
600 KB spanning three scripts. Not applied here — it changes every published
number and warrants its own PR plus a regeneration.

Docs only; no source changes. 299 tests pass locally, ruff and mypy clean.

Each limitation now has a GitHub issue carrying the evidence and acceptance
criteria (#2-#8); the README keeps the one-line summary and links out.

Corrects the pre-tokenization bullet, which claimed the translated patterns
were "semantically equivalent to the originals for virtually all practical
text". Differential testing against the installed tiktoken shows the GPT-4
pattern diverges on leading-space attachment -- "hello world" splits as
['hello', ' ', 'world'] where cl100k gives ['hello', ' world'] -- inflating
pre-token counts by ~69% on English. Tracked in #2 with a verified fix.

@Mirdula18 Mirdula18 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation review completed. The information is complete, easy to understand, and aligns with the implementation. Approved

@Mirdula18
Mirdula18 merged commit 8ce3a53 into main Jul 31, 2026
2 checks passed
@Mirdula18
Mirdula18 deleted the docs/limitations-issues branch August 1, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant