Skip to content

Commit

Permalink
disable monitor in simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Apr 29, 2024
1 parent 22d550e commit 51b1239
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/distributed_simulation/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def setup_participant_agent_server(host: str, port: int) -> None:
"""Set up agent server"""
agentscope.init(
model_configs="configs/model_configs.json",
use_monitor=False,
)
assistant_server_launcher = RpcAgentServerLauncher(
host=host,
Expand Down Expand Up @@ -85,7 +86,7 @@ def init_moderator(
)


def run_main_process_new(
def run_main_process(
hosts: list[str],
base_port: int,
server_per_host: int,
Expand All @@ -99,6 +100,7 @@ def run_main_process_new(
"""Run main process"""
agentscope.init(
model_configs="configs/model_configs.json",
use_monitor=False,
)
host_num = len(hosts)
total_agent_server_num = server_per_host * host_num
Expand Down Expand Up @@ -192,7 +194,7 @@ def run_main_process_new(
if args.role == "participant":
setup_participant_agent_server(args.hosts[0], args.base_port)
elif args.role == "main":
run_main_process_new(
run_main_process(
hosts=args.hosts,
base_port=args.base_port,
participant_num=args.participant_num,
Expand Down

0 comments on commit 51b1239

Please sign in to comment.