model : disallow integer dflash sliding_window_pattern - #26900
Conversation
|
For regression coverage, would it be useful to include both scalar and array encodings of That would cover the full semantic path: serialization representation → normalized model configuration → target loading → drafter inheritance/binding It would also avoid making either GGUF serialization form accidentally canonical when both are intended to represent the same effective pattern. |
Well, this changed mid-flight, easy to miss. :) I need someone to confirm it actually works now though, not had time to test. |
|
hmm, on second look, in the case of glimmer we have this pattern: https://huggingface.co/meta-models/Muse-Glimmer-30B-assistant/blob/main/config.json#L14, which is replicated here: https://huggingface.co/meta-models/Muse-Glimmer-30B-GGUF/tree/main?show_file_info=dflash-kquant.gguf. So all layers are SWA in this drafter after all? |
|
Reading over the issue again I think it may not actually be related (probably a case of a confused LLM), it states using the same DFlash GGUF for both (ie, the one where |
I did approve the PR without looking much into the topic. Dismissing for now.
With |
It may make more sense to disallow this as integer for DFlash as a stepping pattern is unlikely to be useful. The current implementation in |
Yes, I agree. I think this PR (or an equivalent solution) makes sense for future proofing, but I can't reproduce the original problem that was reported in #26894. |
|
yeah, I agree that this PR is still valid for future-proofing, it should be harmless for existing GGUFs |
|
So it seems Muse Glimmer DFlash is ok after all, this PR should prevent any ambiguity though. |
Signed-off-by: Gabe Goodhart <ghart@us.ibm.com> * origin/master: (383 commits) cmake : introduce semantic versioning (ggml-org#26839) gguf : harden loader against malformed tensor dims and metadata types (ggml-org#25596) kleidiai: Add runtime feature detection mechanism for aarch64/kleidiai (ggml-org#26076) model : disallow integer dflash sliding_window_pattern (ggml-org#26900) sync : ggml cmake : add config version support (ggml/1582) server : support slot save/restore with media inputs (ggml-org#26640) ui: add read_media tool (ggml-org#25877) opencl: default FA c8 cluster width to 16 on X1E (ggml-org#26433) tests : update speculative params (ggml-org#26925) vulkan: add TQ2_0 (ternary) support (ggml-org#25850) wavtokenizer-dec : bound posnet/convnext block_count against n_layer_all (ggml-org#26892) convert : handle per_layer_config in Gemma4 (transformers 5.15) (ggml-org#26882) opencl: use flat mv q5_k when weight exceeds image1d_buffer_t limit (ggml-org#26880) chat : fix muse-glimmer detection of tool calls after EOM (ggml-org#26879) ci : add missing release check (ggml-org#26923) CUDA: only disable CUDA graphs when mul_mat_id actually needs a stream sync (ggml-org#26802) cuda : add warp-per-row wkv7 kernel for single-token decode (ggml-org#26111) spec : update speculative-simple (ggml-org#26904) chat : tighten bare function parsing for Qwen models (ggml-org#26793) ...
* fix sliding_window_pattern * disallow integer pattern
Overview
Nixes #26894Additional information
DFlash model code could potentially incorrectly read the metadata. Disallow integer pattern.
Requirements