mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5416] [Engine] Metal, 48 GB Mac: Unsloth v3.1 UD-Q2_0 streamed from SSD decodes garbage tokens (0.2.11 / engine 0.1.57) #3236
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#3236
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 @martinshane on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5416
Desktop app, Terminal or source?
Terminal (
strata install+strata launch)What happened
Unsloth's Dynamic v3.1 UD-Q2_0 (revision d9620119) loads and decodes at ~28 tok/s, but every output is garbage tokens until max_tokens. A trivial prompt, "What is the capital of France? Answer in one short sentence." (thinking off, temperature 0.7), returned:
Thinking-on requests do the same (long runs of
mmmm).strata update's test start passes ("answered one token"), so it doesn't catch this.Expected: normal text. The same Mac ran the ISTA-DASLab GSQ-RCO Q2_0 pack correctly in October (engine 0.1.50, streaming).
What I ruled out (all still garbage):
STRATA_ROUTE_TAIL_SKIP=0.expertsstreaming copy aside, so experts stream from the repacked GGUF itselfmetal_repack.py --verifyreported "1223 tensors, SHA-256 identical to the source shards", andstream_experts.py --verifyreported "48 layers x 512 experts identical to the GGUF"My guess: the Metal streaming path for the v3.1 expert types (i-quant / Q2_0 experts with Q5_0 / IQ4_NL downs). mac_fit lists UD-Q2_0 as "not measured streaming", and the Mac measurements I could find are resident on a 128 GB M5 Max.
Second bug found on the way (install)
strata install --family unsloth --model UD-Q2_0stops at step 6 after the full download:In Control mode
setup.py run()only allows tools underROOT/toolsandROOT/tools/dsv41, butmac_tools_dir()isROOT/metal/tools, sometal_repack.pyand thenstream_experts.pyare refused even though both ship in the bundle. Still the same on origin/HEAD (9f7d977d). Workaround: run both tools by hand with the same arguments, write their.donemarks, then rerunstrata install.Smallest steps or command that reproduce it
Reproduction status
Reproduces every time (3 engine starts, every request).
Strata version
strata 0.2.11 (build 0.1.57), engine component 0.1.57-macos-arm64-metal
Graphics card, memory and system
Apple M4 Pro, 48 GB unified memory, macOS 26.6.2, internal SSD
Model, size and settings
Qwen3.8-Flash-Next (Unsloth) UD-Q2_0 v3.1, context 65536, pictures on (GPU), drafting off, STRATA_METAL_KEEP_FREE_GB=10. Experts stream from the SSD (arena 14.1 GB with the .experts copy, 7.4 GB without).
Logs
Engine command line and stream lines:
iq_pack output:
conversions.json: 291 tensors converted to the engine's form (96 exact, 195 rounded; max |err| 0.0262),compat-bf16: 195 tensors, 1.18 GiB.I've deleted the files for now to free disk, but I'm happy to re-download and test a fix.
@github-actions[bot] commented on GitHub (Nov 6, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md