convert : add --local-model and --local-llama options - #23
Merged
Conversation
This commit adds two new options to the convertion script to enable specifying a local model directory instead the models being downloaded form HuggingFace. And the other option is to enable a local llama.cpp directory to be used instead of upstream llama.cpp The motivation for these options is to enable the convert repo/tool to be used with models that are not yet available on HF, for example unreleased models. These models sometimes requires additions/changes to llama.cpp as well and it by introducing the local-llama option a local/private llama.cpp can be used to convert the models.
This commit make --no-upload also apply to the model card to prevent anything from being uploaded to HF. The --private flag is also added when --local-model is specified which make the model repository private on HF. With these in place developing a new private model can be done and it is possible to verify the uploaded artifact using a HF user separate from the ggml-org namespace. I've tested this and the following repository should not be accessible: https://huggingface.co/danbev/Qwen3.8-27B-GGUF
danbev
marked this pull request as ready for review
August 27, 2026 08:38
ggerganov
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds two new options to the convertion script to enable specifying a local model directory instead the models being downloaded form HuggingFace. And the other option is to enable a local llama.cpp directory to be used instead of upstream llama.cpp
The motivation for these options is to enable the convert repo/tool to be used with models that are not yet available on HF, for example unreleased models. These models sometimes requires additions/changes to llama.cpp as well and by introducing the local-llama option a local/private llama.cpp can be used to convert the models.
example usage
Example upload: https://huggingface.co/danbev/Qwen3.8-27B-GGUF
Note
This model repo is private and should not be visible which is actually what we want so we don't disclose any information about new models.