Skip to content

[Typing] Fix pyrefly ignores in checkpoint.py - #2283

Merged
fegin merged 3 commits into
mainfrom
gh/fegin/67/head
Jan 29, 2026
Merged

fegin merged 3 commits into
mainfrom
gh/fegin/67/head

Conversation

@fegin

@fegin fegin commented Jan 28, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

No logic change.

This PR also changes optimizer.py and state_dict_adapter.py because checkpointer depends on Optimizer and StateDictAdapter.

fegin added 2 commits January 28, 2026 10:45
[ghstack-poisoned]
[ghstack-poisoned]
async_mode=self.async_mode,
)
# pyrefly: ignore [missing-attribute]
assert isinstance(result, AsyncSaveResponse)

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.

This line causing CPU unit test error?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@tianyu-l tianyu-l 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.

CI needs fixing

[ghstack-poisoned]
@fegin
fegin changed the base branch from gh/fegin/67/base to main January 29, 2026 05:22
@fegin
fegin merged commit 6f9cdb3 into main Jan 29, 2026
@fegin
fegin deleted the gh/fegin/67/head branch January 29, 2026 18:17
TXacs pushed a commit to McmillanTAC/torchtitan that referenced this pull request Apr 13, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* pytorch#2286
* pytorch#2285
* pytorch#2284
* __->__ pytorch#2283

No logic change.

This PR also changes optimizer.py and state_dict_adapter.py because
checkpointer depends on Optimizer and StateDictAdapter.
ACharacterInASimulation pushed a commit to ACharacterInASimulation/torchtitan that referenced this pull request Apr 21, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* pytorch#2286
* pytorch#2285
* pytorch#2284
* __->__ pytorch#2283

No logic change.

This PR also changes optimizer.py and state_dict_adapter.py because
checkpointer depends on Optimizer and StateDictAdapter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu 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