Skip to content

[FSDP2][PT2D] enable torch.compile for compute in CI - #122876

Closed
weifengpy wants to merge 21 commits into
gh/weifengpy/2/basefrom
gh/weifengpy/2/head
Closed

weifengpy wants to merge 21 commits into
gh/weifengpy/2/basefrom
gh/weifengpy/2/head

Conversation

@weifengpy

@weifengpy weifengpy commented Mar 28, 2024 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

34 tests are eligible for torch.compile (call forward)

  • 70% passed
  • 30% failed for 3 reasons

failure on 2D

  • test_fully_shard_init.py::test_meta_device_2d_init
  • test_fully_shard_training.py::test_train_parity_2d_mlp
  • test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
  • test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC

  • test_fully_shard_training.py::test_train_parity_with_shared_params
  • test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
  • test_fully_shard_comm.py::test_fully_shard_backward_prefetch
  • test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics

  • test_fully_shard_mixed_precision.py::test_compute_dtype
  • test_fully_shard_mixed_precision.py::test_reduce_dtype
  • test_fully_shard_autograd::test_unused_forward_output

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode

  • test_fully_shard_memory.py::test_fully_shard_training_memory
  • test_fully_shard_overlap.py::test_fully_shard_training_overlap

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang @d4l3k @rohan-varma

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Mar 28, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 2 Unrelated Failures

As of commit 3f90115 with merge base 07e0faf (image):

NEW FAILURE - The following job has failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

@pytorch-bot pytorch-bot Bot added oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (fsdp) release notes category labels Mar 28, 2024
weifengpy added a commit that referenced this pull request Mar 28, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 76fc420
Pull Request resolved: #122876
@weifengpy
weifengpy marked this pull request as draft March 28, 2024 07:59
from torch.testing._internal.distributed.checkpoint_utils import with_temp_dir


class TestFullyShardForwardInputs(FSDPTestMultiThread):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are these changes from MTPG to normal NCCL PG meant for landing? I worry that this will (heavily) increase CI time. We want MTPG for these non-training-numerics related tests.

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.

for MTPG, I observed flakiness where dynamo compains about broken process pool. There is a recent post about the issue: #121197. we can discuss if this worth spending time to dig into

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I wonder if it is worth going through some of these tests and seeing if testing torch.compile would be valuable or not. Some of these seem like torch.compile for compute should not affect. As a bonus, I would hope we could keep the eager tests to use MTPG somehow 🤔

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.

MTPG works well after clearing dynamo cache with torch._dynamo.reset() before and after each test. this also avoid triggering dynamic shapes

Comment thread torch/testing/_internal/common_fsdp.py Outdated
hook.__module__ == "torch.distributed._composable.fsdp._fsdp_state"
and hook.__name__ == "_pre_forward"
):
args[0]._forward_pre_hooks[handle_id] = torch.compiler.disable(hook)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should land this torch.compiler.disable() for now. Without this, we may error during tracing the forward pre-hook in some cases (e.g. 2D with DTensor).

cc: @yf225

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.

will split out torch.compile.disable into a separate PR to discuss with @yf225

34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
weifengpy added a commit that referenced this pull request Mar 29, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 731fe70
Pull Request resolved: #122876
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
weifengpy added a commit that referenced this pull request Mar 30, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: fae2c54
Pull Request resolved: #122876
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
weifengpy added a commit that referenced this pull request Apr 1, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 9da35ef
Pull Request resolved: #122876
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
weifengpy added a commit that referenced this pull request Apr 6, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: cf830be
Pull Request resolved: #122876
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
weifengpy added a commit that referenced this pull request Apr 10, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: f3e22a7
Pull Request resolved: #122876
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype
* test_fully_shard_autograd::test_unused_forward_output

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
weifengpy added a commit that referenced this pull request Apr 11, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 5f3eb6c
Pull Request resolved: #122876
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype
* test_fully_shard_autograd::test_unused_forward_output

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype
* test_fully_shard_autograd::test_unused_forward_output

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
weifengpy added a commit that referenced this pull request Apr 12, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: c58beea
Pull Request resolved: #122876
34 tests are eligible for torch.compile (call forward) 
* 70% passed
* 30% failed for 3 reasons

failure on 2D
* test_fully_shard_init.py::test_meta_device_2d_init
* test_fully_shard_training.py::test_train_parity_2d_mlp
* test_fully_shard_training.py::test_train_parity_2d_transformer_checkpoint_resume
* test_fully_shard_clip_grad_norm_.py::test_clip_grad_norm_2d

failure on composable AC
* test_fully_shard_training.py::test_train_parity_with_shared_params
* test_fully_shard_training.py::test_train_parity_with_activation_checkpointing
* test_fully_shard_comm.py::test_fully_shard_backward_prefetch
* test_fully_shard_frozen.py::test_train_mixed_requires_grad_per_group

failure on numerics
* test_fully_shard_mixed_precision.py::test_compute_dtype
* test_fully_shard_mixed_precision.py::test_reduce_dtype
* test_fully_shard_autograd::test_unused_forward_output

following 2 tests called forward but did not count as eligible since memory and time are different in compiler mode
* test_fully_shard_memory.py::test_fully_shard_training_memory
* test_fully_shard_overlap.py::test_fully_shard_training_overlap


cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang

[ghstack-poisoned]
weifengpy added a commit that referenced this pull request Apr 12, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: c7fb500
Pull Request resolved: #122876
@github-actions

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale label Jun 12, 2024
@github-actions github-actions Bot closed this Jul 12, 2024
@github-actions
github-actions Bot deleted the gh/weifengpy/2/head branch August 12, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (fsdp) release notes category Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants