mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5167] [Engine] metal: TYPE_SIZE knows the agentionai trellis types 143-146, so a Gyro GGUF can be planned for streaming #5331
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#5331
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/5167
Author: @Flo5k5
Created: 11/4/2026
Status: 🔄 Open
Base:
main← Head:metal-repack-trellis-types📝 Commits (1)
2e5d9effix(metal): TYPE_SIZE knows the agentionai trellis types 143-146 so the streaming experts file can plan a Gyro GGUF (sizes from tools/gguf_reader.py)📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
metal/tools/metal_repack.py(+2 -1)📄 Description
Problem and result
metal/tools/metal_repack.pyfails withKeyError: 144when the Mac source setup prepares the streaming experts copy for a Gyro model: itsTYPE_SIZEtable stops at type 42 and knows nothing of the agentionai trellis blocks (143 PTQ1_0, 144 TQ2_T, 145 TQK6, 146 TQK7).After the patch,
./setup.sh --family gyro --model Gyro-Mcompletes end to end on an Apple Silicon Mac, and the engine serves the model.Trace (setup by sources,
./setup.sh --family gyro --model Gyro-Mon an Apple Silicon Mac):Related discussion
The sizes already exist in the tree (
tools/gguf_reader.py:"TQ2_T": (128, 34), "TQK6": (128, 26), "TQK7": (128, 30), "PTQ1_0": (128, 28)); this PR adds types 143-146 toTYPE_SIZEwith those sizes. One line of table, no behaviour change for existing types. The pair trellis types 147-149 (TQP5-7, Gyro-L) are not included: no sizes for them in the tree, and #4127 adds the Metal kernels separately. None needed from the maintainer beyond the review.Approach
A pure table extension: no kernel, no behaviour, no default changes. Compatibility: setups that never see a trellis-typed GGUF are untouched.
Validation
Passed:
./setup.sh --family gyro --model Gyro-M --yes --no-starton a MacBook Pro M5 Pro (20-core GPU, 64 GB), v0.2.6 source checkout + this patch: completes end to end - pack prepared (460 tensors), streaming experts copy written, start script generated.tools/strata_bench.pyrun passes (chat 25.7 tok/s median on streaming, 0 failed request): first Mac measurement of Gyro-M, community report to follow separately.Failed:
Not run:
Limits
Types 147-149 (Gyro-L pair trellis) stay out until their sizes exist in the tree (#4127 territory).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.