Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
full optimization run
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenNaihin committed Sep 18, 2023
1 parent 07d532b commit 58c6669
Show file tree
Hide file tree
Showing 101 changed files with 1,526,673 additions and 69,355 deletions.
17,724 changes: 0 additions & 17,724 deletions paper/all_logs/beebot/regex_general.json

This file was deleted.

15,062 changes: 8,401 additions & 6,661 deletions paper/all_logs/beebot/regex_simple.json

Large diffs are not rendered by default.

5,285 changes: 2,589 additions & 2,696 deletions paper/all_logs/beebot/regex_specific.json

Large diffs are not rendered by default.

18,089 changes: 0 additions & 18,089 deletions paper/all_logs/mini-agi/regex_general.json

This file was deleted.

16,969 changes: 11,436 additions & 5,533 deletions paper/all_logs/mini-agi/regex_simple.json

Large diffs are not rendered by default.

394 changes: 183 additions & 211 deletions paper/all_logs/mini-agi/regex_specific.json

Large diffs are not rendered by default.

10,289 changes: 0 additions & 10,289 deletions paper/all_logs/polygpt/regex_general.json

This file was deleted.

10,546 changes: 5,685 additions & 4,861 deletions paper/all_logs/polygpt/regex_simple.json

Large diffs are not rendered by default.

344 changes: 168 additions & 176 deletions paper/all_logs/polygpt/regex_specific.json

Large diffs are not rendered by default.

1,956 changes: 0 additions & 1,956 deletions paper/all_logs/turbo/regex_general.json

This file was deleted.

1,510 changes: 819 additions & 691 deletions paper/all_logs/turbo/regex_simple.json

Large diffs are not rendered by default.

480 changes: 238 additions & 242 deletions paper/all_logs/turbo/regex_specific.json

Large diffs are not rendered by default.

43 changes: 30 additions & 13 deletions paper/data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -378,7 +378,7 @@
},
{
"cell_type": "code",
"execution_count": 60,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -663,16 +663,21 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"import json\n",
"\n",
"# ['auto-gpt', 'beebot', 'mini-agi', 'polygpt', 'turbo']\n",
"agents_to_regex = ['beebot', 'mini-agi', 'polygpt', 'turbo']\n",
"# for auto-gpt, use the inserted_malicious_responses.json file\n",
"file_name = 'response.json'\n",
"\n",
"# List of agents to process\n",
"for agent in ['auto-gpt']: # agent_array:\n",
"for agent in agents_to_regex: # agent_array:\n",
" # Read the existing 'response.json' file\n",
" with open(f'all_logs/{agent}/inserted_malicious_responses.json', 'r') as f:\n",
" with open(f'all_logs/{agent}/{file_name}', 'r') as f:\n",
" data = json.load(f)\n",
"\n",
" # Initialize dictionaries to store filtered logs\n",
Expand Down Expand Up @@ -710,9 +715,18 @@
"name": "stdout",
"output_type": "stream",
"text": [
"After filtering the logs,\n",
"Simple regex filter logs: 1874\n",
"Specific regex filter logs: 1335\n"
"beebot filtered logs\n",
"Simple regex filter logs: 3875\n",
"Specific regex filter logs: 878\n",
"mini-agi filtered logs\n",
"Simple regex filter logs: 4037\n",
"Specific regex filter logs: 0\n",
"polygpt filtered logs\n",
"Simple regex filter logs: 1255\n",
"Specific regex filter logs: 0\n",
"turbo filtered logs\n",
"Simple regex filter logs: 400\n",
"Specific regex filter logs: 59\n"
]
}
],
Expand Down Expand Up @@ -745,12 +759,15 @@
"\n",
" return total_id_count\n",
"\n",
"regex_simple_logs = count_total_ids_in_json_files(f'all_logs/{agent}/regex_simple.json')\n",
"regex_specific_logs = count_total_ids_in_json_files(f'all_logs/{agent}/regex_specific.json')\n",
"for agent in agents_to_regex:\n",
" total = count_total_ids_in_json_files(f'all_logs/{agent}/{file_name}')\n",
" regex_simple_logs = count_total_ids_in_json_files(f'all_logs/{agent}/regex_simple.json')\n",
" regex_specific_logs = count_total_ids_in_json_files(f'all_logs/{agent}/regex_specific.json')\n",
"\n",
"print(f\"After filtering the logs,\")\n",
"print(f\"Simple regex filter logs: {regex_simple_logs}\")\n",
"print(f\"Specific regex filter logs: {regex_specific_logs}\")"
" print(f\"{agent} filtered logs\")\n",
" print(f\"Total logs: {total}\")\n",
" print(f\"Simple regex filter logs: {regex_simple_logs}\")\n",
" print(f\"Specific regex filter logs: {regex_specific_logs}\")"
]
},
{
Expand Down
653 changes: 458 additions & 195 deletions paper/monitor.ipynb

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_17-42-19_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_19-22-04_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_19-32-36_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_19-41-09_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_20-57-38_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_21-06-57_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_21-14-31_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_21-21-58_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_22-23-30_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_22-32-47_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-17_23-37-38_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-18_00-50-59_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-18_00-59-57_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-18_02-22-18_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-18_03-21-49_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-18_04-21-06_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-18_04-31-23_1.json

Large diffs are not rendered by default.

48,107 changes: 48,107 additions & 0 deletions paper/results/final_optimization_1/2023-09-18_05-47-08_1.json

Large diffs are not rendered by default.

Loading

0 comments on commit 58c6669

Please sign in to comment.