]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml: add ops for WAN video model (cuda && cpu) (llama/15669)
authorleejet <redacted>
Thu, 4 Sep 2025 08:38:49 +0000 (16:38 +0800)
committerGeorgi Gerganov <redacted>
Fri, 5 Sep 2025 09:54:14 +0000 (12:54 +0300)
commit0e2040fb0c48f94145e387d6bfe27b0fb5f0997c
tree922e2522d168a404002cff756f7587de89e38824
parent3bc53e56b4a074134c4ca0657487f04963bb0b1d
ggml: add ops for WAN video model (cuda && cpu) (llama/15669)

* add conv3d support

* add ggml_pad_ext for cpu & cuda backend

* cuda/cpu: add im2col_3d support

* cuda: make im2col a little faster

* fix cuda pad/scale/im2col3d

* make im2col_3d faster

* gguf: support loading tensors which n_dims > GGML_MAX_DIMS

* fix cuda get_rows

* avoid ggml_conv_3d conflict

* correct GGML_OP_COUNT assertion

* avoid build failure

* avoid build failure on MacOS

* cuda: remove unnecessary MIN define

* fix cpu im2col_3d

* adjust the code style

* cuda: use simpler loop in get_rows

* add test_im2col_3d to test-backend-ops

* test-backend-ops.cpp: remove trailing whitespace

* cpu: im2col_3d support non continuous src

Co-authored-by: Jeff Bolz <redacted>
* fix test_im2col_3d

* remove unused variables

* cuda: get_rows: dfloat2 -> float2

* add test_pad_ext to test-backend-ops.cpp

* add gguf_init_from_file_ext impl

* Revert "gguf: support loading tensors which n_dims > GGML_MAX_DIMS"

This reverts commit d8377a0a37f314bd3713fe043b4333ad661610c1.

* Revert "add gguf_init_from_file_ext impl"

This reverts commit d9f1d13208c68ef83b3538201ac7f31614fb1994.

* update ggml_backend_vk_device_supports_op

* fix ggml_backend_vk_device_supports_op

* update other backend supports op for ggml_pad_ext

* metal/opencl/sycl/vulkan: fix GGML_OP_PAD check in supports_op

---------

Co-authored-by: Jeff Bolz <redacted>
17 files changed:
include/ggml.h
src/ggml-cann/aclnn_ops.cpp
src/ggml-cpu/ggml-cpu.c
src/ggml-cpu/ops.cpp
src/ggml-cpu/ops.h
src/ggml-cuda/getrows.cu
src/ggml-cuda/ggml-cuda.cu
src/ggml-cuda/im2col.cu
src/ggml-cuda/im2col.cuh
src/ggml-cuda/pad.cu
src/ggml-cuda/scale.cu
src/ggml-metal/ggml-metal.m
src/ggml-opencl/ggml-opencl.cpp
src/ggml-sycl/ggml-sycl.cpp
src/ggml-vulkan/ggml-vulkan.cpp
src/ggml.c
tests/test-backend-ops.cpp