Skip to content

Commit

Permalink
comments clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kywch committed Nov 2, 2023
1 parent 083a1c7 commit f06fab5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def make_policy(envs):
# Assign the task to the env
tasks = make_task_from_spec(nmmo_env.possible_agents,
[select_task] * len(nmmo_env.possible_agents))
#nmmo_env.reset(make_task_fn=lambda: tasks)
nmmo_env.tasks = tasks # this is a hack
print("seed:", args.seed,
", task:", nmmo_env.tasks[0].spec_name)
Expand Down
4 changes: 0 additions & 4 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,13 @@ def curriculum_generation_track(trainer, args, use_elm=True):
if use_elm:
from curriculum_generation import manual_curriculum
from curriculum_generation.elm import OpenELMTaskGenerator
AGENT_MODEL_PATH = ""
NUM_SEED_TASKS = 20
NUM_NEW_TASKS = 5
ELM_DEBUG = True

task_encoder = TaskEncoder(LLM_CHECKPOINT, manual_curriculum, batch_size=2)
task_generator = OpenELMTaskGenerator(manual_curriculum.curriculum, LLM_CHECKPOINT)

# @daveey: We need a baseline checkpoint for this
#load_agent_model(AGENT_MODEL_PATH)

# Generating new tasks and evaluating all candidate training tasks
for _ in range(3):
# NOTE: adjust NUM_SEED_TASKS to fit your gpu
Expand Down

0 comments on commit f06fab5

Please sign in to comment.