Skip to content

Commit

Permalink
opt distributed example
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Feb 1, 2024
1 parent 68ecafd commit 573dedc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ repos:
--disable=W1113,
--disable=W0221,
--disable=R0401,
--disable=W0632,
]
- repo: https://github.com/regebro/pyroma
rev: "4.0"
Expand Down
5 changes: 1 addition & 4 deletions examples/distributed/distributed_debate.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,10 @@ def setup_server(parsed_args: argparse.Namespace) -> None:

def run_main_process(parsed_args: argparse.Namespace) -> None:
"""Setup the main debate competition process"""
agents = agentscope.init(
pro_agent, con_agent, judge_agent = agentscope.init(
model_configs="configs/model_configs.json",
agent_configs="configs/debate_agent_configs.json",
)
pro_agent = agents[0]
con_agent = agents[1]
judge_agent = agents[2]
pro_agent = pro_agent.to_dist(
host=parsed_args.pro_host,
port=parsed_args.pro_port,
Expand Down

0 comments on commit 573dedc

Please sign in to comment.