Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24943
Note: Links to docs will display an error until the docs builds have been completed. ❌ 136 New Failures, 7 Unrelated Failures, 10 Unclassified FailuresAs of commit f387dc6 with merge base c7f7931 ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Nov 12, 2026
to_native takes metadata, the package's counterpart to a PTE's constant methods, and save writes it as a metadata.json member: names mapped to a bool, number, string, or flat list of those. Package validates the member at load and reads integers and integer lists by name; exir.native's read_metadata reads it back in Python. LLM exports can then publish facts the graph does not carry, such as the per-layer sliding windows of an off-graph KV cache, under the names extension/llm/export/model_metadata.py already defines.
metascroy
force-pushed
the
offgraph-kv-ptn-metadata
branch
from
November 14, 2026 00:18
f5f4802 to
f387dc6
Compare
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack
Off-graph KV cache for the native ggml engine, through serving Muse Glimmer on it. Review bottom-up; each PR builds and passes its tests on its own.
Summary
A
.ptnhad no way to carry facts the graph doesn't, such as an LLM's per-layer sliding windows, which a PTE publishes as constant methods. This adds the counterpart:to_native(programs, metadata={...})saves ametadata.jsonmember: names mapped to a bool, number, string, or a flat list of those.write_ptnvalidates it and rejects non-finite floats.exir.native.read_metadata(path)reads it back.Packagevalidates the member's structure at load and reads values by name withmetadata_int/metadata_ints, which reject integers outsideint64.backends/native/README.mddocuments the member. LLM exports reuse the constant-method names fromextension/llm/export/model_metadata.py(get_windows, ...).Test plan
exir/native/test/test_native.py: metadata round-trips, no member without metadata, invalid names and values rejected.test_package.cpp: reads by name, rejects wrong types and malformed members. Run through a local CMake build; that file is only built by Buck.Authored with Claude Code.