mtmd: support multi-row batching for deepseek-ocr - #26154
Conversation
|
/bot review |
Automated code reviewI've traced the graph construction ( Review: mtmd multi-row batching for deepseek-ocrOverall the patch is correct and reasonably scoped. The batch-dimension bookkeeping ( Will slow the review(point 1) No test covering the new batched path. The existing (point 2) v2 overview-batch relies on Nits(point 3) (point 4) (point 5) The SAM-input combine in Style checkASCII-only, 4-space indent, bracket placement, and naming all match the surrounding code. The added comments explain why (the 4-axis limitation for the weave, the This review was generated automatically by pi coding agent using |
|
Opened #26615 on top of this branch: both per-row loops fold into a single permute each. Not a speedup — graph nodes just stay flat at 1634 instead of growing ~15 per row. |
|
@ngxson |
|
perfect, thanks for the confirmation. I'm merging this now |
* mtmd: support multi-row batching for deepseek-ocr * mtmd: weave deepseek-ocr rows in one shot instead of per row (ggml-org#26615) --------- Co-authored-by: Saba Fallah <sabafallah@gmail.com>
* mtmd: support multi-row batching for deepseek-ocr * mtmd: weave deepseek-ocr rows in one shot instead of per row (ggml-org#26615) --------- Co-authored-by: Saba Fallah <sabafallah@gmail.com>
* mtmd: support multi-row batching for deepseek-ocr * mtmd: weave deepseek-ocr rows in one shot instead of per row (ggml-org#26615) --------- Co-authored-by: Saba Fallah <sabafallah@gmail.com>
Overview
Ref:
Allow multi-row batching for deepseek-ocr:
CC @sfallah for review
Requirements