Skip to main content

Setup your environment

Learn how to set up OASIS and run your first social simulation.

Installation

You can install OASIS in two ways:

Running simulations

OASIS supports different types of LLM backends for running simulations. Choose the option that works best for your needs.

Using OpenAI API

Add your OpenAI API key to your environment variables:For Bash (Linux, macOS, Git Bash on Windows):
For Windows Command Prompt:
For Windows PowerShell:
If you install with pip, download this file to your own ./data/reddit/user_data_36.json directory.
Execute the Reddit simulation script:
This will start a simulation of user interactions in a Reddit-like environment.

Using local open-source models with VLLM

  1. Install VLLM by following the instructions in the VLLM repository
  2. Download a model (e.g., Qwen 2.5) to your local machine:
  1. Deploy the VLLM API server:
  1. Test if VLLM is correctly deployed:
  1. Edit or write the scripts/environment/twitter_simulation.py file to use your VLLM deployment:
  1. Prepare the user profiles: If you install with pip, download this file to your own data/twitter_dataset/anonymous_topic_200_1h/False_Business_0.csv directory.
  2. Run the Twitter simulation: