-
Install required Python packages:
pip install openai tree_sitter tqdm fire
-
Install the Python TreeSitter module
git clone https://github.com/tree-sitter/tree-sitter-python.git vendor/tree-sitter-python/
To evaluate a specific problem run:
OPENAI_API_KEY=sk-<your API key here> python run.py eval <problem_name>
To run tests for a specific problem (after evaluation) run:
python run.py test <problem_name> outputs/
Results will be written to the reports
directory
Apart from Codex, you can also use checkpoints from the Huggingface models hub. Currently there is support for InCoder and CodeParrot.
Install the transformers
package and use --model={incoder, codeparrot}
.