/demo-GALACTICA

The playground from experimenting and working with the GALACTICA model

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

GALACTICA Demo

The GALACTICA demo is the place to experiment with the GALACTICA language model.

☑️ Requirements

Before starting the project make sure these requirements are available:

  • python. For executing the code in this project.
  • git. For versioning your code.

🛠️ Setup

Create a python environment

First create the virtual environment where the service will store all the modules.

Using virtualenv

Using the virtualenv command, run the following commands:

# install the virtual env command
pip install virtualenv

# create a new virtual environment
virtualenv -p python ./.venv

# activate the environment (UNIX)
./.venv/bin/activate

# activate the environment (WINDOWS)
./.venv/Scripts/activate

# deactivate the environment (UNIX & WINDOWS)
deactivate

Using conda

Install conda, a program for creating python virtual environments. Then run the following commands:

# create a new virtual environment
conda create --name galactica python=3.8 pip

# activate the environment
conda activate galactica

# deactivate the environment
deactivate

Install

To install the requirements run:

pip install -e .

Configuration

The project can be configured using the .env file. To configure the project copy the .env.example file to .env and change the values.

🚀 Start the service

To start the service run:

python scripts/start_demo.py

This will start the service on port 7654 or on the port specified in the .env file.

To stop the service press Ctrl+C in the terminal.

📚 Related Papers

Galactica: A Large Language Model for Science. Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, Robert Stojnic, arXiv, 2022.