Skip to content

feat(cpu): add Winograd F(2x2,3x3) route to conv2d extension - #2529

Closed
xingguangcuican6666 wants to merge 2 commits into
leejet:masterfrom
xingguangcuican6666:feat/cpu-conv2d-winograd-v2
Closed

xingguangcuican6666 wants to merge 2 commits into
leejet:masterfrom
xingguangcuican6666:feat/cpu-conv2d-winograd-v2

Conversation

@xingguangcuican6666

Copy link
Copy Markdown

Summary

Related Issue / Discussion

Additional Information

Checklist

Register sd.conv2d_avx2_v1.cpu as a GGML_OP_CONV_2D extension kernel on
CPU backends, gated to large F16-weight/F32-activation convs with stride 1
and dilation 1. Uses ggml's native thread pool (ggml_ext_cpu_parallel_v1)
with atomic dynamic task stealing and a thread-safe F16->F32 prepack cache.

Default behavior is unchanged: CPU auto probe still reports conv-direct off,
so the kernel is only usable via explicit --conv-direct vae=on.
Extend the CPU CONV_2D extension with a tile-batched Winograd F(2x2,3x3)
path for large 3x3 convolutions (IC/OC >= 256, spatial >= 32x32) while
keeping v1 implicit GEMM for up.0/conv_out and ggml native for the rest.
v1 and v2 share one weight cache with a pack-kind key and a 300 MiB budget.

Add SD_CONV2D_DISABLE / SD_CONV2D_NO_WINOGRAD / SD_CONV2D_TRACE diagnostics.
Default auto behavior is unchanged: CPU conv-direct remains opt-in.
@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@xingguangcuican6666

xingguangcuican6666 commented Dec 5, 2026 •

Copy link
Copy Markdown
Author

sorry, That a mistake with this pr

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.

1 participant