Skip to content

QVAC-29104 import the diffusion engine into Fabric - #666

Merged
gianni-cor merged 1 commit into
temp-12429from
QVAC-29104/import-diffusion
Dec 4, 2026
Merged

gianni-cor merged 1 commit into
temp-12429from
QVAC-29104/import-diffusion

Conversation

@ogad-tether

Copy link
Copy Markdown

Imports the diffusion engine from tetherto/qvac-ext-stable-diffusion.cpp@08a5801475eb6d6adf08c5f214027492b394ffd1 (the 2026-11-01 branch) under engines/diffusion. The import base is 26 commits ahead of the source pin in stable-diffusion-cpp 2026-11-01#5. Base branch: temp-12429.

Enable with FABRIC_BUILD_DIFFUSION=ON. Diffusion shares the root GGML target and needs a minimum tensor name length of 160 bytes. The in-tree build supplies that value to the whole build. Separately built runtimes, plugins and SDK consumers must agree on the tensor ABI. Optional codec and frontend submodules retain their source revisions. Linux and macOS CI run the engine tests on changes to the engine and shared GGML.

Verification

  • macOS arm64, Apple M2, Release with Metal and Core ML built. All 25 registered engine tests passed.
  • A separate CMake consumer found the installed engine, linked, initialized defaults and discovered Metal. A second linked against the registry's stable-diffusion::stable-diffusion package configuration and exercised the SDK's frame owner.
  • Configured llama, speech and diffusion together with llama and diffusion tests enabled.
  • Full SDK prebuilds, shared-runtime packaging, real-model quality comparisons and CUDA coverage remain outstanding.

Keep the existing diffusion repo active through review. Reconcile source commits that land after the snapshot before the coordinated cutover. Tracking: https://app.asana.com/1/45238840754660/project/1214153063536860/task/1221050586917211

AI assistance: Codex prepared the import, CMake integration and local validation.

Import tetherto/qvac-ext-stable-diffusion.cpp at 08a5801475eb6d6adf08c5f214027492b394ffd1 (2026-11-01). Build the engine against the parent ggml target, preserve the optional frontend and codec submodules, and exercise the engine tests on Linux and macOS.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpypi/​numpy@​2.3.57510010010070
Addedpypi/​einops@​0.8.297100100100100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Low priority
System shell access: pypi einops

Location: Package overview

From: engines/diffusion/script/requirements-flux2-coreml.txt → pypi/einops@0.8.2

ℹ Read more on: This package | This alert | What is shell access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/einops@0.8.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Dynamic code execution: pypi einops

Location: Package overview

From: engines/diffusion/script/requirements-flux2-coreml.txt → pypi/einops@0.8.2

ℹ Read more on: This package | This alert | What is dynamic code execution?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Avoid packages that use dynamic code execution like eval(), since this could potentially execute any code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/einops@0.8.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Review Status

Current Status: ❌ PENDING
Approvals so far: none

Pending reviews: Needs 1 Management or Team Lead, and 1 more from Management, Team Lead, or Member.

@ogad-tether
ogad-tether marked this pull request as ready for review December 4, 2026 00:06
@ogad-tether
ogad-tether requested review from a team as code owners December 4, 2026 00:06
@ogad-tether ogad-tether self-assigned this Dec 4, 2026
@gianni-cor
gianni-cor merged commit d72fdfc into temp-12429 Dec 4, 2026
59 of 60 checks passed
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