]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml: Don't assert fail when tensor data changes (llama/13222)
authorJesse Gross <redacted>
Thu, 1 May 2025 20:46:10 +0000 (13:46 -0700)
committerGeorgi Gerganov <redacted>
Wed, 7 May 2025 12:39:32 +0000 (15:39 +0300)
commitc5a5a2da5b8569ea4d52a7c854ab0b9386039357
treee3f0166f80aa771a3784f68135923f78ab6efd34
parent8316bfd82bf051108aabbfa68eb4abb9ed5d9de2
ggml: Don't assert fail when tensor data changes (llama/13222)

The following scenario will cause an assertion failure in the graph
allocator:
 - Build and allocate a graph containing a tensor with a non-NULL data
   pointer
 - Build and allocate a new graph where that data is NULL

Result:
ggml-alloc.c:819: GGML_ASSERT(talloc->buffer_id >= 0) failed

This happens during revalidation because we think that memory should
have been previously allocated based on the current graph but in
reality the previous graph was different. In this situation, we
should do a full reallocation pass.
ggml/src/ggml-alloc.c