mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3846] [Engine] A Portuguese draft subset (--draft-vocab pt): 25% of Portuguese tokens are outside the shipped subsets #1636
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#1636
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?
Originally created by @klvnblst on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3846
Area
[Engine] (speed, kernels, models, the server and API)
What do you want to do?
A shipped draft subset for Portuguese,
--draft-vocab pt, built the same way asfr(#597): the English/code subset plus the tokens of a Portuguese corpus.Why. About a quarter of a Portuguese text's tokens can never be drafted with the shipped subsets.
tools/draft_vocab.py --corpuson 2,000 Portuguese Wikipedia articles (1,104,839 token occurrences) says:cjk(the default)enfren+ this corpus at--coverage 0.99(54,148 ids, 13,623 added)Brazilian and Portuguese users talk to the model in Portuguese and mostly ask for code, so their answers mix Portuguese text with code.
What I measured (one machine, the reporter's own):
5c8dd322), prebuilt engine 0.1.48 (CUDA 13).--spec 4 --spec-min-p 0.5, calibrated settings.--mtp-draft-vocab <the pt subset>.predicted_per_second, and acceptance isdraft_n_accepted / draft_n, from the answer'stimings.Limits.
fr.How the subset was built.
wikimedia/wikipedia, config20231101.pt, fetched as rows from the Hugging Face datasets-server API (100 rows at offsets 1000 + k * 54000, k = 0..19, first 6,000 characters of each).python tools/draft_vocab.py --gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --base data/draft_vocab_en.bin --corpus wiki_pt.txt model_pt.txt --coverage 0.99 --out draft_vocab_pt.binRelated: #597 (
fr, the same approach) and #1963 (a withdrawnlatinsubset that would also have covered Portuguese accents).What do you do today instead?
I run the subset by hand with
--mtp-draft-vocab <file>in the model's config. Setup run again does not keep engine options added by hand toargs(carry_overin setup.py lists them inargs_dropped), so after every re-run the user has to add it back. A named--draft-vocab ptwould be remembered like the other subsets.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
--batch-groups auto#3573--adapt-async 1beside slots) #3576