llama : drop the redundant cnv from llm_attn_mask (#31558)
The dspark block mask is now derived at input-fill time: llm_attn_mask::block_uniform fills every token of a sequence with the mask row of its first token, so the graph-level reshape/repeat in dflash is gone and cnv always aliases raw. Assisted-by: dsh:llama.cpp/ggml-org/GLM-5.3-Flash-GGUF (Mac Studio, M5 Ultra, 256GB)
This commit is contained in:
1 parent
0f663d2471
commit
ca8daad199
14 files changed
+46
-69
No files matched your search
@@ -642,7 +642,7 @@ ggml_tensor * llama_model_deepseek41::graph::build_attention41(
|
||||
ggml_build_forward_expand(gf, inp_attn->mctx->cpy_k(ctx0, kv, inp_attn->get_k_idxs(), il));
|
||||
|
||||
ggml_tensor * raw_k = inp_attn->mctx->get_k(ctx0, il);
|
||||
ggml_tensor * raw_mask = inp_attn->self_attn_mask.cnv;
|
||||
ggml_tensor * raw_mask = inp_attn->self_attn_mask.raw;
|
||||
|
||||
const int32_t topk_src = hparams.dsv41_topk_src[il];
|
||||
const int64_t k_sel = top_k->ne[0];
|
||||
|
||||
Reference in new issue
Block a user