Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.83 KB

Installation.md

File metadata and controls

58 lines (41 loc) · 1.83 KB

Installation

Quickstart

{% include-markdown "../README.md" start="" end="" %}

If you're using a TPU, more complete documentation for setting that up is available here. If you're using CUDA, more complete documentation for setting that up is available here.

Setting up a development environment

For development, please follow these steps:

First, install the appropriate version of Jax for your system. See Jax's installation instructions as it varies from platform to platform.

Now clone this repository and install it with pip:

git clone https://github.com/stanford-crfm/levanter.git
cd levanter
pip install -e .
wandb login  # optional, we use wandb for logging

Create a virtual environment

It is recommended to install Levanter using a virtual environment with Python version 3.10 to avoid dependency conflicts. Levanter requires Python version 3.10. To create, a Python virtual environment with Python version >= 3.10 and activate it, follow the instructions below.

Using Anaconda or Miniconda:

# Create a virtual environment.
# Only run this the first time.
conda create -n levanter python=3.10 pip

# Activate the virtual environment.
conda activate levanter

Using Virtualenv:

# Create a virtual environment.
# Only run this the first time.
python3 -m pip install virtualenv
python3 -m virtualenv -p python3.8 levanter-venv

# Activate the virtual environment.
source levanter-venv/bin/activate