Skip to content

fix(backend-detection): default to CPU if there is less than 4GB of GPU available #6057

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

Merged
merged 1 commit into from
Aug 14, 2025

Conversation

mudler
Copy link
Owner

@mudler mudler commented Aug 14, 2025

Description

Currently, automatic backend detection will detect also iGPUs. This might not be the best thing to do automatically, hence we do add a check here to check the available VRAM first, if we have more than 4GB and we detect a gpu we select automatically the correct vendor, othertwise we default to GPU. Note that this behavior can still be override via env variable.

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Copy link

netlify bot commented Aug 14, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit b61aef4
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/689de89520c05800086450ad
😎 Deploy Preview https://deploy-preview-6057--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler changed the title fix(gpu-detection): default to CPU if there is less than 4GB of GPU available fix(backend-detection): default to CPU if there is less than 4GB of GPU available Aug 14, 2025
@mudler mudler merged commit 19c92c7 into master Aug 14, 2025
25 checks passed
@mudler mudler deleted the fix/cpu_detect branch August 14, 2025 14:57
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.

1 participant