Skip to content

Finetune issue with Llama2-7b #463

Description

@anasegor

Hello, I encountered the following error when running finetuning Llama2:

Image

Some indexes in the input tensor for the embedding layer are outside the vocabulary dimension. I guess the problem occurs when adding a special tokens to the HF Tokenizer vocabulary in tokenizer.py:

Image

For myself, I solved this by changing the line:

Image

Is this the right way?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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