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): drop unnecessary code in loader #4096

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Conversation

mudler
Copy link
Owner

@mudler mudler commented Nov 8, 2024

Description

This PR contains some refactors extracted from #3722 .

It simplifies loading as it now expose a single method to load a model.

BackendLoader is now moved to an internal function ( backendLoader), GreedyLoader is now just Loader, which will automatically go in greedy mode if no backend is explicitly set in the configuration.

Notes for Reviewers

This has the added benefit that now not only the code is more consistent, but every caller have the chance to hit back the cache if a model was already loaded.

Signed commits

  • Yes, I signed my commits.

Copy link

netlify bot commented Nov 8, 2024

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 97060ae
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/672e5611a1e6bf00082b66e9
😎 Deploy Preview https://deploy-preview-4096--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 changed the title chore(refactor): Refactor model options and Model Loader chore(refactor): drop unnecessary code in loader Nov 8, 2024
@mudler mudler merged commit 6daef00 into master Nov 8, 2024
33 checks passed
@mudler mudler deleted the chore/loader branch November 8, 2024 20:54
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