removed max_its

This commit is contained in:
Dillon DuPont
2025-08-08 12:40:50 -04:00
parent b9f307a149
commit 5c46ca0c9a

View File

@@ -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"}