Skip to content

Commit

Permalink
Revert "ggml-alloc : add 10% margin to the buffer sizes (ggerganov#5149
Browse files Browse the repository at this point in the history
…)"

This reverts commit 15b4538.
  • Loading branch information
Nexesenex committed Feb 10, 2024
1 parent 72e7438 commit 611ff55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ggml-alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,7 @@ bool ggml_tallocr_is_measure(ggml_tallocr_t alloc) {
}

size_t ggml_tallocr_max_size(ggml_tallocr_t alloc) {
// FIXME: changes in the tensor sizes compared to the measure graph may cause allocations to fail
// to avoid this, we add a 10% margin to the buffer size
return alloc->max_size + alloc->max_size/10;
return alloc->max_size;
}

// graph allocator
Expand Down

0 comments on commit 611ff55

Please sign in to comment.