EleutherAI / EleutherAI/lm-evaluation-harness
Issue with Perplexity Score Using `max_length > 1024` in lm-evaluation-harness
- Dominant language
- Python
- Stars
- 14k
- Forks
- 3.6k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 35
Description
I am using a custom model in the lm-evaluation-harness script and have configured the tokenizer to use `GPT-2` with a `max_length` of 2048. However, I’ve noticed that when I increase the max_length beyond 1024, the perplexity score unexpectedly decreases. This reduction in perplexity doesn’t align with my expectations, as the perplexity should not inherently decrease with a larger sequence length.
Could someone kindly investigate and help understand why this is happening?
Contributor guide
Research direction
Start by reproducing the custom-model evaluation with the GPT-2 tokenizer at max_length 1024 and 2048, then trace how perplexity is computed for each sequence length. Done means identifying why the score changes unexpectedly and documenting or correcting the behavior with a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100