Skip to content

[CP] Fix the flex_input_fn argument unwrapping issue - #170201

Closed
fegin wants to merge 6 commits into
gh/fegin/337/basefrom
gh/fegin/337/head
Closed

fegin wants to merge 6 commits into
gh/fegin/337/basefrom
gh/fegin/337/head

Conversation

@fegin

@fegin fegin commented Dec 11, 2025 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

The current impelementation is incorrect that it doesn't handle when kwargs is not empty case. This PR fixes it

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Dec 11, 2025 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/170201

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 3f49e03 with merge base 5aefcb2 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@fegin
fegin requested a review from XilunWu December 11, 2025 19:47
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 11, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: c161349
Pull-Request: #2145
@fegin
fegin requested review from tianyu-l and wconstab December 11, 2025 21:16
[ghstack-poisoned]
[ghstack-poisoned]
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 11, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: 4bced25
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 12, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: cf1e8d6
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 12, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: 1143a55
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 15, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201

[ghstack-poisoned]
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 15, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201

[ghstack-poisoned]
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 15, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: 85c9bff
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 15, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201

[ghstack-poisoned]
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 15, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201

[ghstack-poisoned]
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 15, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: e3cfb0c
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 16, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: fd039d4
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 16, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: eb4903d
Pull-Request: #2145
The current impelementation is incorrect that it doesn't handle when kwargs is not empty case. This PR fixes it

[ghstack-poisoned]
The current impelementation is incorrect that it doesn't handle when kwargs is not empty case. This PR fixes it

[ghstack-poisoned]
[ghstack-poisoned]
@fegin fegin added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 17, 2025
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: Comment with id 3663497821 not found

Details for Dev Infra team Raised by workflow job

@fegin

fegin commented Dec 17, 2025

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 30, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: 6ba3e04
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Dec 30, 2025
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3. FlexCP will use PTRRLoadBalancer.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: 13232ab
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Jan 6, 2026
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: 93cda8b
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Jan 7, 2026
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: d3cee70
Pull-Request: #2145
krastogi-in pushed a commit to krastogi-in/pytorch that referenced this pull request Jan 9, 2026
The current impelementation is incorrect that it doesn't handle when kwargs is not empty case. This PR fixes it
Pull Request resolved: pytorch#170201
Approved by: https://github.com/tianyu-l
ghstack dependencies: pytorch#170200
@github-actions
github-actions Bot deleted the gh/fegin/337/head branch January 17, 2026 02:19
SergeyTyshkevich pushed a commit to SergeyTyshkevich/chart2 that referenced this pull request Jan 19, 2026
The current impelementation is incorrect that it doesn't correctly handle when kwargs is not empty case. This PR fixes it

ghstack-source-id: 2bc6e66
Pull-Request: pytorch/pytorch#170201
fegin added a commit to pytorch/torchtitan that referenced this pull request Jan 20, 2026
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: 5b1eae5
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Jan 20, 2026
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: 1893940
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Jan 20, 2026
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: fc6e60c
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Jan 21, 2026
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: fc6e60c
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Jan 21, 2026
Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.

Note that this PR requires pytorch/pytorch#170201
ghstack-source-id: fc6e60c
Pull-Request: #2145
fegin added a commit to pytorch/torchtitan that referenced this pull request Jan 21, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* __->__ #2145

Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.
FlexCP will use PTRRLoadBalancer.

Note that this PR requires
pytorch/pytorch#170201
wwwjn pushed a commit to wwwjn/torchtitan that referenced this pull request Jan 30, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* __->__ pytorch#2145

Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.
FlexCP will use PTRRLoadBalancer.

Note that this PR requires
pytorch/pytorch#170201
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* __->__ pytorch#2145

Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.
FlexCP will use PTRRLoadBalancer.

Note that this PR requires
pytorch/pytorch#170201
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#2145

Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.
FlexCP will use PTRRLoadBalancer.

Note that this PR requires
pytorch/pytorch#170201
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#2145

Summary:

Continue the previous PR, this PR enable FlexAttention + CP for llama3.
FlexCP will use PTRRLoadBalancer.

Note that this PR requires
pytorch/pytorch#170201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants