Awesome
CLIN: A Continually Learning Language Agent for Rapid Task Adaptation and Generalization
<a href="https://allenai.github.io/clin/"> <img src="https://img.shields.io/badge/Project Page-red"> </a> <a href="https://arxiv.org/pdf/2310.10134.pdf"> <img src="https://img.shields.io/badge/Paper-blue"> </a> </p>Code for interactive continual learning with ScienceWorld environment.
Step 1: Install Java You will have to have Java 1.8+ installed on your system (shipped with most Linux distributions).
Step 2: Create a new Python environment
conda create --name sw python=3.8
conda activate sw
pip install -r requirements.txt
export PYTHONPATH=. # prevents any module errors
export OPENAI_API_KEY=<your key> # would need access to one of these 2 models: gpt-3.5-turbo, gpt-4
Step 3: Installing ScienceWorld
cd ..
git clone https://github.com/allenai/ScienceWorld.git
cd ScienceWorld
git checkout exhaustivevalidactions
git pull
pip install -e .
Step 4: Get back into CLIN repo
cd ../clin
mkdir logs
Step 5: Example command to run CLIN agent for ScienceWorld
python scienceworld/clin_agent.py --task-num "4" --var-num 1 --env-step-limit 2 --num-episodes 1 --gpt-model "gpt-4-0613" --summarize_end_of_episode 1 --device "cpu" --temperature 0.0 --use-gold-memory-in-ep0 0 --gold-traces "" --use-last-k-memories 3 --quadrant 1 --simplifications-preset "easy" --output-path-prefix logs/testrun/
Citation
@article{majumder2023clin,
author = "Majumder, Bodhisattwa Prasad and Dalvi Mishra, Bhavana and Jansen, Peter and Tafjord, Oyvind and Tandon, Niket and Zhang, Li and Callison-Burch, Burch and Clark, Peter",
title = "CLIN: A Continually Learning Language Agent for Rapid Task Adaptation and Generalization",
journal = "arXiv",
year = "2023",
}