Skip to content

Commit

Permalink
Update run_eval.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WadeYin9712 authored Oct 30, 2023
1 parent ddda985 commit 39cf70b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eval/webshop/run_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ def lumos_iterative(args):
if args.model_name_or_path:
print("Loading model and tokenizer...")
if i % 2 == 0:
model_name_or_path = os.path.join(args.model_name_or_path, "unified_plan_llama-2-7b")
model_name_or_path = os.path.join(args.model_name_or_path, "lumos_unified_plan_iterative")
else:
model_name_or_path = os.path.join(args.model_name_or_path, "unified_ground_llama-2-7b")
model_name_or_path = os.path.join(args.model_name_or_path, "lumos_unified_ground_iterative")

model, tokenizer = load_hf_lm_and_tokenizer(
model_name_or_path=model_name_or_path,
Expand Down Expand Up @@ -226,4 +226,4 @@ def lumos_iterative(args):
previous_actions = list()
args.env = gym.make('WebAgentTextEnv-v0', observation_mode='text', num_products=DEBUG_PROD_SIZE)

lumos_iterative(args)
lumos_iterative(args)

0 comments on commit 39cf70b

Please sign in to comment.