File tree Expand file tree Collapse file tree 4 files changed +32
-5
lines changed Expand file tree Collapse file tree 4 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33wintermute_dir=/home/andy/Projects/hackingBuddyGPT
4- model=' gpt4 '
5- context_size=' 8192 '
4+ model=' gpt-3.5-turbo '
5+ context_size=' 4096 '
66log_db=" run_${model} _${context_size} .sqlite3"
77
88# setup and start virtual machines
2626# run ansible playbooks
2727ansible-playbook -i hosts.ini tasks.yaml
2828
29+ echo " now run tests manually"
30+ exit 0
31+
2932# run tests
3033pushd .
3134cd $wintermute_dir
@@ -34,7 +37,8 @@ cd $wintermute_dir
3437exit 0
3538
3639# loop over hosts
37- for i in $( seq 1 11) ; do
40+ # TODO: switch this to the testing script in ./vagrant
41+ for i in $( seq 1 13) ; do
3842 ip_last=$(( 150 + $i ))
3943 host=" test-$i "
4044 ip=" 192.168.122.$ip_last "
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Vagrant.configure("2") do |config|
2727 # ansible.playbook = "./../tasks.yaml"
2828 #end
2929
30- ( 1 ..11 ) . each do |i |
30+ ( 1 ..13 ) . each do |i |
3131 config . vm . define "test-#{ i } " do |node |
3232 node . vm . network "private_network" , ip : "192.168.122.#{ i +150 } "
3333 node . vm . hostname = "test-#{ i } "
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- for i in $( seq 1 11 ) ; do
3+ for i in $( seq 1 13 ) ; do
44 ip=$(( 150 + $i ))
55 hostname=$( ssh root@192.168.122.$ip hostname)
66
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ echo " running tests with wintermute in $wintermute_dir "
4+
5+ model=gpt-4
6+ context_size=4096
7+ log_db=" run-$model -$context_size .sqlite"
8+ wintermute_dir=/home/andy/Projects/hackingBuddyGPT
9+ max_rounds=20
10+
11+ # run tests
12+ pushd .
13+ cd $wintermute_dir
14+
15+ # loop over hosts
16+ for i in $( seq 1 13) ; do
17+ ip_last=$(( 150 + $i ))
18+ host=" test-$i "
19+ ip=" 192.168.122.$ip_last "
20+
21+ python3 wintermute.py --model $model --context-size $context_size --log $log_db --tag $host --target-ip $ip --target-hostname $host --max-rounds=$max_rounds
22+ done
23+ popd
You can’t perform that action at this time.
0 commit comments