one more NoVocab assert
This commit is contained in:
parent
94a1050e57
commit
9cb1554fb0
1 changed files with 2 additions and 0 deletions
|
@ -1034,6 +1034,8 @@ class OutputFile:
|
||||||
self.gguf.add_file_type(params.ftype)
|
self.gguf.add_file_type(params.ftype)
|
||||||
|
|
||||||
def extract_vocabulary_from_model(self, vocab: Vocab) -> tuple[list[bytes], list[float], list[gguf.TokenType]]:
|
def extract_vocabulary_from_model(self, vocab: Vocab) -> tuple[list[bytes], list[float], list[gguf.TokenType]]:
|
||||||
|
assert not isinstance(vocab, NoVocab)
|
||||||
|
|
||||||
tokens = []
|
tokens = []
|
||||||
scores = []
|
scores = []
|
||||||
toktypes = []
|
toktypes = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue