gguf.py : add licence and version to gguf writer (#6504)
This commit is contained in:
parent
d0f5deebf8
commit
a8bd14d557
3 changed files with 9 additions and 0 deletions
|
@ -296,6 +296,9 @@ class GGUFWriter:
|
|||
def add_author(self, author: str) -> None:
|
||||
self.add_string(Keys.General.AUTHOR, author)
|
||||
|
||||
def add_version(self, version: str) -> None:
|
||||
self.add_string(Keys.General.VERSION, version)
|
||||
|
||||
def add_tensor_data_layout(self, layout: str) -> None:
|
||||
self.add_string(Keys.LLM.TENSOR_DATA_LAYOUT.format(arch=self.arch), layout)
|
||||
|
||||
|
@ -305,6 +308,9 @@ class GGUFWriter:
|
|||
def add_description(self, description: str) -> None:
|
||||
self.add_string(Keys.General.DESCRIPTION, description)
|
||||
|
||||
def add_licence(self, licence: str) -> None:
|
||||
self.add_string(Keys.General.LICENSE, licence)
|
||||
|
||||
def add_source_url(self, url: str) -> None:
|
||||
self.add_string(Keys.General.SOURCE_URL, url)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue