This repository contains the original code for the paper LLM-Guided Task- and Affordance-Level Exploration in Reinforcement Learning (LLM-TALE).
We advice to use uv to install the llm-tale package.
Please install uv following the installation instructions if you don't have it installed.
Install CoppeliaSim:
# set env variables
export COPPELIASIM_ROOT=${HOME}/CoppeliaSim
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COPPELIASIM_ROOT
export QT_QPA_PLATFORM_PLUGIN_PATH=$COPPELIASIM_ROOT
wget https://downloads.coppeliarobotics.com/V4_1_0/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz
mkdir -p $COPPELIASIM_ROOT && tar -xf CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz -C $COPPELIASIM_ROOT --strip-components 1
rm -rf CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xzMake sure the env variables are set when you run RLBench experiments and that you can run RLBench headless by following these instructions.
Clone:
git clone [email protected]:llm-tale/llm_tale.git
cd llm_taleCreate and source the virtual environment:
uv venv --python 3.10
source .venv/bin/activateInstall:
uv pip install -e .To verify your installation you can run:
pytest tests/test_tasks.pyManiSkill tasks (PickCube, StackCube, PegInsert):
RLBench tasks (TakeLid, OpenDrawer, PutBox):
For LLM-BC run:
bash scripts/run_llm_bc.shFor LLM-TALE run:
bash scripts/run_llm_tale.shTo generate or inspect the LLM code, you can check out the code_generation notebook under notebooks.
For the prompt structure, we took inspiration from DROC.
Our TD3 and PPO agents are based on SKRL examples.





