mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-06 02:48:57 +01:00
gguf.py : add tensor data layout
This commit is contained in:
parent
2dd5d2c92c
commit
b6056c3db8
3
gguf.py
3
gguf.py
@ -207,6 +207,9 @@ class GGUFWriter:
|
||||
def add_author(self, author: str):
|
||||
self.add_string(constants.KEY_GENERAL_AUTHOR, author)
|
||||
|
||||
def add_tensor_data_layout(self, layout: str):
|
||||
self.add_string(constants.KEY_LLM_TENSOR_DATA_LAYOUT , layout)
|
||||
|
||||
def add_url(self, url: str):
|
||||
self.add_string(constants.KEY_GENERAL_URL, url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user