pytorch / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://pytorch.org
Other
82.32k stars 22.14k forks source link

DISABLED test_gelu_dynamic_shapes_cpu (__main__.DynamicShapesCpuTests) #135222

Open pytorch-bot[bot] opened 2 weeks ago

pytorch-bot[bot] commented 2 weeks ago

Platforms: linux

This test was disabled because it is failing in CI. See recent examples and the most recent trunk workflow logs.

Over the past 3 hours, it has been determined flaky in 21 workflow(s) with 21 failures and 21 successes.

Debugging instructions (after clicking on the recent samples link): DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs. To find relevant log snippets:

  1. Click on the workflow logs linked above
  2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
  3. Grep for test_gelu_dynamic_shapes_cpu
  4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.
Sample error message ``` Traceback (most recent call last): File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor.py", line 5206, in test_gelu self.common( File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor.py", line 381, in check_model eager_result = model(*ref_inputs, **ref_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor.py", line 5204, in fn return aten.gelu(x) + 2, aten.gelu(x + 1) ^^^^^^^^^^^^ File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/_ops.py", line 1116, in __call__ return self._op(*args, **(kwargs or {})) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ MemoryError: std::bad_alloc To execute this test, run the following from the base repo dir: python test/inductor/test_torchinductor_dynamic_shapes.py DynamicShapesCpuTests.test_gelu_dynamic_shapes_cpu This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0 ```

Test file path: inductor/test_torchinductor_dynamic_shapes.py

ResponseTimeoutError: Response timeout for 5000ms, GET https://raw.githubusercontent.com/pytorch/pytorch/main/test/inductor/test_torchinductor_dynamic_shapes.py -1 (connected: true, keepalive socket: false, socketHandledRequests: 1, socketHandledResponses: 0) headers: {}

cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @clee2000 @chauhang @penguinwu @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4 @desertfire @chenyang78

pytorch-bot[bot] commented 2 weeks ago
Hello there! From the DISABLED prefix in this issue title, it looks like you are attempting to disable a test in PyTorch CI. The information I have parsed is below: * Test name: `test_gelu_dynamic_shapes_cpu (__main__.DynamicShapesCpuTests)` * Platforms for which to skip the test: linux * Disabled by `pytorch-bot[bot]` Within ~15 minutes, `test_gelu_dynamic_shapes_cpu (__main__.DynamicShapesCpuTests)` will be disabled in PyTorch CI for these platforms: linux. Please verify that your test name looks correct, e.g., `test_cuda_assert_async (__main__.TestCuda)`. To modify the platforms list, please include a line in the issue body, like below. The default action will disable the test for all platforms if no platforms list is specified. ``` Platforms: case-insensitive, list, of, platforms ``` We currently support the following platforms: asan, dynamo, inductor, linux, mac, macos, rocm, slow, win, windows. ### How to re-enable a test To re-enable the test globally, close the issue. To re-enable a test for only a subset of platforms, remove the platforms from the list in the issue body. This may take some time to propagate. To re-enable a test only for a PR, put `Fixes #135222` in the PR body and rerun the test jobs. Note that if a test is flaky, it maybe be difficult to tell if the test is still flaky on the PR.
pytorch-bot[bot] commented 2 weeks ago

Another case of trunk flakiness has been found here. The list of platforms [linux] appears to contain all the recently affected platforms [linux]. Either the change didn't propogate fast enough or disable bot might be broken.

pytorch-bot[bot] commented 2 weeks ago

Another case of trunk flakiness has been found here. The list of platforms [linux] appears to contain all the recently affected platforms [linux]. Either the change didn't propogate fast enough or disable bot might be broken.

bdhirsh commented 2 weeks ago

From some of the failing tests I see:

2024-09-05T13:11:19.5126898Z ______ DynamicShapesCpuTests.test_aoti_eager_cache_hit_dynamic_shapes_cpu ______
2024-09-05T13:11:19.5127571Z Traceback (most recent call last):
2024-09-05T13:11:19.5128617Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/inductor_utils.py", line 77, in inner
2024-09-05T13:11:19.5129552Z     return fn(self, *args, **kwargs)
2024-09-05T13:11:19.5129942Z            ^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-05T13:11:19.5130683Z   File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor.py", line 746, in wrapper
2024-09-05T13:11:19.5131429Z     return fn(self)
2024-09-05T13:11:19.5131723Z            ^^^^^^^^
2024-09-05T13:11:19.5132669Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 1846, in wrapper
2024-09-05T13:11:19.5133803Z     return fn(*args, **kwargs)
2024-09-05T13:11:19.5134154Z            ^^^^^^^^^^^^^^^^^^^
2024-09-05T13:11:19.5134976Z   File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor.py", line 962, in test_aoti_eager_cache_hit
2024-09-05T13:11:19.5135969Z     res_value = getattr(torch.ops.aten, op_name)(input_tensor)
2024-09-05T13:11:19.5136524Z                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-05T13:11:19.5137440Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/_ops.py", line 1116, in __call__
2024-09-05T13:11:19.5138255Z     return self._op(*args, **(kwargs or {}))
2024-09-05T13:11:19.5138695Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-05T13:11:19.5140952Z RuntimeError: aot_compile_function.ptr() != nullptr && aot_compile_function.ptr() != Py_None INTERNAL ASSERT FAILED at "/var/lib/jenkins/workspace/torch/csrc/inductor/aoti_eager/kernel_holder.cpp":506, please report a bug to PyTorch. Failed to import - torch._inductor.aoti_eager.aoti_compile_with_persistent_cache
2024-09-05T13:11:19.5142809Z 
2024-09-05T13:11:19.5143077Z To execute this test, run the following from the base repo dir:
2024-09-05T13:11:19.5144159Z     python test/inductor/test_torchinductor_dynamic_shapes.py DynamicShapesCpuTests.test_aoti_eager_cache_hit_dynamic_shapes_cpu
2024-09-05T13:11:19.5144959Z 

seems AOTI related?