[Core] Add shared Hugging Face artifact identity and state repository - #734
Open
op109lvb wants to merge 1 commit into
Open
[Core] Add shared Hugging Face artifact identity and state repository#734op109lvb wants to merge 1 commit into
op109lvb wants to merge 1 commit into
Conversation
op109lvb
requested review from
beiguo218,
pallasathena92,
slin1237 and
truddy0
as code owners
August 11, 2026 06:24
|
Please run the following locally and commit the fixes: pre-commit run --all-files
git add -u && git commitSee CONTRIBUTING.md for setup instructions. |
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.
What this PR does
Adds the foundation for shared Hugging Face artifact tracking in model-agent.
This includes HF artifact identity parsing from model annotations, canonical artifact key/path generation, shared parent artifact state in the node ConfigMap, and a repository for lock-safe parent/child reference updates.
Why we need it
HF-origin models can resolve to the same immutable artifact by
hf-model-id+hf-model-sha. A durable node-local state model lets model-agent track the shared parent artifact and its child model references safely.This also provides a migration path for the existing direct HF reuse and the foundation for HF-origin OCI Object Storage reuse.
This PR does not change model download behavior yet.
PR Plan
This is the first PR in the staged model-agent work:
Changes Made
HfArtifactKeyon model entries for child-to-parent lookup.How to test
Checklist
make testpasses locally