Skip to content

Commit

Permalink
Parse QWEN EOD_TOKEN_ID
Browse files Browse the repository at this point in the history
(cherry picked from commit 029a341)
  • Loading branch information
apaniukov committed Apr 18, 2024
1 parent 4891f99 commit 137964f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/openvino_tokenizers/hf_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def parse(
),
]:
add_steps()
self.pipeline.eos_token_id = pipeline.get_eos_token_id(self.original_tokenizer)

self.pipeline.eos_token_id = self.pipeline.get_eos_token_id(self.original_tokenizer)
return self.pipeline

normalizers_map: Dict[
Expand Down
4 changes: 3 additions & 1 deletion tests/pass_rates.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"tests/tokenizers_test.py::test_": 0.8713874640310272
"tests/tokenizers_test.py::test_": 0.8713874640310272,
"tokenizers_test.py::test_": 0.8713874640310272,
"tokenizers_test.py::test_hf_bpe_tokenizers_outputs[MiniLM-L6-H384-uncased-sst2-": 0.8055555555555556
}

0 comments on commit 137964f

Please sign in to comment.