Snow Globe multi-agent system for open-ended wargames with large language models
Project description
Snow Globe
Open-Ended Wargames with Large Language Models
Snow Globe, an ongoing applied research project and resulting software package, uses large language models (LLMs) for automated play of "open-ended" text-based wargames, such as seminar games and political wargames. LLMs enable a light, flexible architecture in which player actions are not restricted to predefined options. The system allows humans to play against or alongside AI agents with specific personas. Every stage of the wargame from scenario preparation to post-game analysis can be optionally carried out by AI, humans, or a combination thereof.
Read more here.
Installation
Build the Docker image and run a container.
./docker_setup.sh
Or, install Snow Globe from PyPI. For CPU only:
pip install llm-snowglobe
For GPU support:
CMAKE_ARGS="-DGGML_CUDA=on" pip install llm-snowglobe
Demos
After installation, you can simulate a tabletop exercise about an AI incident response.
examples/haiwire.py
Or, simulate a political wargame about a geopolitical crisis.
examples/ac.py
In the latter case, you can use a terminal-based chat interface to discuss the game afterwards, or just press Enter twice to exit.
Human Players
To play a game between a human and an AI player, launch the server and start a game:
snowglobe_server &
examples/ac.py --human 1
Then, open a browser window and navigate to:
http://localhost:8000
The terminal output will include the ID number for the human player. Type the number into the ID box, click Log In, then click Chat to enter the human player's responses using a graphical user interface.
Make sure to run snowglobe_server from the same file system location where you run the game. Files related to the graphical user interface will be stored in that location.
License
This repo is released under the Apache License Version 2.0, except for jQuery which is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_snowglobe-0.5.0.tar.gz.
File metadata
- Download URL: llm_snowglobe-0.5.0.tar.gz
- Upload date:
- Size: 144.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66966c61b388a7095277a87422f6912fad99e0886c21350b94f8bf7c358f6671
|
|
| MD5 |
c71f2620e05ae0a016177647701e48ad
|
|
| BLAKE2b-256 |
89b60027da9566e65d1ef8054c83642810dbc4142d4dffda2fc533900498969a
|
File details
Details for the file llm_snowglobe-0.5.0-py3-none-any.whl.
File metadata
- Download URL: llm_snowglobe-0.5.0-py3-none-any.whl
- Upload date:
- Size: 144.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5325adf8689944622fb3dc40835d3a69d3364eba4c9983d778af30d515285785
|
|
| MD5 |
333f012a06747c2597d3a1fd1eadc117
|
|
| BLAKE2b-256 |
f8385946664337e93bbef0b148b9afcc6394c59e5ed84632e0e156588c710c56
|