Skip to content

🩳 max_seq_length to max_length #2895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 18, 2025
Merged

Conversation

qgallouedec
Copy link
Member

@qgallouedec qgallouedec commented Feb 18, 2025

What does this PR do?

For consistency with all other trainers. I let 4 minor versions, because it's a param widely used.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a GitHub issue? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@qgallouedec qgallouedec requested review from lewtun, kashif, edbeeching and plaguss and removed request for lewtun February 18, 2025 15:23
@qgallouedec qgallouedec merged commit be1e340 into main Feb 18, 2025
14 checks passed
@qgallouedec qgallouedec deleted the max_seq_length_to_max_length branch February 18, 2025 15:53
yxliu-TAMU pushed a commit to mincheolseong/ECEN743-GRPO-Project-Proposal that referenced this pull request Apr 20, 2025
* `max_seq_length` to `max_length`

* remove in 0.20
Nehanth added a commit to Nehanth/llama-stack that referenced this pull request Jul 29, 2025
- Change max_seq_length to max_length in SFTConfig constructor
- TRL deprecated max_seq_length in Feb 2024 and removed it in v0.20.0
- Reference: huggingface/trl#2895

This resolves the SFT training failure in CI tests
ashwinb pushed a commit to llamastack/llama-stack that referenced this pull request Jul 29, 2025
…2948)

# What does this PR do?

- Change max_seq_length to max_length in SFTConfig constructor
- TRL deprecated max_seq_length in Feb 2024 and removed it in v0.20.0
- Reference: huggingface/trl#2895

This resolves the SFT training failure in CI tests
franciscojavierarceo pushed a commit to franciscojavierarceo/llama-stack that referenced this pull request Jul 29, 2025
…lamastack#2948)

# What does this PR do?

- Change max_seq_length to max_length in SFTConfig constructor
- TRL deprecated max_seq_length in Feb 2024 and removed it in v0.20.0
- Reference: huggingface/trl#2895

This resolves the SFT training failure in CI tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants