Skip to content

OpenBabylon/snowglobe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

557 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Open-ended wargames with large language models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 93.1%
  • JavaScript 2.9%
  • HTML 1.9%
  • Dockerfile 1.1%
  • Other 1.0%