huggingface / huggingface/alignment-handbook

Warning about max sequence length

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.7k
Forks
490
Avg merge
2m
Merged PRs (30d)
1

Description

Hi, when I ran the dpo finetuning code, I noticed that there is a warning in the logging output
`[WARNING|tokenization_utils_base.py:3831] 2023-12-06 16:44:52,195 >> Token indices sequence length is longer than the specified maximum sequence length for this model (2455 > 2048). Running this sequence through the model will result in indexing errors
`
I note that this is related to #32 , who seems to have the same issue.

Do I need to worry about this warning? Could anyone explain why this warning appears?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.