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

AI Simulations

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_sim.py

Human+AI Wargames

To play a game between a human and an AI player, launch the server and start a game:

snowglobe_server &
examples/ac_game.py

Then, open a browser window and navigate to:

http://localhost:8000

The terminal output will begin with the ID number for the human player. Type that number into the ID box in the browser window and click Log In.

Make sure to run snowglobe_server from the same file system location where you run the game. Game-related files 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


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.8.0.tar.gz (179.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_snowglobe-0.8.0-py3-none-any.whl (178.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_snowglobe-0.8.0.tar.gz
  • Upload date:
  • Size: 179.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for llm_snowglobe-0.8.0.tar.gz
Algorithm Hash digest
SHA256 7ac787998e14b4e2d9defe175f73fc87ea12a1663ee66f8163969fae31e02c0e
MD5 c9288bc115157f1e4527d82cc4830e52
BLAKE2b-256 8e7fea07931d3e79e0b7e5f7fad434f8c5c4f1788d882da6328166a2e91e947c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_snowglobe-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 178.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for llm_snowglobe-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfbe3ce5e9afa9b1f19e834d5867762b4aeff222ef8daab8762b71b64b5fd708
MD5 6c5a5799395203314a0daf56a7988ca8
BLAKE2b-256 ea59165ec467eca18b91b5b488f918abb72f9397c824f68c32ce92d399778127

See more details on using hashes here.

Supported by

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