mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2238] [CLOSED] test: exercise uncached BPE paths in tokenizer parity checks #3940
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3940
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2238
Author: @mustafaerdinc
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:fix/tokenizer-cache-parity📝 Commits (1)
52a943atest: exercise uncached BPE paths in tokenizer parity checks📊 Changes
1 file changed (+69 additions, -4 deletions)
View changed files
📝
serve/test_detok.py(+69 -4)📄 Description
Summary
Tokenizer parity checks can reuse cached piece IDs from a previous algorithm and pass without executing the requested scan, heap, or default path. Clear the cache between comparisons and add regressions that prove deliberately incorrect output is detected.
Related to the investigation in #1385. This test coverage change does not establish the cause or resolution of that intermittent crash.
What changed
Validation
a0116b2, ran the following on macOS arm64 with CPython 3.14.8 and the model tokenizer files available: 24 tests passed, zero skips, in 18.825 seconds.Extra Notes
The threaded wrapper proves test coverage, not the cause or resolution of #1385. The original-workload and minimal-reproducer investigation remains separate; this PR should not close that issue.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.