llama : suggest reduce ctx size when kv init fails

This commit is contained in:
slaren 2024-11-02 00:55:19 +01:00
parent bf60f27cda
commit 20e12112fd
2 changed files with 2 additions and 1 deletions

View file

@ -798,7 +798,7 @@ static ggml_backend_buffer_t ggml_backend_cpu_buffer_type_alloc_buffer(ggml_back
void * data = ggml_aligned_malloc(size);
if (data == NULL) {
GGML_LOG_ERROR("%s: failed to allocate buffer of size %zu\n", __func__, size);
GGML_LOG_ERROR("%s: failed to allocate buffer of size %.2f MiB\n", __func__, size / 1024.0 / 1024.0);
return NULL;
}