Skip to content

Universal Value Interactions and Balancing Simulation. This code was developed based on research and ideas of Lenz https://github.com/ramennaut and coded by Roland https://github.com/levitation

License

Notifications You must be signed in to change notification settings

levitation-opensource/universal_value_interactions

Repository files navigation

Project setup

This readme contains instructions for both Linux and Windows installation. Windows installation instructions are located after Linux installation instructions.

Installation under Linux

To setup the environment follow these steps:

  1. Install CPython. The code is tested with Python version 3.10.10. We do not recommend using Conda package manager.

Under Linux, run the following commands:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10 python3.10-dev python3.10-venv
sudo apt install curl
sudo curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10

  1. Get the code from repo:

sudo apt install git-all
Run git clone https://github.com/levitation-opensource/universal_value_interactions.git
Run cd universal_value_interactions

  1. Create a virtual python environment:

python3.10 -m venv_UVI
source venv_UVI/bin/activate

  1. Install dependencies by running:
    pip install -r requirements.txt

Installation under Windows

  1. Install CPython from python.org. The code is tested with Python version 3.10.10. We do not recommend using Conda package manager.

You can download the latest installer from https://www.python.org/downloads/release/python-31010/ or if you want to download a newer 3.10.x version then from https://github.com/adang1345/PythonWindows

  1. Get the code from repo:
  • Install Git from https://gitforwindows.org/
  • Open command prompt and navigate top the folder you want to use for repo
  • Run git clone https://github.com/levitation-opensource/universal_value_interactions.git
  • Run cd universal_value_interactions
  1. Create a virtual python environment by running:
    3.1. To activate VirtualEnv with Python 3.10:
          virtualenv -p python3.10 venv_UVI
                (or if you want to use your default Python version:
                python -m venv venv_UVI)
    3.2. venv_UVI\scripts\activate

  2. Install dependencies by running:
    pip install -r requirements.txt

Executing Universal Value Interactions Simulation

Choose model in config.ini.

Set environment variable: OPENAI_API_KEY or ANTHROPIC_API_KEY.

Run
python ValueGraphBalancing3_3values_2humans.py

License

This project is licensed under the Mozilla Public License 2.0. You are free to use, modify, and distribute this code under the terms of this license.

For more details, see the LICENSE.txt file.

About

Universal Value Interactions and Balancing Simulation. This code was developed based on research and ideas of Lenz https://github.com/ramennaut and coded by Roland https://github.com/levitation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages