Skip to content

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Mar 3, 2023

Stack from ghstack (oldest at bottom):

Without this, when you skip frame because of a graph break, at INFO logging level all you see is:

[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Step 1: torchdynamo start tracing forward_pass

With this promotion, you now see:

[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Skipping frame because there is a graph break in a for/while loop
[INFO] Step 1: torchdynamo start tracing forward_pass

This is MUCH more useful, while only adding a single log message per
already existing INFO log message.

Signed-off-by: Edward Z. Yang ezyang@meta.com

cc @soumith @voznesenskym @yanboliang @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire

Without this, when you skip frame because of a graph break, at INFO logging level all you see is:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Step 1: torchdynamo start tracing forward_pass
```

With this promotion, you now see:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Skipping frame because there is a graph break in a for/while loop
[INFO] Step 1: torchdynamo start tracing forward_pass
```

This is MUCH more useful, while only adding a single log message per
already existing INFO log message.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 3, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit dc2ab4f:
💚 Looks good so far! There are no failures yet. 💚

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

ezyang added a commit that referenced this pull request Mar 3, 2023
Without this, when you skip frame because of a graph break, at INFO logging level all you see is:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Step 1: torchdynamo start tracing forward_pass
```

With this promotion, you now see:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Skipping frame because there is a graph break in a for/while loop
[INFO] Step 1: torchdynamo start tracing forward_pass
```

This is MUCH more useful, while only adding a single log message per
already existing INFO log message.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: d838473
Pull Request resolved: #95968
@ezyang ezyang requested a review from bertmaher March 3, 2023 15:13
@ezyang ezyang requested a review from avikchaudhuri March 3, 2023 15:13
@ezyang ezyang added the topic: not user facing topic category label Mar 3, 2023
Copy link
Contributor

@janeyx99 janeyx99 left a comment

Choose a reason for hiding this comment

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

lol nice

@ezyang
Copy link
Contributor Author

ezyang commented Mar 6, 2023

@pytorchbot merge -r master

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 6, 2023
@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a rebase job. Check the current status here

Without this, when you skip frame because of a graph break, at INFO logging level all you see is:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Step 1: torchdynamo start tracing forward_pass
```

With this promotion, you now see:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Skipping frame because there is a graph break in a for/while loop
[INFO] Step 1: torchdynamo start tracing forward_pass
```

This is MUCH more useful, while only adding a single log message per
already existing INFO log message.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

cc soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx desertfire

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/ezyang/1869/orig onto refs/remotes/origin/master, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/95968)

pytorchmergebot pushed a commit that referenced this pull request Mar 6, 2023
Without this, when you skip frame because of a graph break, at INFO logging level all you see is:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Step 1: torchdynamo start tracing forward_pass
```

With this promotion, you now see:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Skipping frame because there is a graph break in a for/while loop
[INFO] Step 1: torchdynamo start tracing forward_pass
```

This is MUCH more useful, while only adding a single log message per
already existing INFO log message.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: cf7739c
Pull Request resolved: #95968
@pytorchmergebot
Copy link
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

cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
Without this, when you skip frame because of a graph break, at INFO logging level all you see is:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Step 1: torchdynamo start tracing forward_pass
```

With this promotion, you now see:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Skipping frame because there is a graph break in a for/while loop
[INFO] Step 1: torchdynamo start tracing forward_pass
```

This is MUCH more useful, while only adding a single log message per
already existing INFO log message.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: pytorch/pytorch#95968
Approved by: https://github.com/albanD, https://github.com/janeyx99
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
Without this, when you skip frame because of a graph break, at INFO logging level all you see is:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Step 1: torchdynamo start tracing forward_pass
```

With this promotion, you now see:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Skipping frame because there is a graph break in a for/while loop
[INFO] Step 1: torchdynamo start tracing forward_pass
```

This is MUCH more useful, while only adding a single log message per
already existing INFO log message.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: pytorch/pytorch#95968
Approved by: https://github.com/albanD, https://github.com/janeyx99
ydwu4 added a commit to ydwu4/pytorch that referenced this pull request Mar 13, 2023
Without this, when you skip frame because of a graph break, at INFO logging level all you see is:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Step 1: torchdynamo start tracing forward_pass
```

With this promotion, you now see:

```
[INFO] Step 1: torchdynamo start tracing run_n_iterations
[INFO] Skipping frame because there is a graph break in a for/while loop
[INFO] Step 1: torchdynamo start tracing forward_pass
```

This is MUCH more useful, while only adding a single log message per
already existing INFO log message.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: pytorch#95968
Approved by: https://github.com/albanD, https://github.com/janeyx99
@facebook-github-bot facebook-github-bot deleted the gh/ezyang/1869/head branch June 8, 2023 16:53
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.

4 participants