Skip to content

Finetune issue with Llama2-7b #463

@anasegor

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?

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