Skip to content

llama : remove redundant fields from llm_graph_params - #32596

Merged
ggerganov merged 1 commit into
masterfrom
gg/llm-graph-params
Nov 19, 2026
Merged

ggerganov merged 1 commit into
masterfrom
gg/llm-graph-params

Conversation

@ggerganov

Copy link
Copy Markdown
Member

Overview

llm_graph_params no longer carries hparams, prec_policy and hdmd, since the llama_model reference already stored in the struct provides them. llm_graph_context now sources these from the model, and prec_policy is a reference there, placed right after ubatch.

Requirements

llm_graph_params no longer carries hparams, prec_policy and hdmd, since the model reference already provides them. llm_graph_context sources them from the model and keeps prec_policy as a reference.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)
@ggerganov
ggerganov marked this pull request as ready for review November 19, 2026 09:55
@ggerganov
ggerganov requested review from a team and CISC as code owners November 19, 2026 09:55
@ggerganov
ggerganov merged commit 01592dc into master Nov 19, 2026
27 of 28 checks passed
@ggerganov
ggerganov deleted the gg/llm-graph-params branch November 19, 2026 11:31
fletto2 added a commit to fletto2/llama.cpp-classifier that referenced this pull request Nov 20, 2026
124 ggml-org commits. Conflicts:
- ggml-cuda.cu MUL_MAT_ID fallback: upstream ggml-org#32505 gives duplicate expert ids a row each; our host counting sort
  (30190eb) now counts every slot too, which gives upstream's arrays without its experts x tokens scan
- ggml-cuda.cu fusion: upstream's NORM(+MUL(+ADD)) fusions, then our rmsnorm fusion with its skip guard
- mmq-config-gcn.cuh: our TQ*/IQ3_K/IQ3_KS rows kept, upstream's retuned IQ2_S/IQ3_XXS rows taken
- llm_graph_params (ggml-org#32596): prec_policy/hdmd/hparams now come from the model; our layers / MoE selection bias /
  tail-skip fields kept
- build_attn iswa: upstream's static build_attn_iswa_impl(gctx, ...), with our KV fold as gctx.build_attn_kfold
- llama-ext.h: both; README: ours
Annieren pushed a commit to Annieren/llama.cpp-upstream that referenced this pull request Nov 23, 2026
llm_graph_params no longer carries hparams, prec_policy and hdmd, since the model reference already provides them. llm_graph_context sources them from the model and keeps prec_policy as a reference.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)
Cinderella-Man added a commit to Cinderella-Man/miner-llama that referenced this pull request Nov 24, 2026
…(upstream ggml-org#32596 removed llm_graph_params::hparams) (C912)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mr-J-369 pushed a commit to Mr-J-369/llama.cpp-Android that referenced this pull request Nov 25, 2026
llm_graph_params no longer carries hparams, prec_policy and hdmd, since the model reference already provides them. llm_graph_context sources them from the model and keeps prec_policy as a reference.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)
(cherry picked from commit 01592dc)
Nindaleth pushed a commit to Nindaleth/llama.cpp that referenced this pull request Nov 26, 2026
llm_graph_params no longer carries hparams, prec_policy and hdmd, since the model reference already provides them. llm_graph_context sources them from the model and keeps prec_policy as a reference.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants