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

Add standardised benchmarking capabilities, changes to lean_agent #878

Merged
merged 9 commits into from
Dec 1, 2023

Conversation

AntonOsika
Copy link
Owner

@AntonOsika AntonOsika commented Nov 30, 2023

Benchmarking

See benchmark/types to understand how to implement a Benchmark.

New benchmarks are added as a new folder to gpt_engineer/benchmark/benchmarks and with a new entry to gpt_engineer/benchmark/benchmarks/load.py

To make it possible to benchmark an agent, just create a function default_config_agent that returns an instantiated Agent, and then pass the path to that function to the benchmark CLI tool.

How to run e.g. lean_agent on the gpteng benchmark:
python gpt_engineer/benchmark gpt_engineer/core/default/lean_agent gpteng

Results below:
image

Note that we add local caching to the LLM. Identical calls will reuse the cache stored in .langchain.db. Please delete this file if you want to check for how temperature affects the results.

Also – this is not meant to be merged to refactor. We should merge to main after refactor is merged!

@AntonOsika AntonOsika requested a review from UmerHA as a code owner November 30, 2023 18:47
Copy link
Contributor

sweep-ai bot commented Nov 30, 2023

Apply Sweep Rules to your PR?

  • Apply: Ensure all new functions and classes have very clear, concise and up-to-date docstrings. Take gpt_engineer/ai.py as a good example.

@ATheorell ATheorell merged commit a5e03e5 into refactor Dec 1, 2023
2 checks passed
@ATheorell ATheorell deleted the ao/benchmark branch December 4, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants