This commit is contained in:
elleven11 2023-04-15 22:16:15 -04:00
parent a774fb783f
commit 10ae3e53b2
2 changed files with 12 additions and 0 deletions

View File

@ -56,6 +56,8 @@ def run_immediate_reflexion(
is_solved = exe.evaluate(
item["entry_point"], cur_func_impl, item["test"], timeout=10)
if is_solved:
num_success += 1
item["is_solved"] = is_solved
item["reflections"] = reflections

10
run_reflexion_humaneval_30.sh Executable file
View File

@ -0,0 +1,10 @@
python main.py \
--run_name "reflexion_humaneval30_py" \
--root_dir "root" \
--dataset_path ./benchmarks/humaneval-py_sample30.jsonl \
--strategy "reflexion" \
--language "py" \
--model "gpt-4" \
--pass_at_k "1" \
--max_iters "5" \
--verbose