Repository navigation
feat(cpu): add Winograd F(2x2,3x3) route to conv2d extension - #2529
Closed
xingguangcuican6666 wants to merge 2 commits into
Closed
xingguangcuican6666 wants to merge 2 commits into
xingguangcuican6666 wants to merge 2 commits into
Conversation
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.
|
Caution Review failedThe pull request is closed.
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. |
Author
|
sorry, That a mistake with this pr |
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
Related Issue / Discussion
Additional Information
Checklist