Skip to content

Commit

Permalink
one more NoVocab assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Xarbirus committed Mar 14, 2024
1 parent 94a1050 commit 9cb1554
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,8 @@ def add_meta_arch(self, params: Params) -> None:
self.gguf.add_file_type(params.ftype)

def extract_vocabulary_from_model(self, vocab: Vocab) -> tuple[list[bytes], list[float], list[gguf.TokenType]]:
assert not isinstance(vocab, NoVocab)

tokens = []
scores = []
toktypes = []
Expand Down

0 comments on commit 9cb1554

Please sign in to comment.