Skip to content

[Infra:Chore] Sync Alibaba MNN 3.6.1 - #4

Merged
pruthvikar merged 37 commits into
cleanup/remove-unused-apps-and-projectsfrom
feature/sync-upstream-mnn
Aug 6, 2026
Merged

[Infra:Chore] Sync Alibaba MNN 3.6.1#4
pruthvikar merged 37 commits into
cleanup/remove-unused-apps-and-projectsfrom
feature/sync-upstream-mnn

Conversation

@pruthvikar

@pruthvikar pruthvikar commented Aug 4, 2026

Copy link
Copy Markdown
Member

Description

  • Merge Alibaba MNN master through 256a3ae2, bringing in 35 upstream commits since the fork's previous upstream merge at df6f6490.
  • Update to MNN 3.6.1 and import upstream Apple Metal LLM optimizations, OpenCL/CUDA/QNN/Hexagon fixes and features, LLM exporter/runtime improvements, and operator memory-safety fixes.
  • Preserve the Carv cleanup branch: the deleted Android demo path stays removed, while the PyMNN package configuration keeps the compact local formatting and adopts upstream's numpy<2.5 and manylinux2014 changes.
  • Repair CI paths invalidated by the cleanup: Android and iOS now build through CMake, wiki publishing is limited to alibaba/MNN, and PyMNN reports the expected TypeError after raw integer-pointer support was removed upstream.
  • Keep the KleidiAI fix independent: upstream did not change cmake/KleidiAI.cmake, so [CPU:Bugfix] Isolate KleidiAI ISA compile targets #3 remains a separate reviewable PR.
  • Verified locally with ./test.sh static, git diff --check, actionlint, the complete ./test.sh local host suite (7 passed), the PyMNN unit suite (180 passed, 4 skipped), and an arm64 iOS framework build. GitHub Android and iOS builds pass on their hosted runners.

Module

Infra

Type

  • Feature
  • Bugfix
  • Perf
  • Refact
  • Style
  • Doc
  • Test
  • Chore

Checklist

  • Commit message follows [Module:Type] Description format
  • Code compiles without errors
  • Tested on relevant platform(s)
  • No unrelated format or style changes included

jxt1234 and others added 30 commits July 21, 2026 14:20
* [Core:Refact] setKVMeta in command session path
* [Core:Feature] Support hexagon backend
…sors on MPS (alibaba#4649)

Bugfix Qwen3.5-2B respond errorly.

Discussed-in: Merge-Request 28713212 , URL: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28713212
GitOrigin-RevId: 46ceea0abf6226783ef0b4d935361870a9e0a7f2
… + Metal Op Profile. (alibaba#4650)

Combined Metal LLM decode/prefill optimization work plus supporting
core-graph and RoPE infrastructure.

GitOrigin-RevId: b71528f0de1cf17f68628031e6e59c373227f07d
… LLM prefill on M5 (alibaba#4651)

Discussed-in: Merge-Request 28721517 , URL: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28721517
GitOrigin-RevId: ae3694db47900e833e9f1dc6df59a64e0c8a7461
…libaba#4654)

GitOrigin-RevId: 6712b454c35014a8b63b7126bf7635695e1b5dc5
Discussed-in: Merge-Request 28735021 , URL: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28735021
GitOrigin-RevId: 396942a40165e5b46c86de124756986c7a9becad
…ention(default 1, using flash attention) (alibaba#4658)

Discussed-in: Merge-Request 28749507 , URL: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28749507
GitOrigin-RevId: 6f6b024d4e4c3f23a483aed5e7d0443102295a6f

Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
…, LinearAttention OOB writes, shared runtime gpuMode clobbering, int loop staging size and shared_gather build error (alibaba#4659)
GitOrigin-RevId: e9398e831cddfe7fde41119dc731e871ebd2f2aa

Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
Link: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28847826


GitOrigin-RevId: 0b9d0c7860d8c75619f22ccde61b0694bdff9b59

Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
…ibaba#4680)

GitOrigin-RevId: abdaf398c36e56e97358be95dc8270639bbc02cf
Npu's vtcm can't be all used by MNN, add vtcm_mb paramter in model conversion.
Signed-off-by: Dillon Min <dillonhua@gmail.com>
…ing the KV cache (llama-bench semantics) (alibaba#4692)

Link: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28916935
GitOrigin-RevId: be39f501b53dccc8fa2222c38e5da6be372f0a1a
…ption) (alibaba#4695)

GitOrigin-RevId: c4703efad057c69f4567a0dc1df493299b14fff5
and Fix over-strict validation breaking legit Crop/ScatterNd cases.(alibaba#4697)

Link: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28815723

GitOrigin-RevId: 44b25c041e0182dec68db1304cbaa8e98a65a2e5
Discussed-in: Merge-Request 28957722 , URL: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28957722
GitOrigin-RevId: 78718f83d2349acfb6f02212f0f1d1bd4c53906e
wangzhaode and others added 6 commits July 31, 2026 17:39
Discussed-in: Merge-Request 28973414 , URL: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28973414
GitOrigin-RevId: 7469b9e70746524683c517734c46f8da761f91ff
…ibaba#4703)

- Fused attention: tensor-API prefill + single-pass decode SDPA
    - Data-driven causal mask; drop MNN_METAL_QK_CAUSAL_TRI
    - GEMV/LN fusion, encode replay, arch-tiered M64 GEMM
    - Env registry cleanup; embedding scalar sentinel; pooling pads fix
Link: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28976591

GitOrigin-RevId: 0538cfd58ec85db6517a8b893047192dacf45ea1
- Optimize fused gated-delta-rule shaders and fix flash-chunk prefill correctness
- Add tensor-API flash-chunk and non-tensor-API SGMM prefill paths
- Gate SGMM to dk=128 with a runtime fallback to scalar chunking
- Route short prefill through fused simdgroup kernels and enable decode replay
Link: https://code.alibaba-inc.com/AliNN/AliNNPrivate/codereview/28933952
GitOrigin-RevId: 2d56a5cf34fe1a0748e9417a853bb2cb0daaddbf
…inputs (alibaba#4711)

GitOrigin-RevId: 79dd443e4593ee3e20de9afdcf6494d17547705e
@pruthvikar pruthvikar self-assigned this Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@pruthvikar pruthvikar removed their assignment Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@pruthvikar
pruthvikar marked this pull request as ready for review August 4, 2026 09:01
@pruthvikar
pruthvikar merged commit ff8f1b8 into cleanup/remove-unused-apps-and-projects Aug 6, 2026
7 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.

8 participants