File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# CodeClash: Evaluating LMs as Adaptive Coding Agents
22John Yang, Kilian Lieret
33
4- ### Setup
4+ ## Setup
55
66To install the codebase, run the following:
77``` bash
@@ -13,7 +13,7 @@ pre-commit install
1313
1414Make sure you have ` GITHUB_TOKEN ` (w/ access permissions for this organization) set in a ` .env ` file
1515
16- ### Usage
16+ ## Usage
1717
1818To run ` n ` rounds of 2+ models competing against one another on a game, run the following:
1919``` bash
@@ -32,7 +32,7 @@ aws s3 sync logs/ s3://codeclash/logs/
3232aws s3 sync s3://codeclash/logs/ logs/
3333```
3434
35- ### Trajectory viewer
35+ ## Trajectory viewer
3636
3737Assuming that your logs ar in ` logs/ ` , start the viewer with ` python run_viewer.py ` . Use ` -d ` (` --directory ` ) to specify a custom path to your logs.
3838
@@ -46,3 +46,30 @@ cd REPO_ROOT
4646aws s3 sync logs/ s3://codeclash/logs/
4747./build_static_and_push.sh
4848```
49+
50+ ## AWS EC2
51+
52+ ``` bash
53+ ssh-keygen
54+ cat ~ /.ssh/id_ed25519
55+ # add as deploy key in github
56+
57+ sudo apt update
58+ sudo apt install -Y python3-pip python3.12-venv
59+ sudo snap install docker
60+ sudo snap install aws-cli --classic
61+
62+ git clone git@github.com:emagedoc/CodeClash.git
63+ cd CodeClash
64+ python3 -m venv .venv
65+ source .venv/bin/activate
66+ pip install -e .
67+
68+ aws configure
69+
70+ aws s3 sync s3://codeclash/logs/ logs/
71+
72+ export GITHUB_TOKEN=' ...'
73+
74+ sudo chmod 666 /var/run/docker.sock
75+ ```
You can’t perform that action at this time.
0 commit comments