Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph : simplify attn input build for unified KV cache #12381

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

ggerganov
Copy link
Member

@ggerganov ggerganov commented Mar 14, 2025

fix #12380

The llm_graph_context::build_attn_inp_kv_unified used to take 2 redundant arguments: wether the attention is causal and wether SWA is enabled. The causal is always true when using a KV cache, while the swa can be deduced from the hparams.

ggml-ci
@ggerganov ggerganov merged commit c522ce4 into master Mar 14, 2025
53 of 54 checks passed
@ggerganov ggerganov deleted the gg/graph-simplify-attn-inp branch March 14, 2025 08:47
jpohhhh pushed a commit to Telosnex/llama.cpp that referenced this pull request Mar 14, 2025
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.

Eval bug: Segmentation fault from latest git 84d547554123a62e9ac77107cb20e4f6cc503af4
1 participant