Skip to content

Gh/tushar00jain/1/base - #4538

Merged
tianyu-l merged 2 commits into
mainfrom
gh/tushar00jain/1/base
Sep 9, 2026
Merged

tianyu-l merged 2 commits into
mainfrom
gh/tushar00jain/1/base

Conversation

@tushar00jain

@tushar00jain tushar00jain commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Port the updated wrap_with_cuda_graph to torchft trainer.
This fixes the error

File "/pytorch/torchtitan/torchtitan/experiments/torchft/trainer.py", line 314, in __init__
  self.fwd_bwd_fn = wrap_with_cuda_graph(self.fwd_bwd_fn)
		    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: wrap_with_cuda_graph() missing 3 required keyword-only arguments: 'gradient_accumulation_steps', 'sdc_num_steps', and 'sdc_num_replays'

tushar00jain and others added 2 commits September 8, 2026 09:40
[ghstack-poisoned]
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0)
(oldest at bottom):
* __->__ #4518

Port the updated `wrap_with_cuda_graph` to torchft trainer.
This fixes the error

```
File "/pytorch/torchtitan/torchtitan/experiments/torchft/trainer.py", line 314, in __init__
  self.fwd_bwd_fn = wrap_with_cuda_graph(self.fwd_bwd_fn)
		    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: wrap_with_cuda_graph() missing 3 required keyword-only arguments: 'gradient_accumulation_steps', 'sdc_num_steps', and 'sdc_num_replays'
```

Co-authored-by: Tushar Jain <[email protected]>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 9, 2026
@tianyu-l
tianyu-l merged commit 35874b7 into main Sep 9, 2026
10 checks passed
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.

2 participants