llama.cpp
7dca4a8d - qwen4exp : simplify the PLE conv graph (#33380)

Commit
1 day ago
qwen4exp : simplify the PLE conv graph (#33380) * qwen4exp : remove redundant cont in ple conv output conv_out is contiguous after ggml_silu, so the extra ggml_cont before the reshape is unnecessary. Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB) * qwen4exp : avoid the permute copy in the PLE conv Fold the sequence axis into the channel axis so im2col writes the layout needed by the batched matmul directly, removing the cont(permute(x)) copy. Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB) * qwen4exp : load the PLE conv kernel as 3D Use TENSOR_ALLOW_RESHAPE to load ple_conv1d as [kern, 1, hc_dim], so the graph uses it directly without a reshape or f32 cast. Update the tensor op mapping to GGML_OP_MUL_MAT for buffer selection with the 3D shape. Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB) * qwen4exp : use a standalone shape tensor for im2col ggml_im2col only needs the kernel shape, so create the [kern, 1] tensor directly instead of viewing the PLE conv weight. Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)
Author
Parents
Loading