Skip to content

[Dynamo] cache_size policy#107496

Closed
anijain2305 wants to merge 21 commits intogh/anijain2305/111/basefrom
gh/anijain2305/111/head
Closed

[Dynamo] cache_size policy#107496
anijain2305 wants to merge 21 commits intogh/anijain2305/111/basefrom
gh/anijain2305/111/head

Conversation

@anijain2305
Copy link
Contributor

@anijain2305 anijain2305 commented Aug 18, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 18, 2023

🔗 Helpful Links

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

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 4df4d5d with merge base 28dc1a0 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Aug 19, 2023
ghstack-source-id: 1efe2c2
Pull Request resolved: #107496
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Aug 20, 2023
ghstack-source-id: 0f0a45a
Pull Request resolved: #107496
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Aug 21, 2023
ghstack-source-id: 2be72a6
Pull Request resolved: #107496
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111145, based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 14, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 15, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 15, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
jon-chuang added a commit that referenced this pull request Oct 25, 2023
---

Fixes: #110682

Replaces: #111074

The guards are installed based on config that is valid at the call to `torch.compile`, rather than at any subsequent call / triggered compilation. Subsequent compilations will restore the config if there is a config mismatch of the existing global config with the saved config.

TODO:
- [X] add tests

Follow up PRs:
- [x] add revised cache size computation (follow up PR: #111300 , based on: #107496) 
- [ ] handle run-only mode?
- [ ] config restoration itself is not thread-safe (tracked: #111150)

cc voznesenskym ezyang Chillee


[ghstack-poisoned]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants