InternLM / InternLM/xtuner

LengthGroupedSampler会导致loss周期性振荡

Open
#817 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.2k
Forks
448
Avg merge
3d 15h
Merged PRs (30d)
26

Description

SFT [InternVL2](https://github.com/InternLM/xtuner/pull/737) 时发现使用LengthGroupedSampler loss曲线会周期性振荡,使用DefaultSampler不会有这个问题。请问这是什么原因呢?
[类似的问题](https://ai.stackexchange.com/questions/41792/what-causes-my-loss-curve-to-consistently-oscillate-when-training-an-llm)
![image](https://github.com/InternLM/xtuner/assets/34935911/d19f8f65-d567-4abf-82ea-de8dbb7df17f)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.