A minimal text-based Overcooked! 2 game.
pip install -r requirements.txt
First, need to specify openai key on the command line
export OPENAI_API_KEY='xxx'
for example with 2 agents, with gpt-4 and level_0
Please read agents/chat_agent.py for more options.
python agents/chat_agent.py --level level_0 gpt-4 --num_agents 2
Warning: It's very expensive!
python train/train.py --level level_0
-
Launch the web-app and start to collect demonstrations
python webpage/app.py
-
Locate the the game in
logs/
based offuser-id
-
Replay the log
python agents/replay_amt.py --gameplay <game_log> | tee log_amt.txt
-
Convert the log into few-shot prompt example. You may specify the number of agents used used in this log
python assets/log_to_prompt.py --log-input log_amt.txt --prompt-output assets/amt_examples/prompt_2agent.txt --num-agents 2
-
Sign up here for Vertex AI and get $300 credit for free
-
Install google cloud sdk
Remember to run
gcloud init
before anything -
Run the following
gcloud auth application-default login pip install pandas google-cloud-aiplatform[pipelines]==1.26.0 google-auth==2.17.3
-
You are good to go! Take a look at
completion_palm
andchat_palm
inllm.py
.
python test/test_1.py
assets/recipe.json
assets/tasks_level_final.json
pytest test
pytest test -rP
coverage run -m pytest test
coverage report
coverage html
python webpage/app.py --debug
please refer to Minecraft Experiemnt