mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1186] [CLOSED] setup: --draft-vocab es - the English/code subset plus the tokens of Spanish text #3295
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#3295
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/1186
Author: @txiki739
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:draft-vocab-es📝 Commits (1)
5b68bf3setup: --draft-vocab es - the English/code subset plus the tokens of Spanish text📊 Changes
4 files changed (+52 additions, -9 deletions)
View changed files
➕
data/draft_vocab_es.bin(+0 -0)📝
docs/DETAILS.md(+8 -0)📝
setup.py(+9 -6)📝
tools/test_setup_draft_vocab.py(+35 -3)📄 Description
What
--draft-vocab es: the English/code subset plus the tokens of Spanish text, built exactly the way the French subset was (#597):tools/draft_vocab.py --corpus, coverage 0.99, on top ofdata/draft_vocab_en.bin.Spanish answers draft poorly with the shipped subsets: 27.3% of the token occurrences of Spanish text fall outside
draft_vocab_en.bin, and the draft head cannot propose those.data/draft_vocab_es.bin:draft_vocab_en.binplus 6,671 tokens (47,196 ids), from 10 Spanish Wikipedia articles (España, Madrid, Miguel de Cervantes, Idioma español, Unión Europea, Literatura española, Gastronomía de España, Economía de España, Guerra civil española, Segunda Guerra Mundial; 1.31 M characters, 326,738 tokens):setup.py:"es"inDRAFT_VOCABS/--draft-vocab(~155 MiB head on IQ3_S, betweenfrandcyrillic), shipped likefr: a later--draft-vocab cjk/enreplaces it, a subset made by hand stays.docs/DETAILS.md: the subset and what it measured, next to the French one.tools/test_setup_draft_vocab.py:esreplaces a shipped subset and back, keeps theenids first in their order, its MiB estimate, no small-card note when chosen.The default subset (
cjk) is unchanged.Coverage
enesMeasured
RTX 3090 + Ryzen 7 5700X, UD-IQ4_XS, greedy, three Spanish prompts (a chat answer, a reasoning answer, an 18K-token document summary) x 2 passes. Only the draft subset file differs between the arms.
enesTo be clear about the engine: these acceptance numbers come from a 0.1.30-based fork engine (eddoursul's) whose draft head reads the same
mtp/rt/draft_vocab.binsubset file; I have not rerun them on 0.1.40. The coverage numbers are the tool's own and engine-independent.Tests
python -m unittest tools.test_setup_draft_vocab tools.test_draft_vocab: 13 tests, OK.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.