Skip to content

param.path_model is a Path() not a string #4848

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

Closed
wants to merge 3 commits into from

Conversation

mofosyne
Copy link
Collaborator

@mofosyne mofosyne commented Jan 9, 2024

No description provided.

@ggerganov ggerganov requested a review from cebtenzzre January 10, 2024 13:39
convert.py Outdated
name = str(params.path_model.parent).split("/")[-1]
name = params.path_model.name
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't this code supposed to get the basename of the containing folder? Maybe params.path_model.parent.name.

@cebtenzzre cebtenzzre closed this Apr 6, 2024
@mofosyne
Copy link
Collaborator Author

mofosyne commented Apr 8, 2024

Closed because it already works still?

@cebtenzzre
Copy link
Collaborator

I made the same PR here, with a description stating that I was actually intending to make a functional change: #5615

But it was not immediately accepted because it apparently conflicts with the expected structure of the models folder, which is alluded to here: https://github.com/ggerganov/llama.cpp#prepare-and-quantize

@mofosyne mofosyne deleted the name-metadata-fix branch April 10, 2024 13:38
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