Skip to content

test(ops): give the nvFuser cross_entropy consistency test a 360s timeout [13/n] - #2850

Open
bhimrazy wants to merge 1 commit into
bhimrazy/transformer-engine-2.16from
bhimrazy/cross-entropy-nvfuser-timeout
Open

bhimrazy wants to merge 1 commit into
bhimrazy/transformer-engine-2.16from
bhimrazy/cross-entropy-nvfuser-timeout

Conversation

@bhimrazy

@bhimrazy bhimrazy commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Gives the nvFuser cross_entropy consistency test a 360s timeout (pytest.mark.timeout through its opinfo), instead of raising the limit for the whole ops job.

Problem: on torch nightly, test_core_vs_torch_consistency_cross_entropy_nvfuser_cuda takes 175–240s per dtype, and float16 keeps landing on the ops job's 240s limit. It is the slowest test in test_ops by far; the next one takes about 90s.

Related CI:

  • all-tests.yaml ops on pt_main-dev: test_core_vs_torch_consistency_cross_entropy_nvfuser_cuda_thunder.dtypes.float16.
CI log (ops, pt_main-dev, on #2847)
240.18s call     thunder/tests/test_ops.py::test_core_vs_torch_consistency_cross_entropy_nvfuser_cuda_thunder.dtypes.float16
190.43s call     thunder/tests/test_ops.py::test_core_vs_torch_consistency_cross_entropy_nvfuser_cuda_thunder.dtypes.float32
189.59s call     thunder/tests/test_ops.py::test_core_vs_torch_consistency_cross_entropy_nvfuser_cuda_thunder.dtypes.float64
176.08s call     thunder/tests/test_ops.py::test_core_vs_torch_consistency_cross_entropy_nvfuser_cuda_thunder.dtypes.bfloat16
FAILED thunder/tests/test_ops.py::test_core_vs_torch_consistency_cross_entropy_nvfuser_cuda_thunder.dtypes.float16 - Failed: Timeout (>240.0s) from pytest-timeout.
= 1 failed, 3914 passed, 801 skipped, 90 xfailed, 87 xpassed, 165897 warnings in 1561.99s (0:26:01) =

Part 13 of the breakdown of #2832.

@bhimrazy
bhimrazy added this pull request to stack #2849 September 24, 2026 13:31
On torch nightly, test_core_vs_torch_consistency_cross_entropy with nvFuser
takes 175-240s per dtype, and float16 keeps landing on the ops job's 240s
limit:

  240.18s call  ...cross_entropy_nvfuser_cuda_thunder.dtypes.float16
  Failed: Timeout (>240.0s) from pytest-timeout.

It is the slowest test in test_ops by a wide margin (the next is ~90s), so
raise the limit for it alone rather than for the whole job.
@bhimrazy
bhimrazy force-pushed the bhimrazy/cross-entropy-nvfuser-timeout branch from 7e77f46 to dd9f837 Compare September 24, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants