Skip to content

Commit 253370e

Browse files
authored
Merge pull request #28 from OpenManus/murphy/rollout-traj-gen
Initialize rollout trajectory Generation Env
2 parents e4f7ead + 1b3f65a commit 253370e

File tree

270 files changed

+105420
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+105420
-0
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
__pycache__
2+
.DS_Store
3+
.cache
4+
.dockerfile
5+
.dockerfile-cache
6+
.idea
7+
.vscode
8+
.env

traj_generation/.env_example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
OAI_ENDPOINT=
2+
OAI_KEY=
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
gpt-4o:
2+
import: "./openai-chat.yaml"
3+
parameters:
4+
name: "gpt-4o"
5+
body:
6+
model: "gpt-4o"
7+
max_tokens: 512
8+
9+
qwq-32b:
10+
import: "./qwq.yaml"
11+
parameters:
12+
name: "qwq-32b"
13+
body:
14+
model: "qwq-32b"
15+
max_tokens: 8192
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module: src.client.agents.HTTPAgent
2+
parameters:
3+
url: https://api.openai.com/v1/chat/completions
4+
headers:
5+
Content-Type: application/json
6+
Authorization: Bearer <% PUT-YOUR-OPENAI-KEY-HERE %>
7+
body:
8+
temperature: 0
9+
prompter:
10+
name: role_content_dict
11+
args:
12+
agent_role: assistant
13+
return_format: "{response[choices][0][message][content]}"

traj_generation/configs/agents/qwq.yaml

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import: definition.yaml
2+
3+
concurrency:
4+
task:
5+
# dbbench-std: 5
6+
os-std: 5
7+
8+
agent:
9+
gpt-4o: 5
10+
11+
assignments: # List[Assignment] | Assignment
12+
- agent: # "task": List[str] | str , "agent": List[str] | str
13+
- gpt-4o
14+
task:
15+
# - dbbench-std
16+
- os-std
17+
18+
output: "outputs/{TIMESTAMP}"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
definition:
2+
task:
3+
overwrite:
4+
module: src.client.TaskClient
5+
parameters:
6+
controller_address: "http://localhost:5000/api"
7+
import: ../tasks/task_assembly.yaml
8+
agent:
9+
import:
10+
- ../agents/api_agents.yaml
11+
- ../agents/fs_agent.yaml
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import: definition.yaml
2+
3+
concurrency:
4+
task:
5+
# dbbench-std: 5
6+
os-std: 5
7+
8+
agent:
9+
#gpt-4o: 5
10+
qwq-32b: 5
11+
12+
assignments: # List[Assignment] | Assignment
13+
- agent: # "task": List[str] | str , "agent": List[str] | str
14+
#- gpt-4o
15+
- qwq-32b
16+
task:
17+
# - dbbench-std
18+
- os-std
19+
20+
output: "outputs/rollout_{TIMESTAMP}"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
definition:
2+
import: tasks/task_assembly.yaml
3+
4+
start:
5+
# dbbench-std: 5
6+
os-std: 5
7+
# webshop-std: 5
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
default:
2+
module: src.server.tasks.alfworld.ALFWorld
3+
docker:
4+
image: longinyu/agentbench-alfworld
5+
command: umask 0; [ -f /root/.setup.sh ] && bash /root/.setup.sh;
6+
parameters:
7+
name: alfworld-std
8+
data_path: "/AgentBench/data/alfworld"
9+
config_path: "src/server/tasks/alfworld/configs/base_config.yaml"
10+
prompts_path: "src/server/tasks/alfworld/prompts/alfworld_multiturn_plan_first.json"
11+
split: "standard"
12+
max_step: 35
13+
14+
alfworld-dev:
15+
parameters:
16+
name: alfworld-dev
17+
split: "dev"
18+
19+
alfworld-std:
20+
parameters:
21+
name: alfworld-std
22+
split: "standard"

0 commit comments

Comments
 (0)