Skip to content
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

How to generate the json file like optim/indictor-misc.json? #10

Open
syheliel opened this issue Nov 18, 2024 · 1 comment
Open

How to generate the json file like optim/indictor-misc.json? #10

syheliel opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@syheliel
Copy link

First, thanks for your awesome work in OOPSLA! I'm trying to reproduce the result and I find that In optim dir, there are json files that record the mapping from the name of the optimization pass and the source code. The following is the source code of indictor-misc.json:


  "randperm_index_add_pattern": {
    "hints": [
      {
        "type": "pattern",
        "codes": [
          "source-code-data/pytorch/inductor-misc/randperm_index_add_pattern.py"
        ]
      }
    ]
  },
  "randperm_index_pattern": {
    "hints": [
      {
        "type": "pattern",
        "codes": [
          "source-code-data/pytorch/inductor-misc/randperm_index_pattern.py"
        ]
      }
    ]
  }
}

Is there a script that can create these file from Pytorch's source code? It seems that I need to create it by hand if I want to test a new opt pass.

@YangChenyuan
Copy link
Member

Hi, thanks for your interest in WhiteFox!

Is there a script that can create these files from PyTorch's source code? It seems that I need to create it by hand if I want to test a new opt pass.

Currently, creating files for testing new optimization passes requires manual effort. However, here are some suggestions:

  1. You can leverage GPT/LLM to assist with generating some of the content, which can significantly reduce the manual work.
  2. We're planning to develop automated scripts that will help generate these JSON files based on user-provided meta information. This feature is on our roadmap.

Let us know if you have any other questions!

@YangChenyuan YangChenyuan self-assigned this Nov 22, 2024
@YangChenyuan YangChenyuan added the enhancement New feature or request label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants