Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chores: remove useless code in eval #2922

Merged
merged 1 commit into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions evaluation/EDA/run_infer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import logging
import multiprocessing as mp
import os

import pandas as pd
Expand Down Expand Up @@ -29,14 +28,6 @@
game = None


def cleanup():
print('Cleaning up child processes...')
for process in mp.active_children():
print(f'Terminating child process: {process.name}')
process.terminate()
process.join()


def codeact_user_response_eda(state: State) -> str:
global game
model_guess = ''
Expand Down
10 changes: 0 additions & 10 deletions evaluation/biocoder/run_infer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import json
import logging
import multiprocessing as mp
import os
import pathlib
from functools import partial
Expand All @@ -26,15 +25,6 @@
from opendevin.core.main import run_agent_controller
from opendevin.llm.llm import LLM


def cleanup():
print('Cleaning up child processes...')
for process in mp.active_children():
print(f'Terminating child process: {process.name}')
process.terminate()
process.join()


AGENT_CLS_TO_FAKE_USER_RESPONSE_FN = {
'CodeActAgent': partial(
codeact_user_response, encapsulate_solution=True, try_parse=None
Expand Down
9 changes: 0 additions & 9 deletions evaluation/bird/run_infer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import json
import logging
import multiprocessing as mp
import os
import pathlib
import re
Expand Down Expand Up @@ -30,14 +29,6 @@
from opendevin.llm.llm import LLM


def cleanup():
logger.info('Cleaning up child processes...')
for process in mp.active_children():
logger.info(f'Terminating child process: {process.name}')
process.terminate()
process.join()


def codeact_user_response(state: State) -> str:
msg = (
'Please continue working on the task on whatever approach you think is suitable.\n'
Expand Down
10 changes: 0 additions & 10 deletions evaluation/swe_bench/run_infer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import logging
import multiprocessing as mp
import os
import pathlib

Expand Down Expand Up @@ -29,15 +28,6 @@

USE_HINT_TEXT = os.environ.get('USE_HINT_TEXT', 'false') == 'true'


def cleanup():
print('Cleaning up child processes...')
for process in mp.active_children():
print(f'Terminating child process: {process.name}')
process.terminate()
process.join()


AGENT_CLS_TO_FAKE_USER_RESPONSE_FN = {
'CodeActAgent': codeact_user_response,
'CodeActSWEAgent': codeact_user_response,
Expand Down