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

[SPARKNLP-1027] Fix issue with pretrained model #14413

Conversation

DevinTDHa
Copy link
Member

@DevinTDHa DevinTDHa commented Sep 24, 2024

Description

This PR fixes a critical bug when using pretrained models with AutoGGUFModels.

The file protocol is included in the path while trying to read the model. This has been (temporarily) fixed by removing the protocol from the path string. The file should be local at this point, as it as copied to a temporary local location if it was remote.

How Has This Been Tested?

Tests passing with pretrained models.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Code improvements with no or little impact
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@DevinTDHa DevinTDHa self-assigned this Sep 24, 2024
@maziyarpanahi maziyarpanahi merged commit cc38757 into JohnSnowLabs:release/550-release-candidate Sep 24, 2024
4 checks passed
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.

2 participants