mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 06:39:25 +01:00
convert-*.py: add general.name kv override (#8571)
This commit is contained in:
parent
a15ef8f8a0
commit
3d0e4367d9
@ -62,6 +62,7 @@ class Metadata:
|
|||||||
# This is based on LLM_KV_NAMES mapping in llama.cpp
|
# This is based on LLM_KV_NAMES mapping in llama.cpp
|
||||||
metadata_override = Metadata.load_metadata_override(metadata_override_path)
|
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.author = metadata_override.get(Keys.General.AUTHOR, metadata.author)
|
||||||
metadata.version = metadata_override.get(Keys.General.VERSION, metadata.version)
|
metadata.version = metadata_override.get(Keys.General.VERSION, metadata.version)
|
||||||
metadata.organization = metadata_override.get(Keys.General.ORGANIZATION, metadata.organization)
|
metadata.organization = metadata_override.get(Keys.General.ORGANIZATION, metadata.organization)
|
||||||
|
Loading…
Reference in New Issue
Block a user