| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5879c9b commit 6c05c14
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,6 +26,13 @@ without any human review or supervision! The LLM could generate dangerous python | |||
| 26 | 26 | that harms your system, like this: `import os; os.system("sudo rm -rf /")`. | |
| 27 | 27 | Running inside a docker container helps limit the damage that could be done. | |
| 28 | 28 | ||
| 29 | + The current harness (`benchmark.py`) organizes the exercises as "Cats": each | ||
| 30 | + exercise carries `cat.yaml` metadata, enabling per-test selection and | ||
| 31 | + deterministic subsets (e.g. `--hash-re '^0'`) for spot-checking models. The | ||
| 32 | + canonical exercises source is | ||
| 33 | + [ErichBSchulz/cecli-cats](https://github.com/ErichBSchulz/cecli-cats), a | ||
| 34 | + Cats-formatted conversion of the polyglot benchmark. | ||
| 35 | + | ||
| 29 | 36 | ## Usage | |
| 30 | 37 | ||
| 31 | 38 | There are 3 main tasks involved in benchmarking: | |
@@ -41,17 +48,18 @@ There are 3 main tasks involved in benchmarking: | |||
| 41 | 48 | These steps only need to be done once. | |
| 42 | 49 | ||
| 43 | 50 | ``` | |
| 44 | - ORG=Aider-AI | ||
| 45 | - REPO=aider | ||
| 51 | + ORG=cecli-dev | ||
| 52 | + REPO=cecli | ||
| 46 | 53 | # Clone the main repo | |
| 47 | 54 | git clone https://github.com/$ORG/$REPO.git | |
| 48 | 55 | ||
| 49 | 56 | # Create the scratch dir to hold benchmarking results inside the main repo: | |
| 50 | 57 | cd $REPO | |
| 51 | 58 | mkdir tmp.benchmarks | |
| 52 | 59 | ||
| 53 | - # Clone the repo with the exercises | ||
| 54 | - git clone https://github.com/$ORG/polyglot-benchmark tmp.benchmarks/polyglot-benchmark | ||
| 60 | + # Clone the canonical exercises source for the Cats harness | ||
| 61 | + git clone https://github.com/ErichBSchulz/cecli-cats tmp.benchmarks/cecli-cats | ||
| 62 | + | ||
| 55 | 63 | ||
| 56 | 64 | # Build the docker container | |
| 57 | 65 | ./benchmark/docker_build.sh | |
@@ -69,10 +77,10 @@ Launch the docker container and run the benchmark inside it: | |||
| 69 | 77 | ./benchmark/docker.sh | |
| 70 | 78 | ||
| 71 | 79 | # Run the benchmark: | |
| 72 | - ./benchmark/benchmark.py a-helpful-name-for-this-run --model gpt-3.5-turbo --edit-format whole --threads 10 --exercises-dir polyglot-benchmark | ||
| 80 | + ./benchmark/benchmark.py a-helpful-name-for-this-run --model gpt-3.5-turbo --edit-format whole --threads 10 --exercises-dir cecli-cats | ||
| 73 | 81 | ||
| 74 | 82 | # Or with OpenRouter models (requires OPENROUTER_API_KEY environment variable): | |
| 75 | - ./benchmark/benchmark.py openrouter-run --model openrouter/deepseek/deepseek-r1:free --edit-format whole --threads 10 --exercises-dir polyglot-benchmark | ||
| 83 | + ./benchmark/benchmark.py openrouter-run --model openrouter/deepseek/deepseek-r1:free --edit-format whole --threads 10 --exercises-dir cecli-cats | ||
| 76 | 84 | ``` | |
| 77 | 85 | ||
| 78 | 86 | The above will create a folder | |
@@ -156,6 +164,7 @@ Note the roadmap priorities: | |||
| 156 | 164 | ||
| 157 | 165 | ## Limitations | |
| 158 | 166 | ||
| 167 | + - `benchmark_classic.py` is deprecated (it predates the async Coder API). | ||
| 159 | 168 | - These scripts are not intended for use by typical `cecli` end users. | |
| 160 | 169 | - Some of the old (?deprecated) tools are written as `bash` scripts, so it will be hard to use | |
| 161 | 170 | them on Windows. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments