-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minifier fails for wav2vec #1959
Comments
oops, i forgot to use
full log: https://gist.github.com/wconstab/4fc3caf44b679e3994622ddbc191dfc0 |
You don't need level 4. Level 4 is for accuracy. The command that you have is correct. Your observation is still correct. There is a minifier_launcher.py but it does not fail. I can assign it to myself. |
@wconstab I tried
|
Real bug for the model - pytorch/pytorch#90260 Why does minifier (repro_after="aot") does not work? Again the same reason as above issue. The small difference in code path between minified_repro and compiler led to this rare divergence. |
Fixes pytorch/torchdynamo#1959, pytorch#90260 However, I wasn't able to make existing stride tests fail before the fix, even though I'm comparing all, not just significant strides. Separately running refs on meta tensors produces wrong strides as shown in pytorch#90260, however, it looks like in meta tests some other way of computing meta info is used (I've been running ``` pytest -s -v test/test_meta.py -k test_meta_outplace_expand_cuda_float64 ``` and verified that it has sample input that should fail, and that it indeed compares all the strides, but the produced `meta_rs` results somehow still had correct strides). Edit: @SherlockNoMad helped me figure out how to fail the tests, and now I've set the correct ops for checking. `expand` fails for some test inputs because it special-cases 0-dim input case, correctly modeling it in prims would require a lot of changes, so skipping that for now. Pull Request resolved: pytorch#90341 Approved by: https://github.com/SherlockNoMad
🐛 Describe the bug
Building on pytorch/pytorch#93464,
the whole-model repro for wav2vec posted there fails to run with the minifier for me on master @ 2ea32f41f4b4c3d0cbb9834186fdfe404e0d4c2a
my w2v.py here is copied from pytorch/pytorch#93464, namely
Error logs
No response
Minified repro
TORCHDYNAMO_REPRO_AFTER="aot" python w2v.py
produces a minifier_launcher, but running it claimspython torchdynamo_debug/run_2022_12_05_23_06_50_594983/minifier/minifier_launcher.py
TORCHDYNAMO_REPRO_AFTER="dynamo" python w2v.py
actually segfaults for meThe text was updated successfully, but these errors were encountered: