Skip to content

Investigate Galaxy S24 Vulkan crash during first GGUF generation #79

Open

Description

@leehack

A Firebase Test Lab pilot of the actual Flutter/llamadart application crashed on the first GGUF Vulkan generation on a physical Galaxy S24. CPU generation completed beforehand. This is a native crash investigation; the stack identifies the failing path but does not yet establish whether the origin is the driver, upstream llama.cpp, the packaged artifact, or consumer integration.

Reproduction inputs

  • Observed 2026-09-16; llamadart main commit a5df1c4fcbb1766d26efb5b1d9becda191df89a3, llama.cpp artifact v0.4.0.
  • Flutter 3.47.1 / Dart 3.13.1, Android Debug APK, arm64, both runtime families included. Package inference code was unmodified; the pilot only added a Flutter integration-test wrapper.
  • Firebase physical model SC-51E, Galaxy S24, API 36 / Android 16, Adreno 750.
  • Build fingerprint: samsung/SC-51E/SC-51E:16/BP2A.250605.031.A3/SC51EOMS1CZB4:user/release-keys.
  • Model: stories15M.gguf at pinned revision, 98,357,920 bytes, SHA256 61b50d457809a5194818fd22e6724b456cd7bb9a6264c52c8110684c53f3704a. Download hash verified on device.

Using package:llamadart/llamadart.dart and a local path to that model:

final engine = LlamaEngine(LlamaBackend());
await engine.setNativeLogLevel(LlamaLogLevel.info);
await engine.loadModel(modelPath, modelParams: const ModelParams(
  contextSize: 1024,
  numberOfThreads: 4,
  numberOfThreadsBatch: 4,
  gpuLayers: ModelParams.maxGpuLayers,
  preferredBackend: GpuBackend.vulkan,
));
await for (final piece in engine.generate(
  'Once upon a time',
  params: const GenerationParams(maxTokens: 32, temp: 0, seed: 1),
)) {
  print(piece);
}
await engine.dispose();

The observed execution first ran the CPU configuration (gpuLayers: 0, preferredBackend: GpuBackend.cpu) through one warm-up and three generations, disposed that engine, then created the Vulkan engine. A fresh-process GPU-only reproduction is still needed to separate standalone failure from prior CPU initialization effects. No successful Release-build or second-device Vulkan control has been collected yet.

Expected and actual

Expected: nonempty streamed generation, a clean completion, and evidence of actual GPU offload.

Actual: load returned and reported Vulkan; the first generation killed the app with SIGSEGV / SEGV_MAPERR, fault address 0x2d0. Essential crash frames:

#00 /vendor/lib64/libllvm-qgl.so
#09 /vendor/lib64/libllvm-qgl.so CreateQGLCProgram(QGPUCompiler::CompileData*)
#12 /vendor/lib64/hw/vulkan.adreno.so
#14 /vendor/lib64/hw/vulkan.adreno.so qglinternal::vkCreateComputePipelines(...)
#15..19 base.apk native Vulkan module
#20 libggml-base.so ggml_backend_sched_graph_compute_async
#21 libllama.so llama_context::graph_compute
#22 libllama.so llama_context::process_ubatch
#23 libllama.so llama_context::decode
#24 libllama.so llama_decode

Relevant build IDs: vendor compiler e45a6c21c17a933fce15407e32a702bd; Vulkan driver 16fb0afc08003d7e9cb34edb847a0e53; packaged Vulkan module cb3986d59f53f6bdedc8bb85f9bff8173df839f5; libllama 2bf312b67373a8d028386b84581073cc8ccbfc66.

Firebase execution (project access required). CPU success is recorded in app events; the crashed overall instrumentation execution is not a passing matrix. iPhone CPU/Metal passed with the same GGUF, which does not qualify Android Vulkan.

Investigation and acceptance

  • Reproduce in a fresh process on this exact device/OS, in Release and the original Debug mode; retain the CPU-before-GPU sequence as a separate case.
  • Compare the same model, prompt and settings using a direct native/upstream reference at the artifact's recorded upstream revision. Preserve build flags, driver version and runtime identity.
  • Cross-check a different Adreno generation and a Mali device before claiming a general Android or vendor-specific failure.
  • Fix in the owning layer, or provide an explicit actionable unsupported-path policy if the combination cannot be supported. A silent CPU fallback must not count as a GPU pass.
  • Add model-backed regression qualification and rerun CPU and verified Vulkan generation on the failing device after the fix.

Related qualification tracker: leehack/llamadart#476. That older-CPU/ISA coverage gap is separate from this reproduced GPU crash. No upstream defect attribution or new regression range has been established.

Activity

  1. added
    bug
    priority:P1
    on Sep 18, 2026
  2. leehack commented on Sep 19, 2026

    @leehack
    OwnerAuthor

    Verified v0.4.1 and fresh standalone control — 2026-09-19

    The crash persists on the current published v0.4.1 runtime (upstream b29c606e28a01b1bc8c1351026a0fa6e616bf6c4). Two bounded SC-51E/API36 executions now establish:

    1. Original Flutter pilot with v0.4.1, matrix matrix-2jkcwdec9di91: CPU warmup plus three generations passed and disposed; first Vulkan generation crashed. Original core a5df1c4... and settings retained, native tag overridden to v0.4.1. This is not a current-core-main test.
    2. Fresh standalone C-API application, matrix matrix-29hxzbl7p2w4a: same crash without Dart, Flutter/Impeller, libllamadart, or preceding CPU-only inference. The Android app loads unchanged official v0.4.1 libraries and calls llama.cpp through a minimal JNI shim. This is not a raw-upstream rebuild or a modified Vulkan backend.

    Both returned the original fingerprint samsung/SC-51E/SC-51E:16/BP2A.250605.031.A3/SC51EOMS1CZB4:user/release-keys, compiler BuildId e45a6c21c17a933fce15407e32a702bd, and Vulkan driver BuildId 16fb0afc08003d7e9cb34edb847a0e53.

    Standalone package SHA256 146c84029fee7fcc721719a04e65a6b5f68066733e314862e85f5a5342d378ed. All 11 runtime libraries match the official archive byte-for-byte; only the JNI consumer shim is newly compiled. Model hash/size match the issue. Native logs confirm 57 F32 tensors, Adreno750, and 7/7 layers actually offloaded (57.95MiB Vulkan model buffers). CPU backend remains for non-offloaded ops; no prior CPU-only model run occurred.

    Context settings match the original Android path: context1024, batch1024, microbatch512, threads4/4, F16 KV, offload_kqv=false, op_offload=false, Flash Attention disabled; max GPU layers. The first llama_decode received the five-token prompt Once upon a time and crashed before prefill returned or any token was generated.

    Same SIGSEGV/SEGV_MAPERR at 0x2d0. Current Vulkan BuildId b16b1f2040b472a8f57561d1cdb7f0be2f1816f4; symbolized PCs match in both v0.4.1 runs:

    1b36a9c createComputePipeline / ggml_vk_create_pipeline_func
    1b282d4 ggml_vk_load_shaders                         :6511
    1b81aa0 ggml_pipeline_request_descriptor_sets       :3336
    1b8df58 ggml_vk_mul_mat_vec_q_f16                   :10011
    1b512e0 ggml_vk_build_graph / graph_compute         :16467
    

    Conclusion: Dart/wrapper lifecycle, Flutter rendering, and prior CPU disposal are not required to trigger this crash. We have not yet distinguished shader selection/configuration, artifact build, raw upstream behavior, and Qualcomm compiler compatibility. No driver-only attribution or safe fix yet. The exact selected shader/specialization remains uncaptured. All-F32 weights also mean this must not be labeled the Q4_K issue reported in upstream #28635; that report's initial NDK theory was retracted.

    Next bounded investigation: same-revision pre-compilation diagnostics or upstream matrix-vector control to identify the selected F32 pipeline and then test a single configuration change against CPU correctness. Release and raw-upstream controls remain missing. No runtime pin/publication or speculative production patch made.

  3. added
    blocked-upstream
    on Sep 21, 2026
  4. leehack commented on Sep 21, 2026

    @leehack
    OwnerAuthor

    Third reproduction, 2026-09-21: recent core main, Q4_0 chat model, same crash

    The crash is not tied to the all-F32 stories15M weights used in the previous two runs, and it reproduces from a recent core-main commit through the Flutter chat example. The 2026-09-19 comment flagged run 1 as "not a current-core-main test"; this run is on core 4da97bc10d0b0edeb7c2d099e5daadec3264cd05, 13 commits behind today's main 5cb979855 (the earlier pilot's a5df1c4… is 51 behind).

    Run: Firebase Test Lab matrix matrix-1j07e6udlnhze, execution 8678470619493359905, outcome FAILURE, A non-retryable error occurred., 2026-09-21 15:26Z.

    What is new

    • Different model and quantization. Qwen3.5-0.8B-Q4_0.gguf, 563,036,064 bytes, SHA256 57d1997790d1744fba5b40a7317df71ea5e2acee28c47e78f0cce39c0703f8cf, pinned revision 8fea620810c4afa23dd6443f999a48574c1611a3; general.file_type = 2 in the loaded metadata; preparation.verified = true on device. Q4_0 crashes exactly like the F32 model, so weight type is not the discriminator either way.
    • Recent core, real app path. llamadart 4da97bc1…, native tag v0.4.1, bridge v0.1.44, com.example.llamadart_chat_example debug APK driven by the chat-gguf-vulkan validation profile — not the old a5df1c4… pilot and not the minimal JNI shim.
    • No CPU inference preceded it in-process. The run manifest records a single profile (chat-gguf-vulkan); of the 123 s process uptime the tombstone reports, 111.7 s was model download (preparation.download_ms = 111691). C01.load PASS (backend_name Vulkan, reported_gpu_layers 999, context 1024, threads 4/4) and C02.unicode PASS (tokenizer only, 8 token ids) — then C03.raw, the next case and the first generation (prompt Once upon a time), has no terminal record: reason: missing terminal record after crash/interruption. Remaining 12 cases NOT_RUN; summary records Run did not complete normally and Engine cleanup did not complete.

    Identity with the previous v0.4.1 runs

    Same SIGSEGV/SEGV_MAPERR, fault addr 0x2d0, Cause: null pointer dereference, on thread DartWorker; #09 CreateQGLCProgram(QGPUCompiler::CompileData*) → #14 qglinternal::vkCreateComputePipelines → #20 ggml_backend_sched_graph_compute_async → #23 llama_context::decode → #24 llama_decode.

    The five in-APK frames #15-#19 are byte-identical offsets to the ones symbolized in the previous comment: 1b36a9c, 1b282d4, 1b81aa0, 1b8df58, 1b512e0 (i.e. createComputePipeline → ggml_vk_load_shaders → ggml_pipeline_request_descriptor_sets → ggml_vk_mul_mat_vec_q_f16 → ggml_vk_build_graph / graph_compute), under the same packaged Vulkan module BuildId b16b1f2040b472a8f57561d1cdb7f0be2f1816f4. This tombstone also records libllama.so BuildId f8700d9b6f8155c0465b9ad86ba716cb5b68e44d and libggml-base.so 1fd7cfcc3583e64f4a5c2f8d004935e44c810212. Device unchanged: samsung/SC-51E/SC-51E:16/BP2A.250605.031.A3/SC51EOMS1CZB4:user/release-keys, API 36, compiler BuildId e45a6c21c17a933fce15407e32a702bd, Vulkan driver BuildId 16fb0afc08003d7e9cb34edb847a0e53.

    Same-day non-Adreno datum, not a qualification

    iPhone 16 Pro, Metal, release build, same commit / model / native tag: all 14 cases ran, 13 PASS and one content assertion failure (C06.history), no crash. Per this issue's own note, an Apple GPU pass does not qualify Android Vulkan.

    Still missing

    Unchanged from the previous comment, plus one caveat specific to this run: accelerator evidence was not collected (accelerator_evidence.verified = false, reason: native placement evidence unavailable), so this execution does not itself prove layer offload — the earlier standalone run did (7/7 layers, 57.95 MiB Vulkan buffers). Also still absent: an Android Release-mode control, a second Adreno generation, a Mali device, and the identity of the selected shader/specialization.

    Verified by execution: the Firebase device run above, and local reads of native_crash.txt, logcat.crash.txt, results.json and matrix.json; the commit distances via git merge-base / git rev-list --count. Verified by reading only: the frame-to-symbol mapping, which reuses the symbolization already recorded in this issue rather than re-symbolizing this tombstone.

  5. leehack commented on Sep 24, 2026

    @leehack
    OwnerAuthor

    Blocker status, 2026-09-23: still blocked

    Unblocking needs #29165 to move forward. Fill in its template, then qualify its head on S24 with both the F32 and the Q4_0 models, then mark it ready. A Firebase re-run on the current pins would only reproduce the crash; nothing has changed on that path.

  6. Raman-Raje commented on Sep 24, 2026

    @Raman-Raje

    Could you the error log here...?

  7. leehack commented on Sep 27, 2026

    @leehack
    OwnerAuthor

    Still reproduces on native v0.5.0. On Firebase Galaxy S24 (llamadart pre-release sweep at 3d6b838), the first GGUF generation (C03.raw) crashes with the same signature: SIGSEGV at 0x2d0 inside Adreno pipeline creation, same compiler and driver builds.

    Second failure mode, not recorded above: when a CPU engine ran first in the same process, pipeline creation returned an error instead of crashing, and ggml-vulkan's uncaught C++ exception aborted the app (SIGABRT, vk::SystemError ... ErrorUnknown).

  8. Raman-Raje commented on Sep 27, 2026

    @Raman-Raje

    @leehack could you build llama with flag DGGML_VULKAN_DEBUG=ON and share the logs here... Would be easy to understand

  9. leehack commented on Sep 29, 2026

    @leehack
    OwnerAuthor

    @Raman-Raje thanks, here are the GGML_VULKAN_DEBUG=ON logs.

    Setup

    • Galaxy S24 (SC-51E, Adreno 750), Android 16 / API 36, on Firebase Test Lab.
    • llama.cpp v0.5.0 (7fe450e19). The build uses the release Android arm64 Vulkan configuration plus -DGGML_VULKAN_DEBUG=ON, and nothing else changed. Its embedded SPIR-V is identical to the release build (1031/1031 shaders). All other libraries are the unmodified official v0.5.0 bundle.
    • The test app is a minimal JNI app that calls the llama.cpp C API directly (no Dart/Flutter). Settings: ctx 1024, batch 1024, ubatch 512, F16 KV, flash attention off, all layers on GPU, prompt Once upon a time. stderr is redirected to a file, which is how the debug output survives the crash.
    ggml_vulkan: 0 = Adreno (TM) 750 (Qualcomm Technologies Inc. Adreno Vulkan Driver) | uma: 1 | fp16: 1 | bf16: 0 | fp4: 0 | warp size: 64 | shared memory: 32768 | int dot: 0 | matrix cores: none
    

    Result

    Both models crash on the first llama_decode, while the driver compiles the first mul_mat_vec pipeline. The only pipeline created before it, rms_norm_mul_f32, compiles fine.

    stories15M, all F32 (7/7 layers offloaded):

    ggml_vk_create_pipeline(Vulkan0, rms_norm_mul_f32, main, 4, (1,1,1), specialization_constants, 1, 0, 0)
    ...
    ggml_vk_mul_mat_vec_q_f16((0xb4000077bfc806f0, name=blk.0.attn_q.weight, type=0, ne0=288, ne1=288, ne2=1, ne3=1, nb0=4, nb1=1152, nb2=331776, nb3=331776), (0xb40000775d3a3d10, name=attn_norm-0, type=0, ne0=288, ne1=5, ne2=1, ne3=1, nb0=4, nb1=1152, nb2=5760, nb3=5760), (0xb40000775d3a3e80, name=Qcur-0, type=0, ne0=288, ne1=5, ne2=1, ne3=1, nb0=4, nb1=1152, nb2=5760, nb3=5760)),)
    ggml_vk_get_to_fp16()
    ggml_vk_get_dequantize_mul_mat_vec()
    ggml_vk_align_size(331776, 64)
    ggml_pipeline_request_descriptor_sets(mul_mat_vec_f32_f32_f32, 1)
    ggml_vk_load_shaders(Vulkan0)
    ... (342 ggml_vk_matmul_*shmem_support lines) ...
    ggml_vk_create_pipeline(Vulkan0, mul_mat_vec_f32_f32_f32, main, 5, (1,1,1), specialization_constants, 0, 1, 64)
    <SIGSEGV>
    

    Qwen3.5-0.8B Q4_0 (25/25 layers offloaded):

    ggml_vk_mul_mat_vec_q_f16((0xb400007514cd44b0, name=blk.0.attn_qkv.weight, type=2, ne0=1024, ne1=6144, ne2=1, ne3=1, nb0=18, nb1=576, nb2=3538944, nb3=3538944), (0xb400007441810160, name=attn_norm-0, type=0, ne0=1024, ne1=4, ne2=1, ne3=1, nb0=4, nb1=4096, nb2=16384, nb3=16384), (0xb4000074418102d0, name=node_13, type=0, ne0=6144, ne1=4, ne2=1, ne3=1, nb0=4, nb1=24576, nb2=98304, nb3=98304)),)
    ...
    ggml_pipeline_request_descriptor_sets(mul_mat_vec_q4_0_f32_f32, 1)
    ggml_vk_load_shaders(Vulkan0)
    ...
    ggml_vk_create_pipeline(Vulkan0, mul_mat_vec_q4_0_f32_f32, main, 5, (2,1,1), specialization_constants, 1, 1, 64)
    <SIGSEGV>
    

    The last three fields are disable_robustness, require_full_subgroups, required_subgroup_size. Both crashing pipelines ask for full subgroups of size 64. The pipeline that compiled does not.

    The crash signature is the same as in the earlier comments: SIGSEGV / SEGV_MAPERR at 0x2d0 in CreateQGLCProgram ← qglinternal::vkCreateComputePipelines ← ggml_vk_create_pipeline_func ← ggml_vk_load_shaders ← ggml_pipeline_request_descriptor_sets ← ggml_vk_mul_mat_vec_q_f16. The compiler and driver builds are also the same.

    Caveats

    • The debug log does not print specialization constant values, only the word specialization_constants. From the v0.5.0 source, on Qualcomm the DMMV path selects DMMV_WG_SIZE_SUBGROUP / SHADER_REDUCTION_MODE_SUBGROUP, so the SPIR-V should be the *_subgroup_no_shmem variant, with spec constants {64, 1, 5} (F32) and {64, 2, 4} (Q4_0). This comes from reading the code; the log does not show it.
    • It fits the subgroup-reduction DMMV path being the trigger, but I have not yet tested a run with that path disabled.

    Trimmed logs (the full logs are 220 KB / 570 KB, mostly per-op trace; I can share more on request):

    stories15M F32: GGML_VULKAN_DEBUG log (device line, then from the last pipeline created before the crash)
    ggml_vulkan: 0 = Adreno (TM) 750 (Qualcomm Technologies Inc. Adreno Vulkan Driver) | uma: 1 | fp16: 1 | bf16: 0 | fp4: 0 | warp size: 64 | shared memory: 32768 | int dot: 0 | matrix cores: none
    ...
    ggml_vk_create_pipeline(Vulkan0, rms_norm_mul_f32, main, 4, (1,1,1), specialization_constants, 1, 0, 0)
    ggml_vk_dispatch_pipeline(rms_norm_mul_f32, {(0xb4000077afdaec70, 0, 5760), (0xb4000077afdabd00, 36865152, 1152), (0xb4000077afdaec70, 591872, 5760), (0xb4000077afdaec70, 0, 5760), }, (5,1,1))
    ggml_vk_build_graph(0xb40000775d3a3e80, MUL_MAT)
    ggml_vk_sync_buffers()
    ggml_vk_mul_mat(0xb4000077bfc806f0, 0xb40000775d3a3d10, 0xb40000775d3a3e80)
    ggml_vk_mul_mat_vec_q_f16((0xb4000077bfc806f0, name=blk.0.attn_q.weight, type=0, ne0=288, ne1=288, ne2=1, ne3=1, nb0=4, nb1=1152, nb2=331776, nb3=331776), (0xb40000775d3a3d10, name=attn_norm-0, type=0, ne0=288, ne1=5, ne2=1, ne3=1, nb0=4, nb1=1152, nb2=5760, nb3=5760), (0xb40000775d3a3e80, name=Qcur-0, type=0, ne0=288, ne1=5, ne2=1, ne3=1, nb0=4, nb1=1152, nb2=5760, nb3=5760)),)
    ggml_vk_get_to_fp16()
    ggml_vk_get_dequantize_mul_mat_vec()
    ggml_vk_align_size(331776, 64)
    ggml_pipeline_request_descriptor_sets(mul_mat_vec_f32_f32_f32, 1)
    ggml_vk_load_shaders(Vulkan0)
    ggml_vk_matmul_shmem_support(warptile=(64,32,32), mul_mat_id=0, src0_type=f32, supported=1
    ... (341 more ggml_vk_matmul_*shmem_support lines) ...
    ggml_vk_create_pipeline(Vulkan0, mul_mat_vec_f32_f32_f32, main, 5, (1,1,1), specialization_constants, 0, 1, 64)
    
    stories15M F32: tombstone header and backtrace #00-#26
    Build fingerprint: 'samsung/SC-51E/SC-51E:16/BP2A.250605.031.A3/SC51EOMS1CZB4:user/release-keys'
    Timestamp: 2026-09-28 18:16:25.973381311-0700
    Process uptime: 21s
    Cmdline: org.llamadart.control
    pid: 2720, tid: 2736, name: roidJUnitRunner  >>> org.llamadart.control <<<
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000000002d0
    Cause: null pointer dereference
    #00 pc 0000000000de2fb0  /vendor/lib64/libllvm-qgl.so (!!!0000!3416e484a11876204d37d849ad85d9!c81b28e1a5!+1776) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #01 pc 0000000000319a90  /vendor/lib64/libllvm-qgl.so (!!!0000!b9c69828c384dc46eb5a73e774f971!c81b28e1a5!+1280) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #02 pc 00000000006c724c  /vendor/lib64/libllvm-qgl.so (!!!0000!37cd170f840a4673df210f61ad6d02!c81b28e1a5!+140) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #03 pc 00000000006b2f24  /vendor/lib64/libllvm-qgl.so (!!!0000!6b33cb4cd5ea14e9890651c8144ed9!c81b28e1a5!+1924) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #04 pc 00000000006b0004  /vendor/lib64/libllvm-qgl.so (!!!0000!eca60020c053e7cabab7710d1ede9d!c81b28e1a5!+1316) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #05 pc 00000000006a9528  /vendor/lib64/libllvm-qgl.so (!!!0000!a99fc215162194dc1bc1f721ccbd36!c81b28e1a5!+680) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #06 pc 0000000000e7be50  /vendor/lib64/libllvm-qgl.so (!!!0000!51d38902a0381d361b611c909947d9!c81b28e1a5!+2480) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #07 pc 0000000000850a10  /vendor/lib64/libllvm-qgl.so (!!!0000!34520e27c398aec80a9430978fab84!c81b28e1a5!+2240) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #08 pc 000000000084c024  /vendor/lib64/libllvm-qgl.so (!!!0000!b351d96637f21e15c92b76750b44e2!c81b28e1a5!+772) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #09 pc 000000000084bce0  /vendor/lib64/libllvm-qgl.so (CreateQGLCProgram(QGPUCompiler::CompileData*)+48) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #10 pc 0000000000f264e0  /vendor/lib64/libllvm-qgl.so (!!!0000!1e9735fa2d7fa7113c5ea09cbdfdc0!c81b28e1a5!+560) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #11 pc 0000000000f25a98  /vendor/lib64/libllvm-qgl.so (!!!0000!aefccce6a332610a9b22f30d0961cc!c81b28e1a5!+664) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #12 pc 00000000001672c4  /vendor/lib64/hw/vulkan.adreno.so (!!!0000!9f8153b2695670b78964f3638e2666!c81b28e1a5!+6228) (BuildId: 16fb0afc08003d7e9cb34edb847a0e53)
    #13 pc 000000000016318c  /vendor/lib64/hw/vulkan.adreno.so (!!!0000!2aa5082753cd3c7ad1b8091f24093d!c81b28e1a5!+380) (BuildId: 16fb0afc08003d7e9cb34edb847a0e53)
    #14 pc 00000000001d152c  /vendor/lib64/hw/vulkan.adreno.so (qglinternal::vkCreateComputePipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkComputePipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**)+1548) (BuildId: 16fb0afc08003d7e9cb34edb847a0e53)
    #15 pc 000000000189fb48  libggml-vulkan.so (ggml_vk_create_pipeline_func(shared_ptr<vk_device_struct>&, shared_ptr<vk_pipeline_struct>&, unsigned long, void const*, basic_string<char, char_traits<char>, allocator<char>>, unsigned int, array<unsigned int, 3ul>, vector<unsigned int, allocator<unsigned int>>, bool, bool, unsigned int)+3692) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #16 pc 0000000001891de0  libggml-vulkan.so (ggml_vk_load_shaders(shared_ptr<vk_device_struct>&, shared_ptr<vk_pipeline_struct>)+184224) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #17 pc 0000000001863474  libggml-vulkan.so (ggml_pipeline_request_descriptor_sets(ggml_backend_vk_context*, shared_ptr<vk_pipeline_struct>&, unsigned int)+308) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #18 pc 00000000018c9b54  libggml-vulkan.so (ggml_vk_mul_mat_vec_q_f16(ggml_backend_vk_context*, shared_ptr<vk_context_struct>&, ggml_cgraph const*, int, bool)+4752) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #19 pc 00000000018c3178  libggml-vulkan.so (ggml_vk_mul_mat(ggml_backend_vk_context*, shared_ptr<vk_context_struct>&, ggml_cgraph const*, int)+1300) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #20 pc 000000000191f21c  libggml-vulkan.so (ggml_backend_vk_graph_compute(ggml_backend*, ggml_cgraph*)+10524) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #21 pc 00000000000a42ac  libggml-base.so (ggml_backend_sched_graph_compute_async+2352) (BuildId: 6522477f00726b319d2f76099a77b30418e9ec94)
    #22 pc 00000000002526fc  libllama.so (llama_context::graph_compute(ggml_cgraph*, bool)+156) (BuildId: a58f651c3635c29ee084c1d06f00bcfbfa7465e1)
    #23 pc 0000000000252254  libllama.so (llama_context::process_ubatch(llama_ubatch const&, llm_graph_type, llama_memory_context_i*, ggml_status&)+512) (BuildId: a58f651c3635c29ee084c1d06f00bcfbfa7465e1)
    #24 pc 0000000000253d04  libllama.so (llama_context::decode(llama_batch const&)+2256) (BuildId: a58f651c3635c29ee084c1d06f00bcfbfa7465e1)
    #25 pc 000000000025a000  libllama.so (llama_decode+12) (BuildId: a58f651c3635c29ee084c1d06f00bcfbfa7465e1)
    #26 pc 0000000000008f48  libs24control.so (Java_org_llamadart_control_NativeControl_run+2128)
    
    Qwen3.5-0.8B Q4_0: GGML_VULKAN_DEBUG log (device line, then from the last pipeline created before the crash)
    ggml_vulkan: 0 = Adreno (TM) 750 (Qualcomm Technologies Inc. Adreno Vulkan Driver) | uma: 1 | fp16: 1 | bf16: 0 | fp4: 0 | warp size: 64 | shared memory: 32768 | int dot: 0 | matrix cores: none
    ...
    ggml_vk_create_pipeline(Vulkan0, rms_norm_mul_f32, main, 4, (1,1,1), specialization_constants, 1, 0, 0)
    ggml_vk_dispatch_pipeline(rms_norm_mul_f32, {(0xb400007734db7960, 0, 16384), (0xb400007734db3460, 4096, 4096), (0xb400007734db7960, 2097152, 16384), (0xb400007734db7960, 0, 16384), }, (4,1,1))
    ggml_vk_ctx_end(0xb400007524c558a8, 1)
    ggml_vk_compute_forward(0xb40000744180fff0, name=norm-0, op=RMS_NORM, type=0, ne0=1024, ne1=4, ne2=1, ne3=1, nb0=4, nb1=4096, nb2=16384, nb3=16384, view_src=0x0, view_offs=0)
    ggml_vk_submit(0xb400007524c558a8, 0x0)
    ggml_backend_vk_synchronize()
    ggml_vk_synchronize()
    ggml_vk_graph_cleanup()
    ggml_vk_command_pool_cleanup()
    ggml_backend_vk_synchronize()
    ggml_vk_synchronize()
    ggml_vk_graph_cleanup()
    ggml_vk_command_pool_cleanup()
    ggml_backend_vk_cpy_tensor_async(0xb400007441811e20 -> 0xb400007364db60f0, size=73728)
    ggml_vk_buffer_write(73728)
    ggml_vk_buffer_write_2d(73728, 1)
    ggml_backend_vk_graph_compute(6 nodes)
    ggml_vk_create_context(0xb400007524c558a8)
    ggml_vk_ctx_begin(Vulkan0)
    ggml_vk_buffer_memset_async(0, 0, 1024)
    ggml_vk_sync_buffers()
    ggml_vk_build_graph(0xb4000074418102d0, MUL_MAT)
    ggml_vk_mul_mat(0xb400007514cd44b0, 0xb400007441810160, 0xb4000074418102d0)
    ggml_vk_mul_mat_vec_q_f16((0xb400007514cd44b0, name=blk.0.attn_qkv.weight, type=2, ne0=1024, ne1=6144, ne2=1, ne3=1, nb0=18, nb1=576, nb2=3538944, nb3=3538944), (0xb400007441810160, name=attn_norm-0, type=0, ne0=1024, ne1=4, ne2=1, ne3=1, nb0=4, nb1=4096, nb2=16384, nb3=16384), (0xb4000074418102d0, name=node_13, type=0, ne0=6144, ne1=4, ne2=1, ne3=1, nb0=4, nb1=24576, nb2=98304, nb3=98304)),)
    ggml_vk_get_to_fp16()
    ggml_vk_get_dequantize_mul_mat_vec()
    ggml_vk_align_size(3538944, 64)
    ggml_pipeline_request_descriptor_sets(mul_mat_vec_q4_0_f32_f32, 1)
    ggml_vk_load_shaders(Vulkan0)
    ggml_vk_matmul_shmem_support(warptile=(64,32,32), mul_mat_id=0, src0_type=f32, supported=1
    ... (341 more ggml_vk_matmul_*shmem_support lines) ...
    ggml_vk_create_pipeline(Vulkan0, mul_mat_vec_q4_0_f32_f32, main, 5, (2,1,1), specialization_constants, 1, 1, 64)
    
    Qwen3.5-0.8B Q4_0: tombstone header and backtrace #00-#26
    Build fingerprint: 'samsung/SC-51E/SC-51E:16/BP2A.250605.031.A3/SC51EOMS1CZB4:user/release-keys'
    Timestamp: 2026-09-28 18:23:17.885031861-0700
    Process uptime: 167s
    Cmdline: org.llamadart.control
    pid: 18764, tid: 18779, name: roidJUnitRunner  >>> org.llamadart.control <<<
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000000002d0
    Cause: null pointer dereference
    #00 pc 0000000000de2fb0  /vendor/lib64/libllvm-qgl.so (!!!0000!3416e484a11876204d37d849ad85d9!c81b28e1a5!+1776) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #01 pc 0000000000319a90  /vendor/lib64/libllvm-qgl.so (!!!0000!b9c69828c384dc46eb5a73e774f971!c81b28e1a5!+1280) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #02 pc 00000000006c724c  /vendor/lib64/libllvm-qgl.so (!!!0000!37cd170f840a4673df210f61ad6d02!c81b28e1a5!+140) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #03 pc 00000000006b2f24  /vendor/lib64/libllvm-qgl.so (!!!0000!6b33cb4cd5ea14e9890651c8144ed9!c81b28e1a5!+1924) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #04 pc 00000000006b0004  /vendor/lib64/libllvm-qgl.so (!!!0000!eca60020c053e7cabab7710d1ede9d!c81b28e1a5!+1316) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #05 pc 00000000006a9528  /vendor/lib64/libllvm-qgl.so (!!!0000!a99fc215162194dc1bc1f721ccbd36!c81b28e1a5!+680) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #06 pc 0000000000e7be50  /vendor/lib64/libllvm-qgl.so (!!!0000!51d38902a0381d361b611c909947d9!c81b28e1a5!+2480) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #07 pc 0000000000850a10  /vendor/lib64/libllvm-qgl.so (!!!0000!34520e27c398aec80a9430978fab84!c81b28e1a5!+2240) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #08 pc 000000000084c024  /vendor/lib64/libllvm-qgl.so (!!!0000!b351d96637f21e15c92b76750b44e2!c81b28e1a5!+772) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #09 pc 000000000084bce0  /vendor/lib64/libllvm-qgl.so (CreateQGLCProgram(QGPUCompiler::CompileData*)+48) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #10 pc 0000000000f264e0  /vendor/lib64/libllvm-qgl.so (!!!0000!1e9735fa2d7fa7113c5ea09cbdfdc0!c81b28e1a5!+560) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #11 pc 0000000000f25a98  /vendor/lib64/libllvm-qgl.so (!!!0000!aefccce6a332610a9b22f30d0961cc!c81b28e1a5!+664) (BuildId: e45a6c21c17a933fce15407e32a702bd)
    #12 pc 00000000001672c4  /vendor/lib64/hw/vulkan.adreno.so (!!!0000!9f8153b2695670b78964f3638e2666!c81b28e1a5!+6228) (BuildId: 16fb0afc08003d7e9cb34edb847a0e53)
    #13 pc 000000000016318c  /vendor/lib64/hw/vulkan.adreno.so (!!!0000!2aa5082753cd3c7ad1b8091f24093d!c81b28e1a5!+380) (BuildId: 16fb0afc08003d7e9cb34edb847a0e53)
    #14 pc 00000000001d152c  /vendor/lib64/hw/vulkan.adreno.so (qglinternal::vkCreateComputePipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkComputePipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**)+1548) (BuildId: 16fb0afc08003d7e9cb34edb847a0e53)
    #15 pc 000000000189fb48  libggml-vulkan.so (ggml_vk_create_pipeline_func(shared_ptr<vk_device_struct>&, shared_ptr<vk_pipeline_struct>&, unsigned long, void const*, basic_string<char, char_traits<char>, allocator<char>>, unsigned int, array<unsigned int, 3ul>, vector<unsigned int, allocator<unsigned int>>, bool, bool, unsigned int)+3692) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #16 pc 0000000001891de0  libggml-vulkan.so (ggml_vk_load_shaders(shared_ptr<vk_device_struct>&, shared_ptr<vk_pipeline_struct>)+184224) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #17 pc 0000000001863474  libggml-vulkan.so (ggml_pipeline_request_descriptor_sets(ggml_backend_vk_context*, shared_ptr<vk_pipeline_struct>&, unsigned int)+308) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #18 pc 00000000018c9b54  libggml-vulkan.so (ggml_vk_mul_mat_vec_q_f16(ggml_backend_vk_context*, shared_ptr<vk_context_struct>&, ggml_cgraph const*, int, bool)+4752) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #19 pc 00000000018c3178  libggml-vulkan.so (ggml_vk_mul_mat(ggml_backend_vk_context*, shared_ptr<vk_context_struct>&, ggml_cgraph const*, int)+1300) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #20 pc 000000000191f21c  libggml-vulkan.so (ggml_backend_vk_graph_compute(ggml_backend*, ggml_cgraph*)+10524) (BuildId: 37e3b4454e19bd511f85fded88477d3ffe8d4383)
    #21 pc 00000000000a42ac  libggml-base.so (ggml_backend_sched_graph_compute_async+2352) (BuildId: 6522477f00726b319d2f76099a77b30418e9ec94)
    #22 pc 00000000002526fc  libllama.so (llama_context::graph_compute(ggml_cgraph*, bool)+156) (BuildId: a58f651c3635c29ee084c1d06f00bcfbfa7465e1)
    #23 pc 0000000000252254  libllama.so (llama_context::process_ubatch(llama_ubatch const&, llm_graph_type, llama_memory_context_i*, ggml_status&)+512) (BuildId: a58f651c3635c29ee084c1d06f00bcfbfa7465e1)
    #24 pc 0000000000253d04  libllama.so (llama_context::decode(llama_batch const&)+2256) (BuildId: a58f651c3635c29ee084c1d06f00bcfbfa7465e1)
    #25 pc 000000000025a000  libllama.so (llama_decode+12) (BuildId: a58f651c3635c29ee084c1d06f00bcfbfa7465e1)
    #26 pc 0000000000008f48  libs24control.so (Java_org_llamadart_control_NativeControl_run+2128)
    
  10. Raman-Raje commented on Sep 29, 2026

    @Raman-Raje

    @leehack This is mostly due to insufficient shared memory , Is this error shown after the below fix ggml-org/llama.cpp@3423f94 or Latest release. PLease give a try with latest release

  11. leehack commented on Sep 29, 2026

    @leehack
    OwnerAuthor

    @Raman-Raje thanks. I tested the latest release as you suggested: b11256 (c85b92c69), which includes ggml-org/llama.cpp@3423f94. It still crashes. I also tested a wider version of our workaround.

    Setup matches my previous comment: Galaxy S24 (SC-51E, Adreno 750, API 36) on Firebase Test Lab, the same minimal JNI app, -DGGML_VULKAN_DEBUG=ON, and the same settings and prompt. This time every library was built from b11256. Each model was also run on CPU in the same app as a reference.

    Build stories15M F32 Qwen3.5-0.8B Q4_0
    b11256 crash crash
    b11256 + ggml-org/llama.cpp#29165 (as posted) pass, identical to CPU crash
    b11256 + widened guard (below) pass, 32/32 tokens identical to CPU pass, 32/32 tokens identical to CPU

    Why I don't think 3423f940e or shared memory is the cause

    • The b11256 crash is the same as on v0.5.0: SIGSEGV at 0x2d0 in CreateQGLCProgram, at the same compiler PCs, on the same first pipelines:
      • mul_mat_vec_f32_f32_f32, main, 5, (1,1,1), specialization_constants, 0, 1, 64
      • mul_mat_vec_q4_0_f32_f32, main, 5, (2,1,1), specialization_constants, 1, 1, 64
    • The device line did not change: warp size: 64 | shared memory: 32768 | int dot: 0 | matrix cores: none. The driver doesn't seem to expose the cooperative-matrix path (I did not dump its extension list), so the 3423f940e changes, which are gated on coopmat plus VK_QCOM_cooperative_matrix_conversion, never activate. Its ggml_vk_should_use_mmvq change doesn't matter here either, because this device has no integer dot and the crashing pipelines are DMMV.
    • The F32 pipeline that crashes is the subgroup_no_shmem variant (inferred from source), which uses no shared memory. Moving matvec onto the shared-memory reduction is exactly what makes it pass.

    What triggers it

    All crashing pipelines have require_full_subgroups = 1 and required_subgroup_size = 64. A standalone per-op probe on the same device, one process per case, checked against a double-precision reference:

    • Unpatched b11256: the matvec pipeline compile crashes once the column count (the number of prompt tokens in the batch) is large enough: f32 at 5 or more, f16/bf16/q4_0/q4_1/q5_0/q5_1 at 3 or more, iq4_nl at 2 or more. Single-token decode compiles, which is why the crash appears on the first prefill.
    • With the widened guard: all of those types are correct at every column count from 1 to 8 (relative error about 1e-8).

    The widened guard is still behind the default-OFF GGML_VULKAN_ADRENO_750_SHMEM and still matches only this exact driver (vendor 0x5143, driverID 8, driverVersion 2150604839, Adreno (TM) 750, Android). When it matches, it sets use_subgroups = false for the matrix-vector block in ggml_vk_load_shaders, the same fallback upstream already uses for the Imagination proprietary driver. Every matvec pipeline then uses the existing shared-memory reduction, with no full-subgroup-64 requirement.

    A separate problem that remains

    On this driver, q8_0, q2_K–q6_K, iq4_xs and iq3_s matvec give wrong results (relative error 0.06–0.31) in every build, including unpatched upstream. q4_K at 1 column also fails pipeline creation with VK_ERROR_UNKNOWN. A SmolLM2-135M Q4_K_M end-to-end run fails that way, without crashing. This does not depend on the reduction mode, the subgroup flags or the workgroup size, so it looks like a separate driver issue. I have not confirmed that on another Vulkan implementation.

    Driver details, from vkGetPhysicalDeviceProperties2: vendor 0x5143, driverID 8, driverVersion 2150604839, driver build c81b28e1a5 (06/20/25), compiler E031.45.02.26.

    Runs used flash attention off and offload_kqv=false, so flash-attn/topk/ssm and other subgroup-64 pipelines were not exercised. gated_delta_net_f32_d128 (subgroup 64) compiled and ran fine on Qwen3.5.

    Next

    • The widened guard will replace the F32-only change in vulkan: add opt-in Adreno 750 matvec compatibility guard ggml-org/llama.cpp#29165. The description there is already updated; the code push follows.
    • For the wrong-result quant types, the safe option is to keep those matmuls off Vulkan on this driver so they fall back to CPU. I'll also test whether dequantizing to f16 first and then using the f16 matvec shader, which works on this device, keeps them on the GPU correctly.
    • Until then, llamadart should not select Vulkan by default on this driver.
  12. leehack commented on Oct 29, 2026

    @leehack
    OwnerAuthor

    Retest on llama.cpp v0.8.0, 2026-10-29: no crash with patch 0001, but wrong F32 output on Vulkan

    Galaxy S24 SC-51E, Android 16 / API 36, Firebase Test Lab. The driver is unchanged: Adreno (TM) 750, vendor 0x5143, driverID 8, driverVersion 2150604839, build c81b28e1a5, compiler BuildId e45a6c21c17a933fce15407e32a702bd.

    Harness: the standalone JNI app on the llama.cpp C API, with each case in a fresh process. Settings: ctx 1024, batch 1024, ubatch 512, F16 KV, flash attention off, offload_kqv=false, op_offload=false, every layer on the GPU, prompt Once upon a time, 32 greedy tokens. Vulkan output is compared with CPU.

    Builds:

    • v0.8.0: native main 5092f19 with llama.cpp 8642541b, built locally with the release recipe (tools/build.py android --backend vulkan, NDK 28.2, Ubuntu 24.04 glslc 2023.8-1build1). Built once as shipped (patches 0001–0003) and once without 0001.
    • v0.7.0-3: the official release archive, unchanged.
    Build stories15M F32 Qwen3.5-0.8B Q4_0
    v0.8.0 without 0001 (run) crash crash
    v0.8.0 with 0001 (run) no crash, 0/32 tokens equal to CPU no crash, 32/32 equal to the Pixel 9 Pro CPU and Vulkan output
    v0.7.0-3 (run) no crash, 0/32 no crash, 0/32 (token 0 every step)
    Control: Pixel 9 Pro, Mali-G715, v0.8.0 with 0001 (run) 32/32 32/32

    Without the patch, v0.8.0 crashes exactly as before: SIGSEGV at 0x2d0, libllvm-qgl.so pc de2fb0 → CreateQGLCProgram → vkCreateComputePipelines → ggml_vk_load_shaders → ggml_vk_mul_mat_vec_q_f16, on the first prefill. Upstream still has no fix, so patch 0001 stays.

    New: with the patch, F32 Vulkan output is wrong on v0.7.0 and v0.8.0, although the same patch on b11256 matched CPU 32/32. On v0.8.0, GGML_VK_DISABLE_FUSION=1 makes stories15M equal to CPU (32/32). Turning off graph optimization, async, or descriptor reuse, or prefilling one token at a time, does not help (run). So a fused Vulkan op that arrived or changed after b11256 computes wrong results on this driver. Which op it is has not been identified.

    What this means:

    • Patch 0001 still prevents the crash, but it does not make this driver usable. llamadart keeps routing it to CPU (fix: refuse unsafe Android Adreno 750 Vulkan driver llamadart#996), so users are not exposed.
    • Not established: which fused op is wrong; Qwen3.5 on v0.7.0-3 with fusion disabled; K-quants; flash attention; a release-built bundle. The v0.8.0 rows are a local build of the release recipe, because v0.8.0 was not yet published.

    Evidence: llamadart-evidence/issue-79-v080/.

  13. leehack commented on Oct 30, 2026

    @leehack
    OwnerAuthor

    The wrong F32 output is the RMS_NORM_MUL fusion (rms_norm.comp with multiply), 2026-10-29

    Same S24 and driver as before. The build is a local v0.8.0 build from the release recipe, with patch 0001. Each case runs in a fresh process, and output is compared with CPU.

    Variant stories15M F32 Run
    Baseline 0/32 run
    Only RMS_NORM_MUL disabled 32/32 same
    Only RMS_NORM_MUL enabled 0/32 same
    MUL_MAT_ADD, ADD_RMS, ROPE_VIEW_SET_ROWS or MULTI_ADD disabled, one at a time 0/32 same
    b11256 rms_norm.comp in the v0.8.0 build 32/32 run
    v0.7.0 rms_norm.comp (#30145) in the v0.8.0 build 0/32 run
    Patch 0001 that also disables the RMS_NORM+MUL fusions on this driver (prototype) 32/32; test-backend-ops RMS_NORM 379/379; Qwen3.5 unchanged run
    Pixel 9 Pro control, including forced shared-memory matvec 32/32 for every case run
    • test-backend-ops on the S24: RMS_NORM_MUL_ADD and RMS_NORM_MUL_ROPE fail with a broadcast weight at ne0 511 and 16385 (ERR 1.4–1.9). Plain RMS_NORM passes. Mali passes everything with the same SPIR-V, which points to the Adreno shader compiler.
    • Ruled out: glslc 2023.8 and 2026.4 behave the same. On v0.8.0, removing the #30145 loops or the barrier does not help.
    • Same bug on v0.7.0-3: the Qwen3.5 token-0 output there is the same bug. Disabling fusion fixes it (run).
    • K-quants are a separate defect, with no fusion involved: single-op MUL_MAT q8_0 is wrong at n=5–8, and q4_K mul_mat_vec fails pipeline creation.

    Routing this driver to CPU (leehack/llamadart#996) stays, because of the K-quant defect. A driver-gated disable of the RMS_NORM+MUL fusions inside patch 0001 is prototyped (above) but not applied. Evidence: llamadart-evidence/issue-79-v080/fusion-diag/.

  14. leehack commented on Oct 30, 2026

    @leehack
    OwnerAuthor

    Published v0.8.0 android-arm64 on Galaxy S24 (Adreno 750, SC-51E, Android 16), new affected models. Soprano F16 on Vulkan returns the same non-speech PCM for all 4 inputs and runs to its 512-frame limit, silently, with finite non-silent samples: an output failure, not a crash. LFM3-1.7B Q4_K_M throws at the first decode: compute pipeline creation failed for matmul_quant_f32_f16acc_aligned_0: ErrorUnknown. Same harness on Mali-G715 and Xclipse 530 Vulkan: both correct. The S24 CPU path is correct for both models. Not rerun with GGML_VK_DISABLE_FUSION. Evidence: llamadart-evidence/v080-qualification/ftl/s24-r2, s24-r3.

  15. leehack commented on Nov 26, 2026

    @leehack
    OwnerAuthor

    Candidate PR #241 retires carry 0001 for llama.cpp v1.1.0. Upstream #30826 (8bf88ba9, in v1.1.0) sets subgroup_arithmetic = false for vk::DriverId::eQualcommProprietary, which disables the subgroup-reduction dequant mul_mat_vec shaders the patch avoided. This is not retirement evidence by itself. Required before release: on SC-51E/API36 (Adreno 750, driver 2150604839, build c81b28e1a5), old unpatched FAIL / old patched PASS / candidate unpatched PASS with stories15M F32 and Qwen3.5-0.8B Q4_0 multi-token prefill, plus Adreno decode throughput against v1.0.0 (the upstream change also turns off ADD+RMS_NORM fusion on every Qualcomm proprietary driver). If the candidate unpatched run fails, restore 0001 from git history. Gate recorded in docs/v110_qualification.md. This issue stays open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked-upstreambugpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions