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

[Evaluation]: Log openhands version in eval output folder, instead of agent version #5394

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

xingyaoww
Copy link
Collaborator

@xingyaoww xingyaoww commented Dec 4, 2024

End-user friendly description of the problem this fixes or functionality that this introduces

  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

Give a summary of what the PR does, explaining any non-trivial design decisions

There's a lot of things that could impact agent quality since the start of this project - e.g, reliability of bash terminal, better implementation of memory condensation, etc. So I think it probably make sense to track these eval runs by OpenHands version, instead of agent version.


Link of any specific issues this addresses


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:417b09f-nikolaik   --name openhands-app-417b09f   docker.all-hands.dev/all-hands-ai/openhands:417b09f

@xingyaoww xingyaoww requested review from enyst and rbren December 4, 2024 02:40
Comment on lines 37 to 39
# IMPORTANT: Because Agent's prompt changes fairly often in the rapidly evolving codebase of OpenHands
# We need to track the version of Agent in the evaluation to make sure results are comparable
AGENT_VERSION=v$(poetry run python -c "import openhands.agenthub; from openhands.controller.agent import Agent; print(Agent.get_cls('$AGENT').VERSION)")
OPENHANDS_VERSION=v$(poetry run python -c "import openhands.agenthub; from openhands.controller.agent import Agent; print(Agent.get_cls('$AGENT').VERSION)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this in favor of get_openhands_version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Deleted in the latest commit.

@xingyaoww xingyaoww enabled auto-merge (squash) December 4, 2024 03:12
@xingyaoww xingyaoww merged commit 9908e1b into main Dec 4, 2024
15 checks passed
@xingyaoww xingyaoww deleted the xw/log-oh-ver-in-eval branch December 4, 2024 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants