name: 🐛 torch.compile Bug Report
description: Create a report to help us reproduce and fix the bug
labels: ["oncall: pt2"]

body:
  - type: markdown
    attributes:
      value: >
        #### Note: Please write your bug report in English to ensure it can be understood and addressed by the development team.
  - type: markdown
    attributes:
      value: >
        #### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the
        existing and past issues](https://github.com/pytorch/pytorch/issues)
        It's likely that your bug will be resolved by checking our FAQ or troubleshooting guide [documentation](https://pytorch.org/docs/main/dynamo/index.html)

        Note: if you're submitting an issue that you generated from a fuzzer. Please do the following:

        - Ensure rtol/atol are at default tolerances

        - Don't compare indices of max/min etc, because that avoids the above requirement

        - If comparing eager and torch.compile at fp16/bf16, you should use fp32 as baseline

        - Ensure rng state used to compare results is equivalent. Use `torch._inductor.config.fallback_random=True` and reset the torch rng seed between comparisons

        If the above requirements are met, add the label "topic: fuzzer" to your issue.

  - type: textarea
    attributes:
      label: 🐛 Describe the bug
      description: |
        Please provide a clear and concise description of what the bug is.

        See https://pytorch.org/docs/main/torch.compiler_troubleshooting.html#reporting-issues
        for guidance on what to additionally include. In particular, consider including:

        - The `tlparse` for your program
        - Ablation - which `torch.compile` backend/mode/settings cause the bug
        - A minimal reproducer

      placeholder: |
        A clear and concise description of what the bug is.
    validations:
      required: false

  - type: textarea
    attributes:
      label: Error logs
      description: |
        Please provide the error you're seeing
      placeholder: |
        Error...
    validations:
      required: false

  - type: textarea
    attributes:
      label: Versions
      description: |
        Please run the following and paste the output below.
        ```sh
        curl -OL https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py
        # For security purposes, please check the contents of collect_env.py before running it.
        python3 collect_env.py
        ```
    validations:
      required: true
