]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml : sync with sam.cpp (add SAM Vit H & L model support and fix SAM's output) ...
authorYavor Ivanov <redacted>
Mon, 28 Aug 2023 08:33:55 +0000 (11:33 +0300)
committerGitHub <redacted>
Mon, 28 Aug 2023 08:33:55 +0000 (11:33 +0300)
commit420bb1a94cf470d1acec124fbf87bca4d44ab42d
treedce0a97dc55faf08bf12cc63c388e9380839dd8d
parent3e551c0bda2a1c47f88f178fa3a79ea2c80d15ed
ggml : sync with sam.cpp (add SAM Vit H & L model support and fix SAM's output)  (#476)

* Add support for Vit H and Vit L SAM model checkpoints

* Add "eps" argument to ggml_norm and fix all examples

* Fix bias addition for ConvTranspose2D layers in SAM example

* Fix build when GGML_ALLOCATOR_DEBUG is enabled

* Use op params for the stride in CONV_TRANSPOSE_2D

Needed in order for the operation to work with ggml-alloc as
the previous implementation used ggml_new_i32, which uses strach buffers

We should remove new_i32 and new_f32 I think. new_f32 is used in a lot
of places.
14 files changed:
examples/dolly-v2/main.cpp
examples/gpt-2/main.cpp
examples/gpt-j/main.cpp
examples/gpt-neox/main.cpp
examples/mpt/main.cpp
examples/replit/main.cpp
examples/sam/convert-pth-to-ggml.py
examples/sam/main.cpp
examples/starcoder/main.cpp
examples/starcoder/starcoder-mmap.cpp
examples/whisper/whisper.cpp
include/ggml/ggml.h
src/ggml-alloc.c
src/ggml.c