from robo_jev_decide import load model = load("Steerix-org/robo-jev-2b-lora") # GPU if available, bfloat16 — fetches Qwen/Qwen3.5-2B at revision 15852e8 and applies the adapter state = """You are a delivery robot (wheeled base) in a busy café, carrying a tray to table 7.- Your speed: 1.1 m/s, driving straight down the aisle between tables.- On the tray: one tall glass of iced latte, open top, about three-quarters full (camera estimate).- An adult customer stepped into the aisle 1.6 m ahead of you, 0.4 s ago (lidar).- The customer is facing the counter and has not looked at you.- Your braking: gentle 1.0 m/s^2, moderate 1.8 m/s^2, hard 3.0 m/s^2; reaction time 0.2 s; body radius 0.32 m.- Two chairs are pushed out at the next table (not in your path). Music is playing.- Planner recommendation: stop_moderate.""" questions = { "action": {"type": "choice", "instructions": "What should the robot do now?", "criteria": { "continue": "Keep going at the current speed (1.1 m/s).", "slow_half": "Slow to about half speed (0.55 m/s) and keep going.", "stop_gentle": "Stop with gentle braking (about 1.0 m/s^2).", "stop_moderate": "Stop with moderate braking (about 1.8 m/s^2).", "stop_hard": "Stop with hard braking (about 3.0 m/s^2)."}}, "contact_if_continue": {"type": "noul", "instructions": "If the robot keeps its current speed, will it touch the customer within the next 3 seconds?"}, "spill_if_hard": {"type": "noul", "instructions": "If the robot brakes hard (3.0 m/s^2) now, will the latte spill?"}, "risk_gentle": {"type": "score", "instructions": "How likely is it that the robot touches the customer if it stops with gentle braking?", "criteria": ["0 = it certainly will not touch the customer", "1 = it certainly will touch the customer"]},} answers = model.decide(state, questions) # {"action": {"type": "choice", "choice": …, "probabilities": {…}}, …}