Skip to content

Remove calls to the deprecated llama_set_warmup - #205

Merged
mattt merged 2 commits into
huggingface:mainfrom
james-333i:fix/llama-warmup-removal
Sep 2, 2026
Merged

Remove calls to the deprecated llama_set_warmup#205
mattt merged 2 commits into
huggingface:mainfrom
james-333i:fix/llama-warmup-removal

Conversation

@james-333i

Copy link
Copy Markdown
Contributor

Current llama.cpp builds deprecate llama_set_warmup (TAG_LLAMA_GRAPH_NO_WARMUP). Warmup no longer runs implicitly, so calling it with false is a no-op, and the header notes the function will be removed.

This removes both call sites in LlamaLanguageModel. There is no behavior change

@mattt mattt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @james-333i. One small thing before I merge: removing the llama_set_warmup line left the next line over-indented, and CI runs swift format lint --strict, so this fails the Lint step. Accepting the suggestion below should do it.

Comment thread Sources/AnyLanguageModel/Models/LlamaLanguageModel.swift Outdated
@mattt

mattt commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Merging now. Thanks, @james-333i!

@mattt
mattt merged commit 6fd35ce into huggingface:main Sep 2, 2026
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.

2 participants