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

Fix: Model Gallery Downloads #835

Merged
merged 1 commit into from
Jul 30, 2023

Conversation

dave-gray101
Copy link
Collaborator

Description

Model Gallery downloads are broken. Small tweak prevents VerifyPath from going into an endless loop on my system.

This PR fixes go-skynet/model-gallery#16

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@dave-gray101 dave-gray101 enabled auto-merge (squash) July 30, 2023 01:31
@dave-gray101 dave-gray101 requested a review from mudler July 30, 2023 05:42
@mudler
Copy link
Owner

mudler commented Jul 30, 2023

Description

Model Gallery downloads are broken. Small tweak prevents VerifyPath from going into an endless loop on my system.

This PR fixes go-skynet/model-gallery#16

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Working here and I'm the CI, I guess this is because the path contains some extra slashes?

However it's a good guard, better sanitize the output!

@dave-gray101 dave-gray101 merged commit 5ce0f21 into mudler:master Jul 30, 2023
@dave-gray101
Copy link
Collaborator Author

For future reference: the issue was caused when basepath had a leading '.' and wasn't cleaned. Since c could never match a path with a leading '.', it got trapped in the for loop of inTrustedRoot

@mudler mudler added the bug Something isn't working label Aug 2, 2023
@dave-gray101 dave-gray101 deleted the fix-model-gallery-path branch February 21, 2024 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MBA m1] Cannot install openllama_3b nor llama2-chat
2 participants