From 91b7648f3338a55bcb45843f0eb63ae836644551 Mon Sep 17 00:00:00 2001 From: Joshua Vial Date: Sat, 9 Sep 2023 12:06:34 +1200 Subject: [PATCH 1/2] update model creation method --- benchmark/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 2d16653c8..72f007c49 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -547,7 +547,7 @@ def run_test( chat_history_file=history_fname, ) - main_model = models.Model(model_name) + main_model = models.Model.create(model_name) edit_format = edit_format or main_model.edit_format dump(main_model) From 9a91d8fbad7b090a5aca6da51900f9db388136a4 Mon Sep 17 00:00:00 2001 From: Joshua Vial Date: Sat, 9 Sep 2023 12:07:11 +1200 Subject: [PATCH 2/2] set git config safe dir in benchmark docker --- benchmark/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmark/Dockerfile b/benchmark/Dockerfile index 419167e01..ac552e877 100644 --- a/benchmark/Dockerfile +++ b/benchmark/Dockerfile @@ -3,5 +3,6 @@ RUN apt-get update && apt-get install -y less git COPY requirements.txt /aider/requirements.txt RUN pip install lox typer pandas matplotlib imgcat aider-chat RUN pip install --upgrade pip && pip install -r /aider/requirements.txt +RUN git config --global --add safe.directory /aider WORKDIR /aider