{% 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.
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
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.
# 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