conda create -n AISimu python==3.10
pip install AISimuToolKit
python demo_leaderless_discuss.py
python demo_meeting.py
- Use LLM to simulate agents with different profiles
- openai gpt-3.5-turbo
- llaMA-7B (Need to deploy yourself)
- download
llaMA-7B
weight and put it inmodel/llama-7b
directory - download
alpaca-lora-7b
weight and put it inmodel/alpaca-lora-7b
directory - deploy
docker run -it --name test -v model:/usr/src/app/model -v data:/usr/src/app/data -v result:/usr/src/app/result --gpus all llama_service:v1 export PYTHONPATH=/usr/src/app/ cd src/deploy/ python deploy.py
- download
- Serial and parallel experiment, see demo
- Memory compression => summary, reflect and finetune
- summary
- reflect
- finetune We use a language model to convert recent experiences into conversational corpus for finetune. The function is currently available, but what parameters can be set to make the model remember these experiences needs to be further tested.(Feel free to contact us if you have any 💡ideas)
- A kit for simulation experiments
- Serial example demo_leaderless_discuss.py
Background Four people, Alice, Sophia, Jerre and Benjamin with different profiles are interviewing to be volunteers for the Olympics. This is a leaderless panel. The topic of discussion was "Minority language volunteers take half an hour to get to the site. As the only volunteer on site, now how will you inform foreigners of minority language that they must wear masks before entering the site"
Result
- Parallel example demo_meeting.py
Background Alice needs hold a project progress docking meeting this afternoon.She is so busy she don't have time to schedule meetings herself. Alice needs her secretary, Bob, to arrange a meeting for the rest of the project, including Carol and Dave, in the conference room at 3:00 this afternoon.
Result Bob can send the meeting notification, but the subsequent freedom is too high. More restrictions and testing are needed...
- Decoupling prompt
- Add environment
- Social
- Physical
- Fine-grained time scheduling
- Better serial and parallel logic including Automatic identification group
- Explore the finetune parameter to make the model remember these experiences
- Support more LLMs
Thank you for your attention and support to this project. If you find a problem or have suggestions for improvement, please feel free to create an Issue in this warehouse, we will deal with it in time.
If you are interested in contributing to the project, feel free to Fork this repository and submit your code. We welcome all contributors !
- LOGO https://clipdrop.co/stable-diffusion
- Reflect https://arxiv.org/abs/2304.03442
- LLaMA-7B https://github.com/facebookresearch/llama
- alpaca-lora https://github.com/tloen/alpaca-lora