]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml-alloc: Don't try to re-use buffers of external tensors (#2562)
authorSam Spilsbury <redacted>
Wed, 9 Aug 2023 20:47:42 +0000 (23:47 +0300)
committerGitHub <redacted>
Wed, 9 Aug 2023 20:47:42 +0000 (22:47 +0200)
commit916a9acdd0a411426690400ebe2bb7ce840a6bba
tree130a88da78296d03f0116554a31da4fcfe821850
parentea04a4ca1940d92becc0ee26523aa2c4a18cf938
ggml-alloc: Don't try to re-use buffers of external tensors (#2562)

* ggml-alloc: Don't try to re-use buffers of external tensors

They might be weights that came from another context, so we
have no control over them (and they might be re-used elsewhere
so writing to them would be a bad idea).

* ggml-alloc: >= when checking for out-of-bounds

Co-authored-by: slaren <redacted>
---------

Co-authored-by: slaren <redacted>
ggml-alloc.c