]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml: new optimization interface (#988)
authorJohannes Gäßler <redacted>
Sat, 16 Nov 2024 12:49:35 +0000 (13:49 +0100)
committerGitHub <redacted>
Sat, 16 Nov 2024 12:49:35 +0000 (13:49 +0100)
commit0ce22266d94463f0e93093ba418de7b8be77cb55
tree61df3e24a18c1c1ee7f56a8e119e6fe1f995355f
parenta131a8200aac68500a44b5068705548db4bd2617
ggml: new optimization interface (#988)

* ggml: new optimization interface

remove test2.c, test3.c

store adamw params in tensor

move grads from tensor to graph

* avoid segfault upon API misuse

* add ggml-opt.h to public headers

* remove dependence of ggml-opt.cpp on ggml-cpu.h
30 files changed:
CMakeLists.txt
examples/CMakeLists.txt
examples/mnist/README.md
examples/mnist/mnist-common.cpp
examples/mnist/mnist-common.h
examples/mnist/mnist-eval.cpp
examples/mnist/mnist-train.cpp
include/ggml-backend.h
include/ggml-opt.h [new file with mode: 0644]
include/ggml.h
src/CMakeLists.txt
src/ggml-alloc.c
src/ggml-backend.cpp
src/ggml-cpu/ggml-cpu.c
src/ggml-cuda/opt-step-adamw.cu
src/ggml-impl.h
src/ggml-metal/ggml-metal.m
src/ggml-opt.cpp [new file with mode: 0644]
src/ggml.c
tests/CMakeLists.txt
tests/test-backend-ops.cpp
tests/test-grad0.cpp [deleted file]
tests/test-mul-mat0.c
tests/test-opt.cpp
tests/test1.c [deleted file]
tests/test1.zig [deleted file]
tests/test2.c [deleted file]
tests/test2.zig [deleted file]
tests/test3.c [deleted file]
tests/test3.zig [deleted file]