Skip to content

convert-hf : set the model name based on cli arg, if present #7693

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

Merged
merged 2 commits into from
Jun 9, 2024

Conversation

sasha0552
Copy link
Contributor

Previously, convert-hf-to-gguf.py simply ignored the --model-name argument. Because of this, in my case the model name was equal to the commit hash (I convert models directly from the huggingface cache).

@github-actions github-actions bot added the python python script changes label Jun 2, 2024
@sasha0552 sasha0552 force-pushed the convert-model-name branch 2 times, most recently from dae4a38 to 3c41647 Compare June 2, 2024 10:19
@sasha0552 sasha0552 force-pushed the convert-model-name branch from 3c41647 to ed6f58c Compare June 2, 2024 10:21
@mofosyne
Copy link
Collaborator

mofosyne commented Jun 2, 2024

Just a heads up that this will conflict with the PR I am currently working on

#7499

I will however add the corresponding corrections to account for your requirement. I think mine is almost ready but if it takes too long then we can add yours in if it passes peer review since it looks to be a smaller scope change.


edit: Investigating the history it was first added in https://github.com/ggerganov/llama.cpp/blob/f4ab2a41476600a98067a9474ea8f9e6db41bcfa/convert-hf-to-gguf.py but strangely never used.

@mofosyne mofosyne added the Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix label Jun 3, 2024
Copy link
Collaborator

@mofosyne mofosyne left a comment

Choose a reason for hiding this comment

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

Let's merge now as mine is taking quite a while to sort out

@mofosyne mofosyne merged commit 2decf57 into ggml-org:master Jun 9, 2024
20 checks passed
@sasha0552 sasha0552 deleted the convert-model-name branch June 9, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python python script changes Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants