mirror of
https://github.com/trycua/computer.git
synced 2026-02-24 15:29:01 -06:00
removed max_its
This commit is contained in:
@@ -36,13 +36,12 @@ async def run_osworld():
|
||||
# Create agent
|
||||
agent = ComputerAgent(
|
||||
model="anthropic/claude-3-5-sonnet-20241022", # any ComputerAgent model string
|
||||
environment="linux",
|
||||
max_iterations=8
|
||||
environment="linux"
|
||||
)
|
||||
|
||||
# Run benchmark
|
||||
obs, _ = await env.reset()
|
||||
for i in range(agent.max_iterations):
|
||||
for i in range(100):
|
||||
action, done = await agent.predict(obs)
|
||||
obs, reward, terminated, info = await env.step(action)
|
||||
if done or terminated:
|
||||
@@ -78,7 +77,7 @@ job = await run_job(
|
||||
ComputerAgent,
|
||||
taskset,
|
||||
"osworld-computeragent",
|
||||
max_steps_per_task=8,
|
||||
max_steps_per_task=100,
|
||||
max_concurrent_tasks=20,
|
||||
auto_reply_question=True,
|
||||
agent_kwargs={"model": "anthropic/claude-3-5-sonnet-20241022"}
|
||||
|
||||
Reference in New Issue
Block a user