Skip to content

feat(llama-cpp): add device selection option#10724

Merged
mudler merged 1 commit into
mudler:masterfrom
rvmz:feature/llama-cpp-device-selection
Jul 7, 2026
Merged

feat(llama-cpp): add device selection option#10724
mudler merged 1 commit into
mudler:masterfrom
rvmz:feature/llama-cpp-device-selection

Conversation

@rvmz

@rvmz rvmz commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Allow llama.cpp model configs to select the backend devices used for offload, matching upstream --device behavior so users can exclude a display or debug GPU.
#10717

Description

This PR adds device / devices support to the llama.cpp backend options: array.
Users can now configure LocalAI model YAML like:

options:
  - devices:CUDA1,CUDA2,CUDA3
  • make build

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Allow llama.cpp model configs to select the backend devices used for offload, matching upstream --device behavior so users can exclude a display or debug GPU.

Signed-off-by: rvmzes <rvmzes@rvmzess-MacBook-Pro.local>

@mudler mudler left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

looking good, thanks!

@mudler mudler linked an issue Jul 7, 2026 that may be closed by this pull request
@mudler mudler enabled auto-merge (squash) July 7, 2026 19:57
@mudler mudler merged commit a3fdfbc into mudler:master Jul 7, 2026
66 checks passed
treilhes pushed a commit to treilhes/LocalAI that referenced this pull request Jul 7, 2026
Allow llama.cpp model configs to select the backend devices used for offload, matching upstream --device behavior so users can exclude a display or debug GPU.

Signed-off-by: rvmzes <rvmzes@rvmzess-MacBook-Pro.local>
Co-authored-by: rvmzes <rvmzes@rvmzess-MacBook-Pro.local>
Signed-off-by: treil <p.treilhes@free.fr>
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.

Add --device options like in llama.cpp for gpu selection

2 participants