Skip to main content

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 the 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 then click Connect. The top text box gives player prompts; the bottom text box is where the player enters responses. Text boxes turn blue while waiting for the next prompt.

License

This repo is released under the Apache License Version 2.0, except for jQuery which is released under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_snowglobe-0.3.0.tar.gz (87.9 kB view details)

Uploaded Source

Built Distribution

llm_snowglobe-0.3.0-py3-none-any.whl (86.7 kB view details)

Uploaded Python 3

File details

Details for the file llm_snowglobe-0.3.0.tar.gz.

File metadata

  • Download URL: llm_snowglobe-0.3.0.tar.gz
  • Upload date:
  • Size: 87.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for llm_snowglobe-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c18bece6ea5005b9d63c20528e9ed0578d9ad145f49db7db30a19a557fecb16a
MD5 4e82e0ef3e3daf2e6bbd0a3243bb0ef2
BLAKE2b-256 6dfa49c41df1066241e88b45aed71b9ad5a31dd619fedc5971fb2624b7d90b69

See more details on using hashes here.

File details

Details for the file llm_snowglobe-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_snowglobe-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb68fc65c8bc2955a0d45a8f4da07420040a97c334a414b509297308250bf6c
MD5 ad68e6b7b53973a7b5a6ae9ebc0bfa1a
BLAKE2b-256 3ae78ac84f13eba539246400de896a9b17e37ae722c20162d129147fc55a5242

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page