mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 03:44:35 +00:00
gguf.py : support any type
This commit is contained in:
parent
2c22e3bcdb
commit
9577821487
4
gguf.py
4
gguf.py
@ -270,10 +270,10 @@ class GGUFWriter:
|
||||
def write_tokenizer_model(self, model: str):
|
||||
self.write_string(constants.KEY_TOKENIZER_MODEL, model)
|
||||
|
||||
def write_token_list(self, tokens: List[str]):
|
||||
def write_token_list(self, tokens: List):
|
||||
self.write_array(constants.KEY_TOKENIZER_LIST, tokens)
|
||||
|
||||
def write_token_scores(self, scores: List[float]):
|
||||
def write_token_scores(self, scores: List:
|
||||
self.write_array(constants.KEY_TOKENIZER_SCORES, scores)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user