Skip to content

Move deprecated SFT scripts and update the paths#3273

Merged
copybara-service[bot] merged 1 commit intomainfrom
hengtaoguo-re2
Feb 27, 2026
Merged

Move deprecated SFT scripts and update the paths#3273
copybara-service[bot] merged 1 commit intomainfrom
hengtaoguo-re2

Conversation

@hengtaoguo
Copy link
Copy Markdown
Collaborator

@hengtaoguo hengtaoguo commented Feb 27, 2026

Description

We used to have two SFT scripts (commit):

  • MaxText.sft_trainer: Deprecated native version. It doesn't need a shim because few people are actively using it. Now moving to maxtext.trainers.post_train.sft.train_sft_deprecated.
  • MaxText.sft.sft_trainer: Tunix version. We've moved to maxtext.trainers.post_train.sft.train_sft.

Tests

CI

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@hengtaoguo hengtaoguo changed the title Update deprecated sft scripts Move deprecated sft scripts and update paths Feb 27, 2026
@hengtaoguo hengtaoguo marked this pull request as ready for review February 27, 2026 20:30
@hengtaoguo hengtaoguo changed the title Move deprecated sft scripts and update paths Move deprecated SFT scripts and update the paths Feb 27, 2026
@hengtaoguo
Copy link
Copy Markdown
Collaborator Author

The notebook test failure is unrelated to this change:

https://github.com/AI-Hypercomputer/maxtext/actions/runs/22501907495/job/65190975612

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

hengtaoguo added a commit that referenced this pull request Feb 27, 2026
Imported from GitHub PR #3273

# Description

We used to have two SFT scripts ([commit](https://github.com/AI-Hypercomputer/maxtext/tree/ec3becb0af9fb90a1b855f40231faf823082aa48)):

- `MaxText.sft_trainer`: Deprecated native version. It doesn't need a shim because few people are actively using it. Now moving to `maxtext.trainers.post_train.sft.train_sft_deprecated`.
- `MaxText.sft.sft_trainer`: Tunix version. We've moved to `maxtext.trainers.post_train.sft.train_sft`.

# Tests

CI

# Checklist

Before submitting this PR, please make sure (put X in square brackets):
- [x] I have performed a self-review of my code. For an optional AI review, add the `gemini-review` label.
- [x] I have necessary comments in my code, particularly in hard-to-understand areas.
- [x] I have run end-to-end tests tests and provided workload links above if applicable.
- [x] I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in [our documentation](https://maxtext.readthedocs.io/en/latest/development.html#adding-new-documentation-files).

Copybara import of the project:

--
87d406f by hengtaoguo <hengtaoguo@google.com>:

Update deprecated sft scripts

Merging this change closes #3273

FUTURE_COPYBARA_INTEGRATE_REVIEW=#3273 from AI-Hypercomputer:hengtaoguo-re2 87d406f
PiperOrigin-RevId: 876379236
@copybara-service copybara-service Bot merged commit 6863f9b into main Feb 27, 2026
56 of 58 checks passed
@copybara-service copybara-service Bot deleted the hengtaoguo-re2 branch February 27, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants