Spaces:
Sleeping
Sleeping
Subhash Vadaparthi commited on
Commit ·
1022124
1
Parent(s): 65ac632
fix: simplify [STEP] action logging to match passing submission format
Browse files257 unmodified lines258259260261262263264265266267268269270271272273274257 unmodified lines}step_error = obs.info.get("error") if obs.info else Nonestep_action_str = action_to_str(action_dict)steps_taken += 1rewards.append(obs.reward)actions.append(step_action_str)dones.append(obs.done)errors.append(step_error)# Track history so LLM can learn from mistakesaction_history.append({"action_str": step_action_str,"reward": obs.reward,"error": step_error,})257 unmodified lines258259260261262263264265266267268269270271272273274257 unmodified lines}step_error = obs.info.get("error") if obs.info else Nonestep_action_type = action_dict.get("type", "waitlist")steps_taken += 1rewards.append(obs.reward)actions.append(step_action_type)dones.append(obs.done)errors.append(step_error)# Track history so LLM can learn from mistakesaction_history.append({"action_str": action_to_str(action_dict),"reward": obs.reward,"error": step_error,})
inference.py+3-3