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

feat(transformers): Use downloaded model for Transformers backend if it already exists. #3777

Merged

Conversation

joshbtn
Copy link
Contributor

@joshbtn joshbtn commented Oct 10, 2024

Description

This will use the ModelFile property of the LoadModel method in the transformers backend to see if the model already exists, if it does it'll use the ModelFile as the model name to ensure Transformers loads the model from disk rather than trying to download it from huggingface.

This PR fixes #3776

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Josh Bennett <562773+joshbtn@users.noreply.github.com>
Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for localai ready!

Name Link
🔨 Latest commit f7ce19a
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/67071ce6f63b5b0008f00e7c
😎 Deploy Preview https://deploy-preview-3777--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.

@joshbtn joshbtn force-pushed the transformers_use_filesystem_model_if_exists branch from 0b28007 to 2e56f28 Compare October 10, 2024 00:07
@mudler mudler enabled auto-merge (squash) October 10, 2024 07:08
Copy link
Owner

@mudler mudler left a comment

Choose a reason for hiding this comment

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

Looking good here - thank you!

@mudler mudler merged commit 85a3cc8 into mudler:master Oct 10, 2024
29 checks passed
@mudler mudler added the enhancement New feature or request label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use pre-downloaded models with the Transformers backend
2 participants