mirror of
https://github.com/Aider-AI/aider
synced 2026-05-12 18:06:22 +02:00
added rungrid
This commit is contained in:
39
benchmark/rungrid.py
Executable file
39
benchmark/rungrid.py
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
from aider.dump import dump
|
||||
from benchmark import main as benchmark_main
|
||||
|
||||
|
||||
def main():
|
||||
models = [
|
||||
"gpt-3.5-turbo-0301",
|
||||
"gpt-3.5-turbo-0613",
|
||||
"gpt-3.5-turbo-16k-0613",
|
||||
]
|
||||
edit_formats = [
|
||||
"diff",
|
||||
"diff-func",
|
||||
"whole",
|
||||
"whole-func",
|
||||
]
|
||||
|
||||
for model in models:
|
||||
for edit_format in edit_formats:
|
||||
# dump(model, edit_format)
|
||||
dirname = f"/benchmarks/{model}-{edit_format}"
|
||||
dump(dirname)
|
||||
|
||||
benchmark_main(
|
||||
dirnames=[dirname],
|
||||
model=model,
|
||||
edit_format=edit_format,
|
||||
threads=10,
|
||||
cont=True,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
status = main()
|
||||
sys.exit(status)
|
||||
Reference in New Issue
Block a user