Skip to content

What is the default tokenizer behaviour? #1314

@RonanKMcGovern

Description

@RonanKMcGovern

System Info

N/A

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

I'm trying to understand whether special tokens (i.e. BOS and EOS) are added and suppressed on tokenization and decoding.

Encoding:

  • I searched for add_special_tokens in the repo and I don't see anywhere this is being set to true when tokenizing. So, it seems that there are no EOS tokens automatically added.

Decoding:

  • I searched for skip_special_tokens and it seems that here on line 541 that indeed BOS and EOS are being supressed.

Is this understanding correct?

Expected behavior

If possible, could the default tokenization strategy be described on the ReadMe so users know what to expect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions