Skip to content

Commit

Permalink
convert-*.py: add general.name kv override (ggerganov#8571)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofosyne authored Jul 19, 2024
1 parent a15ef8f commit 3d0e436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gguf-py/gguf/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def load(metadata_override_path: Optional[Path] = None, model_path: Optional[Pat
# This is based on LLM_KV_NAMES mapping in llama.cpp
metadata_override = Metadata.load_metadata_override(metadata_override_path)

metadata.name = metadata_override.get(Keys.General.NAME, metadata.name)
metadata.author = metadata_override.get(Keys.General.AUTHOR, metadata.author)
metadata.version = metadata_override.get(Keys.General.VERSION, metadata.version)
metadata.organization = metadata_override.get(Keys.General.ORGANIZATION, metadata.organization)
Expand Down

0 comments on commit 3d0e436

Please sign in to comment.