Skip to content

fix setting ft state dicts when ft checkpointing is disabled - #1915

Merged
tushar00jain merged 1 commit into
pytorch:mainfrom
tushar00jain:pr1915
Oct 30, 2025
Merged

tushar00jain merged 1 commit into
pytorch:mainfrom
tushar00jain:pr1915

Conversation

@tushar00jain

@tushar00jain tushar00jain commented Oct 17, 2025 •

Copy link
Copy Markdown
Contributor

Summary:

  • when ft dataloader checkpointing is disabled, we also don't set the ft state
  • make it so that when ft checkpointing is disabled, we still set the state dict so that model, optimizer etc. can be recovered from a different replica

Stack created with Sapling. Best reviewed with ReviewStack.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 17, 2025
Comment thread torchtitan/components/checkpoint.py Resolved
@tushar00jain
tushar00jain marked this pull request as ready for review October 17, 2025 21:43
Comment thread torchtitan/components/checkpoint.py Resolved
@tushar00jain
tushar00jain force-pushed the pr1915 branch 2 times, most recently from d3b5640 to 267f201 Compare October 24, 2025 19:01
Comment thread torchtitan/components/checkpoint.py Resolved

@fegin fegin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ft_inner_manager is confusing. I would suggest that you just make it a boolean flag.

Comment thread torchtitan/components/checkpoint.py Resolved
Summary:
- when ft dataloader checkpointing is disabled, we also don't set the ft state
- make it so that when ft checkpointing is disabled, we still set the state dict so that model, optimizer etc. can be recovered from a different replica
@tushar00jain
tushar00jain merged commit e150caa into pytorch:main Oct 30, 2025
@tushar00jain
tushar00jain deleted the pr1915 branch October 30, 2025 17:16
jquesnelle pushed a commit to NousResearch/torchtitan that referenced this pull request Nov 10, 2025
…#1915)

Summary:
- when ft dataloader checkpointing is disabled, we also don't set the ft
state
- make it so that when ft checkpointing is disabled, we still set the
state dict so that model, optimizer etc. can be recovered from a
different replica

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/pytorch/torchtitan/pull/1915).
* pytorch#1856
* pytorch#1811
* pytorch#1910
* __->__ pytorch#1915

Co-authored-by: Tushar Jain <[email protected]>
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
…#1915)

Summary:
- when ft dataloader checkpointing is disabled, we also don't set the ft
state
- make it so that when ft checkpointing is disabled, we still set the
state dict so that model, optimizer etc. can be recovered from a
different replica

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/pytorch/torchtitan/pull/1915).
* pytorch#1856
* pytorch#1811
* pytorch#1910
* __->__ pytorch#1915

Co-authored-by: Tushar Jain <[email protected]>
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
…#1915)

Summary:
- when ft dataloader checkpointing is disabled, we also don't set the ft
state
- make it so that when ft checkpointing is disabled, we still set the
state dict so that model, optimizer etc. can be recovered from a
different replica

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/pytorch/torchtitan/pull/1915).
* pytorch#1856
* pytorch#1811
* pytorch#1910
* __->__ pytorch#1915

Co-authored-by: Tushar Jain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants