Skip to content

Commit

Permalink
Fix merges is bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
apaniukov committed Sep 26, 2024
1 parent 132f0e1 commit c8c2c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/openvino_tokenizers/tokenizer_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def from_tiktoken_encoding(

@property
def merges_is_bytes(self) -> bool:
return self.merges and isinstance(self.merges[0], tuple)
return self.merges and not isinstance(self.merges[0], str)

def get_ov_subgraph(self, input_nodes: List[Output]) -> List[Output]:
pipeline = self.get_pipeline()
Expand Down

0 comments on commit c8c2c8c

Please sign in to comment.