mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2195] [CLOSED] setup --update: an MTP folder shared by several configs keeps the draft subset of the most recently used one (the oldest config's default subset replaced cyrillic: Russian decode 68 -> 54 tok/s) #3915
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#3915
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/2195
Author: @bulhenvaster
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:fix/update-shared-mtp-draft-vocab📝 Commits (1)
9ff45f2setup --update: an MTP folder shared by several configs keeps the draft subset of the most recently used one (the oldest config's default subset replaced cyrillic: Russian decode 68 -> 54 tok/s on an RTX 5060 Ti + RTX 3060, IQ3_XXS)📊 Changes
2 files changed (+65 additions, -2 deletions)
View changed files
📝
setup.py(+21 -2)📝
tools/test_setup_draft_vocab.py(+44 -0)📄 Description
Title
setup --update: an MTP folder shared by several configs keeps the draft subset of the most recently used one
Issue: none open that I could find (searched issues and pull requests for "draft vocab update cyrillic" and "draft subset shared mtp").
Summary
setup.py --update(update.sh/UPDATE.bat) refreshes the draft subset once per installed config, most recentlyused first. When two configs name the same MTP folder, the folder ends with the subset of the config used longest
ago. A config without
"draft_vocab"counts ascjk, so it puts the default subset over thecyrillic(orfr,en) one of the config that is actually in use.Seen on one install after the update to 0.1.43:
strata-iq3_xxs.jsonhas"draft_vocab": "cyrillic", an olderstrata-iq3_xxs-helper.json(same model, another GPU mode, same--mtpfolder) has no key. Afterupdate.shthefolder's
draft_vocab.binwas byte-identical todata/draft_vocab.bin, and the engine started withdraft head over 106299 tokensinstead of58963.Measured on that install (RTX 5060 Ti 16 GB + RTX 3060 12 GB with
--peer-device, Xeon E5-2683 v4, IQ3_XXS, engine0.1.43, Linux), a greedy 600-token Russian story, two alternating runs per subset:
English prose and code were within the run-to-run spread between the two.
What changed
setup.py:update_installcalls a newrefresh_shared_draft_vocab(cfg, done), which refreshes an MTP folder once,for the first (most recently used) config that names it, and skips the folder for the later ones.
refresh_draft_vocabitself is unchanged.tools/test_setup_draft_vocab.py: three tests - the most recently used config decides for a shared folder, separatefolders each keep their own subset, a config without
--mtpis skipped.What it leaves alone: an install where every config has its own MTP folder, or where all configs choose the same
subset, gets exactly the files it got before. Starting a model still installs that config's own subset (so starting
the older config switches a shared folder, as before); only the update path is changed. No engine code is touched.
How I checked:
python -m unittest tools.test_setup_draft_vocab(10 pass, 3 new),tools.test_setup_configandtools.test_setup_configs(18 pass). No GPU or download is involved in the change.Extra Notes
Not tested on Windows or with the AMD engine; the changed code is pure file work and has no platform branch.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.