Skip to content

Commit f6b1e32

Browse files
authored
[ez] Fix Readme Examples (#91)
1 parent 5f8c379 commit f6b1e32

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ uv sync --dev
2626

2727
Run a simple smoke test (relu) with the default ATen backend:
2828
```bash
29-
uv run python scripts/main.py --suite smoke --backend aten
29+
uv run python BackendBench/scripts/main.py --suite smoke --backend aten
3030
```
3131

3232
Run the smoke test with FlagGems:
3333
```bash
34-
uv run python scripts/main.py --suite smoke --backend flag_gems
34+
uv run python BackendBench/scripts/main.py --suite smoke --backend flag_gems
3535
```
3636

3737
Run opinfo tests (correctness only) with ATen
3838
```bash
39-
uv run python scripts/main.py --suite opinfo --backend aten
39+
uv run python BackendBench/scripts/main.py --suite opinfo --backend aten
4040
```
4141

4242
Run a filtered set of opinfo tests with FlagGems
4343
```bash
44-
uv run python scripts/main.py --suite opinfo --backend flag_gems --ops "add,sub"
44+
uv run python BackendBench/scripts/main.py --suite opinfo --backend flag_gems --ops "add,sub"
4545
```
4646

4747
Run all the opinfo tests with FlagGems (takes a few minutes)
4848
```bash
49-
uv run python scripts/main.py --suite opinfo --backend flag_gems
49+
uv run python BackendBench/scripts/main.py --suite opinfo --backend flag_gems
5050
```
5151

5252
## LLM-Based Kernel Generation and Evaluation
@@ -56,7 +56,7 @@ Generate and evaluate PyTorch kernels using Claude API:
5656
Run LLM evaluation on smoke test (relu operation):
5757
```bash
5858
export ANTHROPIC_API_KEY=your_api_key_here
59-
uv run python scripts/main.py --suite smoke --backend llm
59+
uv run python BackendBench/scripts/main.py --suite smoke --backend llm
6060
```
6161

6262
## KernelAgent-Based Triton Kernel Generation
@@ -71,19 +71,19 @@ git submodule update --init --recursive
7171
Run KernelAgent evaluation on smoke test (relu operation):
7272
```bash
7373
export OPENAI_API_KEY=your_api_key_here
74-
uv run python scripts/main.py --suite smoke --backend kernel_agent
74+
uv run python BackendBench/scripts/main.py --suite smoke --backend kernel_agent
7575
```
7676

7777
Run KernelAgent with custom configuration:
7878
```bash
7979
export OPENAI_API_KEY=your_api_key_here
80-
uv run python scripts/main.py --suite smoke --backend kernel_agent --kernel-agent-workers 6 --kernel-agent-max-rounds 15
80+
uv run python BackendBench/scripts/main.py --suite smoke --backend kernel_agent --kernel-agent-workers 6 --kernel-agent-max-rounds 15
8181
```
8282

8383
Run KernelAgent on opinfo tests with a specific operation:
8484
```bash
85-
export OPENAI_API_KEY=your_api_key_here
86-
uv run python scripts/main.py --suite opinfo --backend kernel_agent --ops "add"
85+
export OPENAI_API_KEY=<your_api_key_here>
86+
uv run python BackendBench/scripts/main.py --suite opinfo --backend kernel_agent --ops "add"
8787
```
8888

8989
## Directory-Based Kernel Development
@@ -177,7 +177,7 @@ uv run python generated_kernels/relu/relu_implementation_1.py
177177

178178
Test with BackendBench:
179179
```bash
180-
uv run python scripts/main.py --suite smoke --backend directory
180+
uv run python BackendBench/scripts/main.py --suite smoke --backend directory
181181
```
182182

183183
## License

0 commit comments

Comments
 (0)