]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml: add ggml_can_fuse_subgraph (llama/16662)
authorAman Gupta <redacted>
Tue, 21 Oct 2025 08:43:14 +0000 (16:43 +0800)
committerGeorgi Gerganov <redacted>
Tue, 21 Oct 2025 15:14:33 +0000 (18:14 +0300)
commitb0b980ad6ff8a587e1fa4b9fd8593c3d60c67550
tree251e14d34db6e66f72e14fd4a748ca802ab00e86
parent2a2ffcfdc9548946a117cba40ba3a17491384de1
ggml: add ggml_can_fuse_subgraph (llama/16662)

* ggml: add ggml_can_fuse_subgraph

* ggml-cuda: use ggml_can_fuse_subgraph for topk-moe

* format

* 1. remove inputs from signature as they are transient nodes
2. add check for views: view_src should be part of the subgraph

* - combine check into one loop
- check all view_src parents
- other minor review comments

* remove redudant if test

* - rename and other minor review comments

* add assert about count < 32
src/ggml-cuda/ggml-cuda.cu
src/ggml-impl.h
src/ggml.c