The GALACTICA demo is the place to experiment with the GALACTICA language model.
Before starting the project make sure these requirements are available:
First create the virtual environment where the service will store all the modules.
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
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
To install the requirements run:
pip install -e .
The project can be configured using the .env
file. To configure the project copy the .env.example
file to .env
and change the values.
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.
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.