Skip to content

Regroup all commit0 hyper parameters in a single source of truth benchmarks/commit0/constants.py #365

@simonrosenberg

Description

@simonrosenberg

Description

Commit0 uses several hyperparameters/ constant values and constant values in its implementation in benchmarks/commit0

A constant value is any value int or str that must be set to correctly parametrize/run the benchmark. It can appear as input of a method or as default argument of a method.
Here are example of what can be a constant value:

  • "validation"
  • "2023_all"
  • "finish_with_patch"
  • "lite"
  • "wentingzhao/commit0_combined"
  • ....

Those values are hyper parameters of the full evaluation workflow.

Painpoint

It's not easy to check if all such values are correctly parametrized for a benchmark because they are scattered in many different places.

Solution

For Commit0

  1. Go through the code in benchmarks/commit0 and find ALL such constant values
  2. Redefine all those constant values in benchmarks/commit0/constants.py and make sure all other files import those values from the constant.py which constitutes the single source of truth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions