Skip to content

Commit

Permalink
gguf: SpecialVocab: Actually set load_merges in object
Browse files Browse the repository at this point in the history
  • Loading branch information
KerfuffleV2 committed Aug 29, 2023
1 parent 0c620ef commit 2ea1338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gguf-py/gguf/gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ class SpecialVocab:

def __init__(self, path: Path, load_merges: bool = False, special_token_types: Optional[Tuple[str, ...]] = None):
self.special_token_ids = {}
self.load_merges = load_merges
if special_token_types is not None:
self.special_token_types = special_token_types
self.load(path)
Expand Down

0 comments on commit 2ea1338

Please sign in to comment.