Skip to content

Commit 65b30f1

Browse files
authored
Doc: AWS EC2 running
1 parent a5ba8d0 commit 65b30f1

1 file changed

Lines changed: 30 additions & 3 deletions

File tree

README.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CodeClash: Evaluating LMs as Adaptive Coding Agents
22
John Yang, Kilian Lieret
33

4-
### Setup
4+
## Setup
55

66
To install the codebase, run the following:
77
```bash
@@ -13,7 +13,7 @@ pre-commit install
1313

1414
Make sure you have `GITHUB_TOKEN` (w/ access permissions for this organization) set in a `.env` file
1515

16-
### Usage
16+
## Usage
1717

1818
To 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/
3232
aws s3 sync s3://codeclash/logs/ logs/
3333
```
3434

35-
### Trajectory viewer
35+
## Trajectory viewer
3636

3737
Assuming 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
4646
aws 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+
```

0 commit comments

Comments
 (0)