Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mismatch between example code and model files #25

Open
yucc-leon opened this issue Jul 2, 2024 · 1 comment
Open

mismatch between example code and model files #25

yucc-leon opened this issue Jul 2, 2024 · 1 comment

Comments

@yucc-leon
Copy link

I found in this repo and the huggingface model card there is a line:

# tokenizer.eos_token_id is the id of <|EOT|> token

But in tokenizer_config.py inside model repo the eos_token is set to be <|end▁of▁sentence|>:

"eos_token": {
    "__type": "AddedToken",
    "content": "<|end▁of▁sentence|>",
    "lstrip": false,
    "normalized": true,
    "rstrip": false,
    "single_word": false
  }

which is correct?

@guoday
Copy link
Contributor

guoday commented Jul 3, 2024

<|end▁of▁sentence|>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants