Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sampler in server configuration #33

Merged
merged 5 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sotopia/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def get_agent_class(
if env_agent_combo_list:
assert (
type(sampler) is BaseSampler
), "No sampler should be used when `env_agent_combo_list` is empty"
), "No sampler should be used when `env_agent_combo_list` is not empty"
env_agent_combo_iter = iter(env_agent_combo_list)
else:
env_agent_combo_iter = sampler.sample(
Expand Down
2 changes: 2 additions & 0 deletions sotopia_conf/server_conf/server.gin
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __gin__ import dynamic_registration
import __main__ as train_script
import sotopia.server as server
import sotopia.samplers as samplers

ACTION_ORDER="round-robin"
TAG=None
Expand All @@ -14,3 +15,4 @@ server.run_async_server:
using_async=True
tag=%TAG
omniscient=%OMNISCIENT
[email protected]()
ProKil marked this conversation as resolved.
Show resolved Hide resolved
Loading