Skip to content

Question about token shifting #20

Description

@fur9049-ctrl

Hello dear author, thank you for sharing the Delphi code.
I have a question: I noticed that in the Delphi\utils.py file there is an operation like
# a technical detail: the token 0 is reserved for padding, so we shift all tokens by one tokens = tokens + 1
In this case, does the token_id corresponding to the model’s output also get shifted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions