Repository navigation
tests : enable Gemma 4 in test-llama-archs - #31401
Conversation
|
I hit the same abort a few days ago while fixing Symptom. The CUDA job dies at Cause. In the Fix. Move the KV-reuse mapping formula from the I can open it as a small PR on top of this one. The |
|
Thanks, I'm working on a fix as we speak. |
fa5db2c to
b4bdeae
Compare
|
@m4zar I've put up a fix for that test failure here: #31406
I decided to solve this a bit differently. I didn't want to move Gemma-specific logic into the generic |
|
Makes sense, reusing |
ServeurpersoCom
left a comment
There was a problem hiding this comment.
Ran the gemma4 test from this PR on current master (with #31073) on 1 to 4 CUDA devices, all pass with #31406 underneath.
FYI the gemma4 dummy uses n_head_kv = n_head, so it doesn't cover the MQA case: a real Gemma-4-E2B (n_head_kv = 1) still aborts with -sm tensor even on 1 device (ggml-backend-meta.cpp:547), that's #24015 which got closed as stale without a fix. Worth an MQA variant here once that's fixed.
b4bdeae to
c01e2ec
Compare
|
@ServeurpersoCom Thanks, good catch! E2B uses MQA. E4B, 26B, 31B use GQA. 12B uses both (for different layers). I've updated the fixture to use GQA for now. Once #24015 is fixed, EDIT: Looks like tests don't pass on all backends with the GQA change. Looking into it. |
c01e2ec to
af4545c
Compare
|
Tests pass now. I've reset Why it failed before: 128 / 4 = 32 and CUDA has no FA kernel of size 32. I've found no reason to override |
|
Re #24015: |
|
@MerijnHendriks Good point. I've reopened the existing issue. |
af4545c to
541e983
Compare
|
need to fix https://github.com/ggml-org/llama.cpp/actions/runs/41224150674/job/124604668380?pr=31401 before merging |
541e983 to
bc3b01e
Compare
|
Looks like the test failure was a flake. I cannot reproduce it locally, it didn't happen before the rebase earlier today, it now works again after another rebase, and the PR does not touch the model that failed. The Could one of you reapprove the PR, please? |
|
Thanks for your help and reviews, everyone! 🙏 |
Overview
Adds Gemma 4 to
test-llama-archs, which was a leftover todo from #21309.Also updates the
llama-model-savercode so that the save check works.I'll enable the MoE variant in
test-llama-archsin a follow-up PR. It requires changes to the Fusion logic to work properly.CC @ngxson (due to the FIXME comment in the code).
Requirements