llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

using --warmup with GML_SCHED_DEBUG_REALLOC=1 makes gemma-4-26B-A4B-it crash on 1920x1080 input.

Open MrRevington opened this issue 2 months ago • 1 comments

Name and Version

version: 0.6.0-dev (build 11541, commit f2918cabb) built with Clang 20.1.8 for Windows x86_64

Operating systems

Windows

Which llama.cpp modules do you know to be affected?

llama-server

Problem description & steps to reproduce

Model, image settings: hf=unsloth/gemma-4-26B-A4B-it-GGUF:UD-IQ3_XXS image-min-tokens=70 image-max-tokens=1120 version: 0.6.0-dev (build 11541, commit f2918cabb) built with Clang 20.1.8 for Windows x86_64 OS: Microsoft Windows [Version 10.0.26200.9457] GPU: Device 0: AMD Radeon RX 7800 XT, gfx1101 (0x1101), VMM: no, Wave Size: 32, VRAM: 16368 MiB, Driver 26.8.1

Issue: Reason is this, it warms up with 768x768 dimensions: [59743] 0.09.495.702 I get_dummy_batch: warmup with image size = 768 x 768 [59743] 0.09.497.993 I get_dummy_batch: warmup with image size = 768 x 768

[59743] 0.09.503.572 I reserve_compute_meta: ROCm0 compute buffer size = 381.39 MiB [59743] 0.09.503.579 I reserve_compute_meta: CPU compute buffer size = 6.77 MiB [59743] 0.09.503.580 I reserve_compute_meta: graph splits = 1, nodes = 1463

If i then try to use a 1920x1080 image as input it crashes: [59743] 0.13.796.244 D mtmd_batch_encode_impl: encoding batch with 1 entries and total 920 tokens [59743] D:/a/llama.cpp/llama.cpp/ggml/src/ggml-backend.cpp:1782: ggml_backend_sched_alloc_splits: unexpected graph reallocation (graph size = 1469, nodes = 1469, leafs = 359), debug_realloc = 1

-- The question is, is it a bug or should it crash? It says unexpected. --warmup is default enabled which makes it a bit confusing that the default crashes with GML_SCHED_DEBUG_REALLOC=1.

MrRevington avatar Sep 30 '26 10:09 MrRevington

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 25 '26 00:11 github-actions[bot]