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

chore(refactor): group cpu cap detection #4674

Merged
merged 1 commit into from
Jan 23, 2025
Merged

chore(refactor): group cpu cap detection #4674

merged 1 commit into from
Jan 23, 2025

Conversation

mudler
Copy link
Owner

@mudler mudler commented Jan 23, 2025

Description

This pull request includes changes to the pkg/model/initializers.go file to simplify the detection and handling of llama.cpp backend variants. The most important changes include the introduction of a new variable to store the variants and the refactoring of the backend detection logic.

Improvements to backend detection:

  • pkg/model/initializers.go: Added a new variable llamaCPPVariants to store llama.cpp backend variants.
  • pkg/model/initializers.go: Refactored the backend detection logic to use the new llamaCPPVariants variable, simplifying the code and reducing redundancy.

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit feaae6f
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/679250e82cb4810008a58889
😎 Deploy Preview https://deploy-preview-4674--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 site configuration.

@mudler mudler merged commit f9e368b into master Jan 23, 2025
25 checks passed
@mudler mudler deleted the chore/detect branch January 23, 2025 15:35
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