#1442·axolotl

Pad_to_max_sequence_len=auto support

Author: winglianCreated Mar 26, 2024Updated Sep 18, 2026
Labelsenhancement

⚠️ Please check that this feature request hasn't been suggested before.

  • I searched previous Ideas in Discussions didn't find any similar feature requests.
  • I searched previous Issues didn't find any similar feature requests.

Feature description

Right now we typically recommend users pad to max len when sample packing. However we should also handle this for unpacked sequences. This can vary since the actual dataset distribution may not go up t the actual max Context length that is configured

✔️ Solution

We already calculate the longest sequence len in the dataset, so we should use that (with padding multiple)

❓ Alternatives

No response

Additional Context

No response

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this feature has not been requested yet.
  • I have provided enough information for the maintainers to understand and evaluate this request.

Source: axolotl-ai-cloud/axolotl