feat(imf): multi-part release assets + one-command publish - #11
Merged
Conversation
…publish
heb-diac-1.0 fp32 (2.59 GiB) exceeds GitHub's hard 2GiB per-asset cap.
models.yaml entries may now carry parts: [{url, sha256, size}]; the
registry streams parts in order, verifies each sha256 as it lands, and
checks the assembled file against the whole-file sha256 — the cache
contract is identical to single-file models.
- scripts/split_release.py: split + per-part sha256 + models.yaml block
- scripts/publish_model.py: validate (strict) -> split -> GH Release ->
models.yaml entry -> release branch -> PR; idempotent re-runs
- runtime registry: parts resolution + tests (assembly, corrupt-part
rejection, verified cache hit)
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.
Summary
parts: [{url, sha256, size}]for artifacts over GitHub's hard 2 GiB per-asset cap (heb-diac-1.0 fp32 is 2.59 GiB; its earlier upload failed HTTP 422)scripts/split_release.py— split a zip into ≤1.5 GB parts with per-part sha256 + generated models.yaml blockscripts/publish_model.py— one command: strict-validate → split → GH Release → models.yaml entry → release branch → PR (idempotent re-runs; refuses to touch main)Test plan
runtime/tests/test_registry.py— parts assembly, corrupt-part rejection by index, verified cache hit (6/6 pass)Model.load("heb-diac-1.0")resolves over HTTP