Skip to content

Align diffusion bundles with metadata.json v0.2 schema#33

Merged
stikves merged 2 commits into
apple:mainfrom
stikves:sukru/diffusion-metadata-alignment
Jun 12, 2026
Merged

Align diffusion bundles with metadata.json v0.2 schema#33
stikves merged 2 commits into
apple:mainfrom
stikves:sukru/diffusion-metadata-alignment

Conversation

@stikves

@stikves stikves commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Diffusion exports now produce metadata.json (same v0.2 schema as LLM and segmenter bundles) instead of the legacy pipeline.json format.

The pipeline config lives under a "diffusion" key in metadata.json, alongside standard fields (kind, name, assets, source, compression, compilation) shared by all bundle types.

Swift runner: reads metadata.json first. If only pipeline.json is found, prints a deprecation error to stderr and asks for a clean export, the message will be removed in upcoming weeks.

Diffusion exports now produce metadata.json (same v0.2 schema as LLM
and segmenter bundles) instead of the legacy pipeline.json format.

The pipeline config lives under a "diffusion" key in metadata.json,
alongside standard fields (kind, name, assets, source, compression,
compilation) shared by all bundle types.

Swift runner: reads metadata.json first. If only pipeline.json is
found, prints a deprecation warning to stderr and loads it as a
fallback. pipeline.json support will be removed in 30 days.

Closes #TBD (deprecation tracking issue)
@stikves stikves self-assigned this Jun 12, 2026
@stikves stikves force-pushed the sukru/diffusion-metadata-alignment branch from 602d0cc to b949460 Compare June 12, 2026 20:10
Comment thread python/src/coreai_models/diffusion/pipeline.py
Comment thread python/src/coreai_models/diffusion/pipeline.py

@carinapeng carinapeng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to merge this, but some considerations for more validation as we go through different iterations of assets, would prefer to have it in this PR or a follow up

@stikves stikves force-pushed the sukru/diffusion-metadata-alignment branch from 88b84db to 8ddbdd1 Compare June 12, 2026 22:14
@stikves stikves merged commit 2d9497a into apple:main Jun 12, 2026
3 checks passed
@stikves stikves deleted the sukru/diffusion-metadata-alignment branch June 12, 2026 22:30
stikves added a commit to stikves/coreai-models that referenced this pull request Jun 13, 2026
Diffusion exports now produce metadata.json (same v0.2 schema as LLM
and segmenter bundles) instead of the legacy pipeline.json format.

The pipeline config lives under a "diffusion" key in metadata.json,
alongside standard fields (kind, name, assets, source, compression,
compilation) shared by all bundle types.

Swift runner: reads metadata.json first. If only pipeline.json is
found, prints an error, which will be removed in upcoming weeks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants