Skip to content

Commit

Permalink
[hotfix] convert_HF eos_tokens slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
francoishernandez authored Sep 20, 2024
1 parent 4c3adf1 commit 4b44fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eole/bin/convert/convert_HF.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ def get_weight(checkpoint, tensor_name):
if "added_tokens_decoder" in data.keys():
eos_tokens = [
data["added_tokens_decoder"][str(index)]["content"]
for index in eos_token_id[1:]
for index in eos_token_id
]
optional_eos = eos_tokens[1:]
eos_token = eos_tokens[0]
Expand Down

0 comments on commit 4b44fdc

Please sign in to comment.