Repository navigation
feat(vocabulary): load the slot model from the parrotflow-syrinx package - #392
Conversation
The slot model now comes from znaat/parrotflow-syrinx-coreml at fcf309cf, as parrotflow-syrinx-fp16.mlpackage. It is one fp16 package with three functions: parse, ner and mask. mask is the mmBERT-small-64 program added unchanged. SlotModel loads it with functionName "mask". parse and ner ride along for a later change. The cache moves to models/parrotflow-syrinx-fp16. Once the new model has loaded, the old models/mmbert-small-64 folder (282 MB) is removed through RetiredModels, which now takes the cache to prune. The download row reads "ParrotFlow Syrinx", 283 MB, peak 584 MB. check-slot-tokenizer.sh fetches from the new repository and revision. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
Automatic reviews are disabled for this repository. |
WalkthroughThe slot model now fetches the pinned ParrotFlow Syrinx package and selects its Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Merge Risk:
|
The vocabulary slot gate now loads its model from
znaat/parrotflow-syrinx-coremlatfcf309cf, asparrotflow-syrinx-fp16.mlpackage. That package is one fp16 Core ML program with three functions:parse,nerandmask.maskis today's mmBERT-small-64 program, added unchanged, so the gate answers exactly as before.parseandnershare the same weights and ride along, so a later parser change needs only its small heads file, not a second big download.For users: one download of 283 MB in place of 282 MB, shown as "ParrotFlow Syrinx" on the setup and download screens. Once the new model has loaded, the old
models/mmbert-small-64folder (282 MB) is deleted. Nothing else changes: every check script and every gate decision is identical to main.Review first:
SlotModel.swift(repository, revision,functionName = "mask", the cache name) and the prune call after the first successful load.What changed in the code: SlotModel, RetiredModels, one script, docs
SlotModel: new repository and pinned revision. OnecacheName,parrotflow-syrinx-fp16, names the package, the cache folder, the compiled.mlmodelcand the lock. A new folder, becauseisCachedonly checks that files exist.parrotflow-syrinxwas not reused: in the HF repository and in old dev caches that name holds the earlier fp32 parse-only package.load()setsfunctionName = "mask", because the package's default function isparse.SlotModel.preparecallsRetiredModels.prune(.mmBERTSmall, ...). It takes the oldmmbert-small-64.lockfirst, as the ModernBERT prune already does, so an older build still fetching into that folder is left alone.RetiredModelstakes the cache to prune (Cache.modernBERT,Cache.mmBERTSmall) instead of a hard-coded name. Launch still prunes ModernBERT.SlotModel.download, so no other place names the model.scripts/check-slot-tokenizer.shfetches from the new repository and revision, and reads the new cache folder.tokenizer.jsonis the same file (same sha256), sotests/slot-tokenizer-cases.jsonis unchanged.SlotModel,slotdownload id).The HF upload: one new commit, nothing existing changed
Commit
fcf309cf35dad30cbbb92ddfb3f3c09a5961fd87onznaat/parrotflow-syrinx-coremladded:parrotflow-syrinx-fp16.mlpackage/(Manifest.json, model.mlmodel 906,561 B, weight.bin 282,433,408 B)config.jsonandtokenizer_config.json, the same blobs asznaat/mmbert-small-coremlata983542README.md: the three functions and their inputs, the sources, the tool versions (torch 2.7.0, coremltools 9.0, transformers 4.48.3)tokenizer.jsonwas already there and is the same file. The oldparrotflow-syrinx.mlpackage,syrinx.safetensorsandcut-filter.safetensorsare untouched.The
parsefunction takes the G and S LoRA adapters as fp16 inputs, so a new adapter fine-tune needs no re-export. Its outputs are bit-equal to the adapters-as-constants build on 200 of 200 rows.Checks: 12 scripts, output identical to main line for line
Each script ran twice in scratch homes: on main's release binary with today's mmBERT-small-64, and on this branch with the new package. No live config or app folder was used.
check-slot-tokenizeralso passed from an empty home, fetching the tokenizer files from the new revision as CI does.Fresh download and the old folder: 15 s end to end, old folder removed
In an empty scratch HOME,
--slot-modelon this branch's release binary downloaded the package from HF, compiled it and loadedmaskin 15.1 s. It reports inputsinput_ids,attention_mask[1, 64] and outputlogits[1, 64, 256000]. The cache holds the compiled model and the three tokenizer files; no staging folder or.mlpackageis left. A second run loads from cache in 0.1 s.Then a copy of an old
mmbert-small-64folder and its lock were put beside it. The next--slot-modelloaded the new model and loggedmodels: removed the retired mmBERT-small cache, about 282 MB. The folder and the lock were gone.The app's own onboarding fetch (
Transcriber.warmSlotModel) calls the sameSlotModel.prepare. It was not driven here: from the command line it only runs inside--warm-models, which also downloads Parakeet.Live gate: every decision and output identical to main
syrinx_full/app.py(bench and French harness), main's release binary at0a3023b0with today's mmBERT-small-64 against this branch with the new package, same session, fresh scratch homes.--slot-gap,--word-gate)"Differ" compares whole rows: the decision, the slot-call count, and for French the output text, the vocabulary log lines and every pipeline variable except timings.
Before upload, the package's
maskwas checked against the shipped mmBERT-small-64 on 641 probes: bit-equal 641/641, top 60 identical 641/641.🤖 Generated with Claude Code
https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2